Class UserPageFactory
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.UserPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<UserPage>
,LogEnabled
,Component
,Configurable
,Serviceable
public class UserPageFactory
extends AbstractUserDirectoryPageFactory
implements AmetysObjectFactory<UserPage>
AmetysObjectFactory
handling UserPage
.-
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, _i18nUtils, _manager, _pageDataTypeExtensionPoint, _resolver, _saxParser, _serviceExtensionPoint, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateUserPage
(Page root, Content syncContent, String path) Create a User page.Get the synchronizable contents collection helperReturns the protocol of this factory, used to construct unique ids.boolean
Return true if the specified id correspond to an existingAmetysObject
.void
service
(ServiceManager manager) 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, getAmetysObjectFactoryEP, getConfiguration, getI18nUtils, getPageDataTypeEP, getResolver, getSaxParser, getServiceEP, getSkinsManager, getZoneFactory
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
UserPageFactory
public UserPageFactory()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractUserDirectoryPageFactory
- Throws:
ServiceException
-
createUserPage
Create a User page.- Parameters:
root
- the root page.syncContent
- the synchronized contentpath
- the path- Returns:
- The
UserPager
created
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<UserPage>
- 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<UserPage>
- 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<UserPage>
- Returns:
- the protocol of this factory.
-
getSccHelper
Get the synchronizable contents collection helper- Returns:
- The
SynchronizableContentsCollectionHelper
-