|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.complex.ValueBindingObjectImpl com.ibm.xsp.model.AbstractDataSource com.ibm.xsp.model.AbstractDocumentDataSource com.ibm.xsp.model.domino.DominoDocumentData
public class DominoDocumentData
DominoDocumentData represents a Domino Document Data Source
Nested Class Summary | |
---|---|
protected static class |
DominoDocumentData.DocumentProperties
Runtime Properties for the Document Data Source |
Nested classes/interfaces inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
AbstractDataSource.RuntimeProperties |
Field Summary | |
---|---|
static java.lang.String |
NEW_NOTE_ID
|
Fields inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
NO_VARS |
Constructor Summary | |
---|---|
DominoDocumentData()
Default Constructor |
Method Summary | |
---|---|
protected java.lang.String |
composeUniqueId()
Compute a unique ID for shared documents. |
protected AbstractDataSource.RuntimeProperties |
createRuntimeProperties()
Create a new AbstractDataSource.RuntimeProperties instance |
void |
doComputeDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Compute the current document |
void |
doDeleteDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Delete the current document |
DocumentDataContainer |
doNewDocument(javax.faces.context.FacesContext context)
Create a new Document. |
DocumentDataContainer |
doOpenDocument(javax.faces.context.FacesContext context)
Open the specified document |
boolean |
doSaveDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Save the current document |
java.lang.String |
getAction()
Return the value of the action |
java.lang.String |
getComputeWithForm()
Get the value of the computeWithForm property for the Data Source |
java.lang.String |
getConcurrencyMode()
Return the value of the concurrencyMode property |
java.lang.String |
getDatabaseName()
Return the database name. |
java.lang.Object |
getDataObject()
Return the default data object |
java.lang.String |
getDocumentId()
Return the Document id. |
java.lang.String |
getEffectiveAction()
Return the action (newDocument, editDocument) to perform when the document is opened. |
java.lang.String |
getFormName()
First return the name of the Form associated with the Document set with setFormName, else return the value of the formName property,
else retun null |
java.lang.String |
getParentId()
Return the value of the parentId property |
protected DominoDocumentData.DocumentProperties |
getRuntimeProperties()
Get the properties for this Data Source |
java.lang.String |
getSaveLinksAs()
Return the value of the saveLinksAs property |
java.lang.String[] |
getVars()
Return the request-scope attribute names under which various objects associated with this data source will be exposed, including DataSource.getVar() variable name. |
protected void |
initializeRuntimeProperties(AbstractDataSource.RuntimeProperties rtProps)
Initialize Runtime Properties. |
boolean |
isAllowDeletedDocs()
Is the Data Source allowed open soft deleted Documents |
protected boolean |
isDataShared()
Check if the document used by this data source can be shared. |
boolean |
isDocument(java.lang.Object document)
Return true if this is the document associated with this data source |
boolean |
isNewDocument(javax.faces.context.FacesContext context)
Return true if a new document should be created when the data source is loaded. |
boolean |
isReadonly()
Return true if this is a read only data object |
boolean |
isReadOnly(java.lang.Object document)
Is the specified document read only |
void |
readRequestParams(javax.faces.context.FacesContext context,
java.util.Map<java.lang.String,java.lang.Object> requestMap)
Extract the databaseName ,documentId ,
parentId , and action from the Request Parameters. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAction(java.lang.String action)
Set the value of the action |
void |
setAllowDeletedDocs(boolean allowDeletedDocs)
Set whether the Document Data Source is allowed to open soft deleted Documents |
void |
setComputeWithForm(java.lang.String computeWithForm)
Set when to execute the form logic on a document. |
void |
setConcurrencyMode(java.lang.String concurrencyMode)
The concurrency mode to set. |
void |
setDatabaseName(java.lang.String databaseName)
Set the name of the Database |
void |
setDocumentId(java.lang.String documentId)
Set the document Id |
void |
setFormName(java.lang.String formName)
Set the name of the Form associated with this Domino Document Data Source |
void |
setParentId(java.lang.String parentId)
Set the value of the parentId property
Id of the parent Domino document if the Document is a Response. |
void |
setSaveLinksAs(java.lang.String saveLinksAs)
Return the value of the saveLinksAs property |
Methods inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
beginRuntimeProperties, computeUniqueBeanId, endRuntimeProperties, getBeanId, getDataContainer, getDataContainer, getEffectiveScope, getRequestParamPrefix, getScope, getUniqueId, getVar, getViewRoot, hasRuntimeProperties, isIgnoreRequestParams, isNestedInUIIterator, popData, prefixRequestParam, pushData, putDataContainer, refresh, removeBean, removeBean, save, setIgnoreRequestParams, setRequestParamPrefix, setScope, setVar |
Methods inherited from class com.ibm.xsp.complex.ValueBindingObjectImpl |
---|
getComponent, getFacesContext, getValueBinding, isTransient, setComponent, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.xsp.model.DataSource |
---|
getBeanId, getDataContainer, getRequestParamPrefix, getScope, getUniqueId, getVar, isIgnoreRequestParams, refresh, save, setIgnoreRequestParams, setRequestParamPrefix, setScope, setVar |
Methods inherited from interface com.ibm.xsp.model.DataPublishingObject |
---|
popData, pushData |
Field Detail |
---|
public static final java.lang.String NEW_NOTE_ID
Constructor Detail |
---|
public DominoDocumentData()
Method Detail |
---|
protected DominoDocumentData.DocumentProperties getRuntimeProperties()
getRuntimeProperties
in class AbstractDataSource
protected AbstractDataSource.RuntimeProperties createRuntimeProperties()
AbstractDataSource
AbstractDataSource.RuntimeProperties
instance
createRuntimeProperties
in class AbstractDataSource
protected void initializeRuntimeProperties(AbstractDataSource.RuntimeProperties rtProps)
AbstractDataSource
initializeRuntimeProperties
in class AbstractDataSource
rtProps
- Runtime Propertiespublic void readRequestParams(javax.faces.context.FacesContext context, java.util.Map<java.lang.String,java.lang.Object> requestMap)
databaseName
,documentId
,
parentId
, and action
from the Request Parameters.
readRequestParams
in class AbstractDataSource
public java.lang.Object getDataObject()
AbstractDataSource
getDataObject
in class AbstractDataSource
public boolean isReadonly()
AbstractDataSource
isReadonly
in interface DataSource
isReadonly
in class AbstractDataSource
public java.lang.String[] getVars()
DataSource
DataSource.getVar()
variable name.
getVars
in interface DataSource
getVars
in class AbstractDataSource
public boolean isDocument(java.lang.Object document)
DocumentDataSource
public java.lang.String getComputeWithForm()
computeWithForm
property for the Data Source
public void setAllowDeletedDocs(boolean allowDeletedDocs)
allowDeletedDocs
- true
if allowed open soft deletespublic boolean isAllowDeletedDocs()
true
if Data Source is allowed to open
Soft Deleted Documents.public void setComputeWithForm(java.lang.String computeWithForm)
computeWithForm
- onload
, onsave
, both
.public java.lang.String getConcurrencyMode()
concurrencyMode
property
public java.lang.String getSaveLinksAs()
saveLinksAs
property
public void setSaveLinksAs(java.lang.String saveLinksAs)
saveLinksAs
property
saveLinksAs
- UseWeb, UseNotes
public void setConcurrencyMode(java.lang.String concurrencyMode)
concurrencyMode
- createResposne, fail, exception, force
public java.lang.String getAction()
actionproperty - the action to be
performed when opening (newDocument, editDocument)
- Returns:
- Returns the action.
public void setAction(java.lang.String action)
actionproperty - the action to be
performed when opening (newDocument, editDocument)
- Parameters:
action
- The action to set
(DatabaseConstants.ACTION_NEW, DatabaseConstants.ACTION_EDIT)
public java.lang.String getEffectiveAction()
action
is not set.
protected boolean isDataShared()
AbstractDataSource
isDataShared
in class AbstractDataSource
protected java.lang.String composeUniqueId()
AbstractDataSource
composeUniqueId
in class AbstractDataSource
public java.lang.String getDocumentId()
setDocumentId()
. If this is not set return
the value of the documentId
property. Is that is not set,
return null
public void setDocumentId(java.lang.String documentId)
documentId
- The documentId to set.public DocumentDataContainer doNewDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
doNewDocument
in class AbstractDocumentDataSource
FacesExceptionEx
AbstractDocumentDataSource.doNewDocument(javax.faces.context.FacesContext)
public DocumentDataContainer doOpenDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
AbstractDocumentDataSource
doOpenDocument
in class AbstractDocumentDataSource
FacesExceptionEx
public void doDeleteDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
AbstractDocumentDataSource
doDeleteDocument
in class AbstractDocumentDataSource
FacesExceptionEx
public boolean doSaveDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
AbstractDocumentDataSource
doSaveDocument
in class AbstractDocumentDataSource
FacesExceptionEx
public void doComputeDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
AbstractDocumentDataSource
doComputeDocument
in class AbstractDocumentDataSource
FacesExceptionEx
public boolean isReadOnly(java.lang.Object document)
AbstractDocumentDataSource
isReadOnly
in class AbstractDocumentDataSource
public boolean isNewDocument(javax.faces.context.FacesContext context)
DocumentDataSource
public java.lang.String getParentId()
parentId
property
public void setParentId(java.lang.String parentId)
parentId
property
Id of the parent Domino document if the Document is a Response.
public java.lang.String getDatabaseName()
databaseName
property, else return null
public void setDatabaseName(java.lang.String databaseName)
databaseName
- the databaseName to setpublic java.lang.String getFormName()
formName
property,
else retun null
public void setFormName(java.lang.String formName)
formName
- the formName to setpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class AbstractDocumentDataSource
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class AbstractDocumentDataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |