|
|||||||||
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
public abstract class AbstractDocumentDataSource
AbstractDocumentDataSource is a base class intended to be extended by developers who are writing new document centric data sources. It provides support for document centric events and default implementations for some methods defined in DocumentDataSource. It also adds some methods for document specific actions.
This is published because it is in the inheritence heirarchy of a public data source, but it not intended to be subclassed, and the API may change. Not intended to be subclassed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
AbstractDataSource.RuntimeProperties |
Field Summary |
---|
Fields inherited from class com.ibm.xsp.model.AbstractDataSource |
---|
NO_VARS |
Constructor Summary | |
---|---|
AbstractDocumentDataSource()
|
Method Summary | |
---|---|
void |
computeDocument(javax.faces.context.FacesContext context)
Compute the current document |
abstract void |
doComputeDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Compute the current document |
abstract void |
doDeleteDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Delete the current document |
abstract DocumentDataContainer |
doNewDocument(javax.faces.context.FacesContext context)
Create a new document |
abstract DocumentDataContainer |
doOpenDocument(javax.faces.context.FacesContext context)
Open the specified document |
abstract boolean |
doSaveDocument(javax.faces.context.FacesContext context,
java.lang.Object document)
Save the current document |
javax.faces.el.MethodBinding |
getComputeDocument()
It is triggered at first right after loading the document (after postOpenDocument), and at the end before saving the document it (after querySaveDocument but before saving the document). |
javax.faces.el.MethodBinding |
getPostNewDocument()
Triggered after creating the new document. |
javax.faces.el.MethodBinding |
getPostOpenDocument()
Triggered after opening the document. |
javax.faces.el.MethodBinding |
getPostSaveDocument()
Triggered after saving the document. |
javax.faces.el.MethodBinding |
getQueryNewDocument()
Triggered before creating the new document. |
javax.faces.el.MethodBinding |
getQueryOpenDocument()
Triggered before opening the document. |
javax.faces.el.MethodBinding |
getQuerySaveDocument()
Triggered before saving the document. |
protected java.lang.Object |
invoke(javax.faces.context.FacesContext context,
javax.faces.el.MethodBinding methodBinding,
java.lang.Object[] params,
java.lang.Object document)
|
abstract boolean |
isReadOnly(java.lang.Object document)
Is the specified document read only |
DataContainer |
load(javax.faces.context.FacesContext context)
Load the associated data container |
DataContainer |
newDocument(javax.faces.context.FacesContext context)
Create a new document |
DataContainer |
openDocument(javax.faces.context.FacesContext context)
Open the specified document |
protected java.util.List<DataPublisher.ShadowedObject> |
pushData(javax.faces.context.FacesContext context,
java.lang.Object document,
boolean isReadOnly)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
boolean |
save(javax.faces.context.FacesContext context,
DataContainer data)
Save the current state of the data object |
boolean |
saveDocument(javax.faces.context.FacesContext context)
Save the current document |
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setComputeDocument(javax.faces.el.MethodBinding binding)
It is triggered at first right after loading the document (after postOpenDocument), and at the end before saving the document it (after querySaveDocument but before saving the document). |
void |
setPostNewDocument(javax.faces.el.MethodBinding binding)
Triggered after creating the new document. |
void |
setPostOpenDocument(javax.faces.el.MethodBinding binding)
Triggered after opening the document. |
void |
setPostSaveDocument(javax.faces.el.MethodBinding binding)
Triggered after saving the document. |
void |
setQueryNewDocument(javax.faces.el.MethodBinding binding)
Triggered before creating the new document. |
void |
setQueryOpenDocument(javax.faces.el.MethodBinding binding)
Triggered before opening the document. |
void |
setQuerySaveDocument(javax.faces.el.MethodBinding binding)
Triggered before saving the document. |
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.DocumentDataSource |
---|
isDocument, isNewDocument |
Methods inherited from interface com.ibm.xsp.model.DataSource |
---|
getBeanId, getDataContainer, getRequestParamPrefix, getScope, getUniqueId, getVar, getVars, isIgnoreRequestParams, isReadonly, refresh, save, setIgnoreRequestParams, setRequestParamPrefix, setScope, setVar |
Methods inherited from interface com.ibm.xsp.model.DataPublishingObject |
---|
popData, pushData |
Constructor Detail |
---|
public AbstractDocumentDataSource()
Method Detail |
---|
public boolean save(javax.faces.context.FacesContext context, DataContainer data) throws FacesExceptionEx
AbstractDataSource
save
in class AbstractDataSource
FacesExceptionEx
public DataContainer load(javax.faces.context.FacesContext context) throws java.io.IOException
AbstractDataSource
load
in class AbstractDataSource
java.io.IOException
public DataContainer newDocument(javax.faces.context.FacesContext context) throws java.io.IOException
DocumentDataSource
newDocument
in interface DocumentDataSource
java.io.IOException
public DataContainer openDocument(javax.faces.context.FacesContext context) throws java.io.IOException
DocumentDataSource
openDocument
in interface DocumentDataSource
java.io.IOException
public boolean saveDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
DocumentDataSource
saveDocument
in interface DocumentDataSource
FacesExceptionEx
public void computeDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
DocumentDataSource
computeDocument
in interface DocumentDataSource
FacesExceptionEx
public void setQueryNewDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setQueryNewDocument
in interface DocumentDataSource
public void setQueryOpenDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setQueryOpenDocument
in interface DocumentDataSource
public void setQuerySaveDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setQuerySaveDocument
in interface DocumentDataSource
public void setPostNewDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setPostNewDocument
in interface DocumentDataSource
public void setPostOpenDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setPostOpenDocument
in interface DocumentDataSource
public void setPostSaveDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setPostSaveDocument
in interface DocumentDataSource
public void setComputeDocument(javax.faces.el.MethodBinding binding)
DocumentDataSource
setComputeDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getQueryNewDocument()
DocumentDataSource
getQueryNewDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getQueryOpenDocument()
DocumentDataSource
getQueryOpenDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getQuerySaveDocument()
DocumentDataSource
getQuerySaveDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getPostNewDocument()
DocumentDataSource
getPostNewDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getPostOpenDocument()
DocumentDataSource
getPostOpenDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getPostSaveDocument()
DocumentDataSource
getPostSaveDocument
in interface DocumentDataSource
public javax.faces.el.MethodBinding getComputeDocument()
DocumentDataSource
getComputeDocument
in interface DocumentDataSource
protected java.lang.Object invoke(javax.faces.context.FacesContext context, javax.faces.el.MethodBinding methodBinding, java.lang.Object[] params, java.lang.Object document)
protected java.util.List<DataPublisher.ShadowedObject> pushData(javax.faces.context.FacesContext context, java.lang.Object document, boolean isReadOnly)
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class AbstractDataSource
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class AbstractDataSource
public abstract DocumentDataContainer doNewDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
FacesExceptionEx
public abstract DocumentDataContainer doOpenDocument(javax.faces.context.FacesContext context) throws FacesExceptionEx
FacesExceptionEx
public abstract void doDeleteDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
FacesExceptionEx
public abstract boolean doSaveDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
FacesExceptionEx
public abstract void doComputeDocument(javax.faces.context.FacesContext context, java.lang.Object document) throws FacesExceptionEx
FacesExceptionEx
public abstract boolean isReadOnly(java.lang.Object document)
document
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |