public class DefaultZoneItemFactory extends SimpleAmetysObjectFactory
| Modifier and Type | Field and Description |
|---|---|
private CopySiteComponent |
_copyCmp |
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
private ServiceExtensionPoint |
_serviceExtensionPoint |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme| Constructor and Description |
|---|
DefaultZoneItemFactory() |
| Modifier and Type | Method and Description |
|---|---|
DefaultZoneItem |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) CopySiteComponent |
getCopySiteComponent() |
(package private) PageDataTypeExtensionPoint |
getPageDataTypeExtensionPoint() |
Service |
getService(String serviceId)
Retrieves the service with the given identifier
|
<A extends AmetysObject> |
resolveAmetysObject(Node node)
Resolves an
AmetysObject from a node. |
void |
service(ServiceManager smanager) |
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForIdenableLogging, getLogger, setupLogger, setupLogger, setupLoggerprivate CopySiteComponent _copyCmp
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
private ServiceExtensionPoint _serviceExtensionPoint
public DefaultZoneItemFactory()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class SimpleAmetysObjectFactoryServiceExceptionpublic DefaultZoneItem getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactoryAmetysObject from a persistent JCR node.getAmetysObject in interface JCRAmetysObjectFactory<SimpleAmetysObject>getAmetysObject in class SimpleAmetysObjectFactorynode - 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.CopySiteComponent getCopySiteComponent()
PageDataTypeExtensionPoint getPageDataTypeExtensionPoint()
public Service getService(String serviceId)
serviceId - identifier of the service to retrieve