|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.content.AbstractContentInterceptor
Provides a basic implementation of the ContentInterceptor
interface.
This implementation does nothing but store the parameters and the
NamespaceAccessToken, and provide empty implementations of the various
hook methods. You can extend this class instead of implementing the
ContentInterceptor
interface directly, and only override
the methods required for your specific interceptor to operate.
Constructor Summary | |
AbstractContentInterceptor()
Default constructor. |
Method Summary | |
protected NamespaceAccessToken |
getNamespace()
Returns the namespace access token. |
protected java.lang.String |
getParameter(java.lang.String name)
Returns the value of the specified parameter. |
protected java.util.Hashtable |
getParameters()
Returns a Hashtable containing the configuration parameters of the interceptor. |
void |
postRemoveContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor)
Does nothing. |
void |
postRetrieveContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
NodeRevisionContent revisionContent)
Does nothing. |
void |
postStoreContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
NodeRevisionContent revisionContent)
Does nothing. |
void |
preRemoveContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor)
Does nothing. |
void |
preRetrieveContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionNumber revisionNumber,
NodeRevisionDescriptor revisionDescriptor)
Does nothing. |
void |
preStoreContent(SlideToken token,
NodeRevisionDescriptors revisionDescriptors,
NodeRevisionDescriptor revisionDescriptor,
NodeRevisionContent revisionContent)
Does nothing. |
void |
setNamespace(NamespaceAccessToken nat)
Implemented to store the namespace access token as instance variable. |
void |
setParameters(java.util.Hashtable parameters)
Implemented to store the parameter Hashtable as instance variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractContentInterceptor()
Method Detail |
public void preStoreContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor, NodeRevisionContent revisionContent) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
preStoreContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the content to be storedrevisionDescriptor
- revision descriptor of the content to be
storedrevisionContent
- the actual content to be stored
ObjectNotFoundException
- if an object could not be found
ObjectLockedException
- if an object is locked
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
found
AccessDeniedException
- if access to a resource has
been denied
ServiceAccessException
- low-level service failurepublic void postStoreContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor, NodeRevisionContent revisionContent) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
postStoreContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the content that has been
storedrevisionDescriptor
- revision descriptor of the content that
has been storedrevisionContent
- the actual content that has been stored
AccessDeniedException
- if access to a resource has
been denied
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
found
ObjectLockedException
- if an object is locked
ObjectNotFoundException
- if an object could not be found
ServiceAccessException
- low-level service failurepublic void preRetrieveContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionNumber revisionNumber, NodeRevisionDescriptor revisionDescriptor) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
preRetrieveContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the descriptor that
should be retrieved, or null
if the content should be retrievedrevisionNumber
- revision number of the descriptor that
should be retrieved, or null
if the content should be retrievedrevisionDescriptor
- revision descriptor of the content that
should be retrieved, or null
if the descriptor will be retrieved
ServiceAccessException
- low-level service failure
ObjectNotFoundException
- if an object could not be found
AccessDeniedException
- if access to a resource has
been denied
ObjectLockedException
- if an object is locked
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
foundpublic void postRetrieveContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor, NodeRevisionContent revisionContent) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
postRetrieveContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the descriptor that has
been retrieved, or null
when
the content has been retrievedrevisionDescriptor
- revision descriptor of the content that has
been retrieved, or the descriptor itself
has been retrievedrevisionContent
- the actual content that has been retrieved,
or null
when the descriptor
has been retrieved
ObjectNotFoundException
- if an object could not be found
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
found
ObjectLockedException
- if an object is locked
ServiceAccessException
- low-level service failure
AccessDeniedException
- if access to a resource has
been deniedpublic void preRemoveContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
preRemoveContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the content that will be
removed, or null
if a only a
particular revision should be removedrevisionDescriptor
- revision descriptor of the content that
will be removed, or null
if
all revisions of a node should be removed
ServiceAccessException
- low-level service failure
AccessDeniedException
- if access to a resource has
been denied
ObjectNotFoundException
- if an object could not be found
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
found
ObjectLockedException
- if an object is lockedpublic void postRemoveContent(SlideToken token, NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor revisionDescriptor) throws AccessDeniedException, ObjectNotFoundException, LinkedObjectNotFoundException, ObjectLockedException, ServiceAccessException
postRemoveContent
in interface ContentInterceptor
token
- the SlideTokenrevisionDescriptors
- revision tree of the content that has been
removed, or null
if a only a
particular revision has been removedrevisionDescriptor
- revision descriptor of the content that
has been removed, or null
if
all revisions of a node have been removed
ServiceAccessException
- low-level service failure
ObjectNotFoundException
- if an object could not be found
AccessDeniedException
- if access to a resource has
been denied
ObjectLockedException
- if an object is locked
LinkedObjectNotFoundException
- if an object linked to by
another object could not be
foundpublic void setNamespace(NamespaceAccessToken nat)
setNamespace
in interface ContentInterceptor
nat
- the access token to the namespace this ContentInterceptor
has been associated withpublic void setParameters(java.util.Hashtable parameters)
setParameters
in interface ContentInterceptor
parameters
- Hashtable containing the parameters' names as keys
and the associated parameter values as values,
both of type java.lang.String
protected NamespaceAccessToken getNamespace()
NamespaceAccessToken
object, or
null
if the interceptor has not been initializedprotected java.lang.String getParameter(java.lang.String name)
name
- name of the parameter to be retrieved
null
if the parameter
was not providedprotected java.util.Hashtable getParameters()
null
if the interceptor has not been initialized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |