Package org.ametys.plugins.ugc.page
Class UGCPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<UGCPage>
,LogEnabled
,Component
,Configurable
,Serviceable
AmetysObjectFactory
handling UGCPage
.-
Field Summary
Fields inherited from class org.ametys.plugins.ugc.page.AbstractUGCPageFactory
_skinManager, _ugcPageHandler
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 TypeMethodDescriptioncreateUGCPage
(Page root, Content syncContent, String path) Create a UGC page.Returns 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.ugc.page.AbstractUGCPageFactory
getConfiguration, getUgcPageHandler, service
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
-
UGCPageFactory
public UGCPageFactory()
-
-
Method Details
-
createUGCPage
Create a UGC page.- Parameters:
root
- the root page.syncContent
- the synchronized contentpath
- the path- Returns:
- The
UGCPage
created
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<UGCPage>
- 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<UGCPage>
- 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<UGCPage>
- Returns:
- the protocol of this factory.
-