public class VirtualOrganisationChartPageFactory extends AbstractLogEnabled implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory
for handling "virtual" organisation chart root pageModifier and Type | Field and Description |
---|---|
private OrganisationChartPageHandler |
_organisationChartPageHandler |
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, setLogger
private OrganisationChartPageHandler _organisationChartPageHandler
private AmetysObjectResolver _resolver
private SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
private SkinsManager _skinManager
public VirtualOrganisationChartPageFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Page getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<Page>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<Page>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<Page>
public AmetysObjectIterable<Page> getChildren(JCRAmetysObject parent)
VirtualAmetysObjectFactory
TraversableAmetysObject
, 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)
VirtualAmetysObjectFactory
AmetysObject
.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)
VirtualAmetysObjectFactory
AmetysObject
exists.hasChild
in interface VirtualAmetysObjectFactory<Page>
parent
- the JCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.AmetysObject
exists.