public class VirtualOrganisationChartPageFactory extends AbstractLogEnabled implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory for handling "virtual" organisation chart root page| Modifier and Type | Field and Description |
|---|---|
private OrganisationChartPageHandler |
_organisationChartPageHandler |
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
private AmetysObjectResolver |
_resolver |
private SkinsManager |
_skinManager |
private SynchronizableContentsCollectionDAO |
_synchronizableContentsCollectionDAO |
| Constructor and Description |
|---|
VirtualOrganisationChartPageFactory() |
| Modifier and Type | Method and Description |
|---|---|
Page |
getAmetysObjectById(String id)
|
Page |
getChild(JCRAmetysObject parent,
String childName)
Returns a named
AmetysObject. |
AmetysObjectIterable<Page> |
getChildren(JCRAmetysObject parent)
Returns the "root" objects of this virtual factory, hosted in the Ametys
hierarchy under a
TraversableAmetysObject, which is backed by a
concrete JCR Node. |
String |
getScheme()
Returns the protocol of this factory, used to construct unique ids.
|
boolean |
hasAmetysObjectForId(String id)
Return true if the specified id correspond to an existing
AmetysObject. |
boolean |
hasChild(JCRAmetysObject parent,
String childName)
Returns true if the named
AmetysObject exists. |
void |
service(ServiceManager manager) |
getLogger, setLoggerprivate OrganisationChartPageHandler _organisationChartPageHandler
private AmetysObjectResolver _resolver
private SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
private SkinsManager _skinManager
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
public VirtualOrganisationChartPageFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic Page getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactorygetAmetysObjectById in interface AmetysObjectFactory<Page>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactoryAmetysObject.
Id are like <protocol>://<protocol-specific-part>.hasAmetysObjectForId in interface AmetysObjectFactory<Page>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.public String getScheme()
AmetysObjectFactorygetScheme in interface AmetysObjectFactory<Page>public AmetysObjectIterable<Page> getChildren(JCRAmetysObject parent)
VirtualAmetysObjectFactoryTraversableAmetysObject, which is backed by a
concrete JCR Node.getChildren in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.public Page getChild(JCRAmetysObject parent, String childName)
VirtualAmetysObjectFactoryAmetysObject.getChild in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.childName - the name of the virtual child.AmetysObject.public boolean hasChild(JCRAmetysObject parent, String childName)
VirtualAmetysObjectFactoryAmetysObject exists.hasChild in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.childName - the name of the virtual child.AmetysObject exists.