public class JCRTaskFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory
for handling JCRTask
.Modifier and Type | Field and Description |
---|---|
static String |
TASK_NODETYPE
JCR nodetype for tasks
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
JCRTaskFactory() |
Modifier and Type | Method and Description |
---|---|
JCRTask |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
getCurrentUser, getWorkspaceNode, service
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String TASK_NODETYPE
public JCRTaskFactory()
public JCRTask getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultAmetysObjectFactory
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy,
may be null
if not known yet.AmetysRepositoryException
- if an error occurs.