Class OrgUnitPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
org.ametys.plugins.userdirectory.page.AbstractUserDirectoryPageFactory
org.ametys.plugins.userdirectory.page.OrgUnitPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<OrgUnitPage>
,DeferredServiceable
,LogEnabled
,Component
,Configurable
,Contextualizable
public class OrgUnitPageFactory
extends AbstractUserDirectoryPageFactory
implements AmetysObjectFactory<OrgUnitPage>
AmetysObjectFactory
handling OrgUnitPage
.-
Field Summary
Fields inherited from class org.ametys.plugins.userdirectory.page.AbstractUserDirectoryPageFactory
_synchronizableContentsCollectionDAO, _userDirectoryPageHandler
Fields inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
_ametysObjectFactoryEP, _configurationId, _context, _manager, _pageDataTypeExtensionPoint, _resolver, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrgUnitPage
(Page root, Content syncContent, String path) Create a Org unit page.void
deferredService
(ServiceManager manager) Pass theServiceManager
used to access other components.Get the organisation chart page handlerReturns the protocol of this factory, used to construct unique ids.boolean
Return true if the specified id correspond to an existingAmetysObject
.Methods inherited from class org.ametys.plugins.userdirectory.page.AbstractUserDirectoryPageFactory
getOrgUnitPageFactory, getSynchronizableContentsCollectionDAO, getTransitionalPageFactory, getUserDirectoryPageHandler, getUserPageFactory
Methods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
configure, contextualize, getConfiguration, getPageDataTypeEP, getRequest, getResolver, getSkinsManager, getZoneFactory
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
OrgUnitPageFactory
public OrgUnitPageFactory()
-
-
Method Details
-
deferredService
Description copied from interface:DeferredServiceable
Pass theServiceManager
used to access other components.- Specified by:
deferredService
in interfaceDeferredServiceable
- Overrides:
deferredService
in classAbstractUserDirectoryPageFactory
- Parameters:
manager
- TheServiceManager
which thisDeferredServiceable
uses. Must not benull
.- Throws:
ServiceException
- if an error occurs
-
createOrgUnitPage
Create a Org unit page.- Parameters:
root
- the root page.syncContent
- the synchronized contentpath
- the path- Returns:
- The
OrgUnitPage
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<OrgUnitPage>
- 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<OrgUnitPage>
- 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<OrgUnitPage>
- Returns:
- the protocol of this factory.
-
getOrganisationChartPageHandler
Get the organisation chart page handler- Returns:
- The
OrganisationChartPageHandler
-