public class DefaultPageFactory extends DefaultTraversableAmetysObjectFactory
AmetysObjectFactory
for creating traversable DefaultPage
.Modifier and Type | Field and Description |
---|---|
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
private WorkflowProvider |
_workflowProvider |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
DefaultPageFactory() |
Modifier and Type | Method and Description |
---|---|
DefaultPage |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
PageDataTypeExtensionPoint |
getPageDataTypeExtensionPoint()
Retrieves the extension point of page data types
|
Request |
getRequest()
Get the request
|
WorkflowProvider |
getWorkflowProvider()
Get the workflow provider
|
<A extends AmetysObject> |
resolveAmetysObject(Node node)
Resolves an
AmetysObject from a node. |
void |
service(ServiceManager serviceManager) |
createChild, getChild, getChildren, hasChild
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private WorkflowProvider _workflowProvider
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
public DefaultPageFactory()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class SimpleAmetysObjectFactory
ServiceException
public WorkflowProvider getWorkflowProvider()
public Request getRequest()
public DefaultPage getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultTraversableAmetysObjectFactory
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.public <A extends AmetysObject> A resolveAmetysObject(Node node) throws AmetysRepositoryException, RepositoryException
AmetysObject
from a node.A
- the actual type of AmetysObject
.node
- the node.AmetysObject
resolved.AmetysRepositoryException
- if an error occurs.RepositoryException
- if a JCR error occurs.public PageDataTypeExtensionPoint getPageDataTypeExtensionPoint()