Class VirtualOrganisationChartPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.userdirectory.page.VirtualOrganisationChartPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<Page>
,VirtualAmetysObjectFactory<Page>
,LogEnabled
,Component
,Serviceable
public class VirtualOrganisationChartPageFactory
extends AbstractLogEnabled
implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory
for handling "virtual" organisation chart root page-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChild
(JCRAmetysObject parent, String childName) Returns a namedAmetysObject
.getChildren
(JCRAmetysObject parent) Returns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject
, which is backed by a concrete JCR Node.Returns the protocol of this factory, used to construct unique ids.boolean
Return true if the specified id correspond to an existingAmetysObject
.boolean
hasChild
(JCRAmetysObject parent, String childName) Returns true if the namedAmetysObject
exists.void
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
VirtualOrganisationChartPageFactory
public VirtualOrganisationChartPageFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<Page>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
hasAmetysObjectForId
Description copied from interface:AmetysObjectFactory
Return true if the specified id correspond to an existingAmetysObject
. Id are like<protocol>://<protocol-specific-part>
.- Specified by:
hasAmetysObjectForId
in interfaceAmetysObjectFactory<Page>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
getScheme
Description copied from interface:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in interfaceAmetysObjectFactory<Page>
- Returns:
- the protocol of this factory.
-
getChildren
Description copied from interface:VirtualAmetysObjectFactory
Returns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject
, which is backed by a concrete JCR Node.- Specified by:
getChildren
in interfaceVirtualAmetysObjectFactory<Page>
- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.- Returns:
- the root objects of this virtual factory.
-
getChild
Description copied from interface:VirtualAmetysObjectFactory
Returns a namedAmetysObject
.- Specified by:
getChild
in interfaceVirtualAmetysObjectFactory<Page>
- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.- Returns:
- the corresponding
AmetysObject
.
-
hasChild
Description copied from interface:VirtualAmetysObjectFactory
Returns true if the namedAmetysObject
exists.- Specified by:
hasChild
in interfaceVirtualAmetysObjectFactory<Page>
- Parameters:
parent
- theJCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.- Returns:
- true if the named
AmetysObject
exists.
-