public class DefaultWorkflowAwareContentFactory extends ContentFactory
Modifier and Type | Field and Description |
---|---|
private WorkflowProvider |
_workflowProvider |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
DefaultWorkflowAwareContentFactory() |
Modifier and Type | Method and Description |
---|---|
DefaultWorkflowAwareContent |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) WorkflowProvider |
getWorkflowProvider() |
void |
service(ServiceManager smanager) |
_getAOResolver, _getContentDAO, _getModifiableContentHelper, createChild, getChild, getChildren, hasChild
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private WorkflowProvider _workflowProvider
public DefaultWorkflowAwareContentFactory()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ContentFactory
ServiceException
WorkflowProvider getWorkflowProvider()
public DefaultWorkflowAwareContent getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class ContentFactory
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.