|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.server.io.AbstractCommand
org.apache.jackrabbit.server.io.AbstractExportCommand
This Class implements an abstract export command for a nc-resource. It acts as generic base class that retrieves the resource properties from the exporting node.
the following properties are retrieved from the node and set to the context prior of callingexportNode(ExportContext, javax.jcr.Node)
:
Field Summary |
Fields inherited from interface org.apache.jackrabbit.JcrConstants |
JCR_AUTOCREATED, JCR_BASEVERSION, JCR_CHILD, JCR_CHILDNODEDEFINITION, JCR_CONTENT, JCR_CREATED, JCR_DATA, JCR_DEFAULTPRIMARYTYPE, JCR_DEFAULTVALUES, JCR_ENCODING, JCR_FROZENMIXINTYPES, JCR_FROZENNODE, JCR_FROZENPRIMARYTYPE, JCR_FROZENUUID, JCR_HASORDERABLECHILDNODES, JCR_ISCHECKEDOUT, JCR_ISMIXIN, JCR_LANGUAGE, JCR_LASTMODIFIED, JCR_LOCKISDEEP, JCR_LOCKOWNER, JCR_MANDATORY, JCR_MERGEFAILED, JCR_MIMETYPE, JCR_MIXINTYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODETYPENAME, JCR_ONPARENTVERSION, JCR_PATH, JCR_PREDECESSORS, JCR_PRIMARYITEMNAME, JCR_PRIMARYTYPE, JCR_PROPERTYDEFINITION, JCR_PROTECTED, JCR_REQUIREDPRIMARYTYPES, JCR_REQUIREDTYPE, JCR_ROOTVERSION, JCR_SAMENAMESIBLINGS, JCR_SCORE, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_SYSTEM, JCR_UUID, JCR_VALUECONSTRAINTS, JCR_VERSIONABLEUUID, JCR_VERSIONHISTORY, JCR_VERSIONLABELS, JCR_VERSIONSTORAGE, MIX_LOCKABLE, MIX_REFERENCEABLE, MIX_VERSIONABLE, NT_BASE, NT_CHILDNODEDEFINITION, NT_FILE, NT_FOLDER, NT_FROZENNODE, NT_HIERARCHYNODE, NT_LINKEDFILE, NT_NODETYPE, NT_PROPERTYDEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSIONEDCHILD, NT_VERSIONHISTORY, NT_VERSIONLABELS |
Constructor Summary | |
AbstractExportCommand()
|
Method Summary | |
abstract boolean |
canHandle(Node node)
Checks if this export command can handle the given node. |
boolean |
execute(AbstractContext context)
Executes this command by calling execute(ExportContext) if
the given context is of the correct class. |
boolean |
execute(ExportContext context)
Executs this command using the given export context. |
abstract boolean |
exportNode(ExportContext context,
Node content)
Creates the response content. |
abstract String |
getDefaultContentType()
Returns the default content type of this export |
Methods inherited from class org.apache.jackrabbit.server.io.AbstractCommand |
execute, getId, setEnabled, setId |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractExportCommand()
Method Detail |
public boolean execute(AbstractContext context) throws Exception
execute(ExportContext)
if
the given context is of the correct class.
execute
in class AbstractCommand
context
- the (export) context.
Exception
- in an error occurrspublic boolean execute(ExportContext context) throws Exception
exportNode(ExportContext, javax.jcr.Node)
.
context
- the export context
exportNode(ExportContext, javax.jcr.Node)
or false, if this command does not handle the given node at all.
Exception
- if an error occurrspublic abstract boolean exportNode(ExportContext context, Node content) throws Exception
context
- content
-
Exception
public abstract String getDefaultContentType()
public abstract boolean canHandle(Node node)
node
-
true
if it can handle the export;
false
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |