Package org.ametys.plugins.ugc.page
Class UGCPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<UGCPage>,LogEnabled,Component,Configurable,Contextualizable,Serviceable
AmetysObjectFactory handling UGCPage.-
Field Summary
Fields inherited from class org.ametys.plugins.ugc.page.AbstractUGCPageFactory
_skinManager, _ugcPageHandlerFields inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
_ametysObjectFactoryEP, _configurationId, _context, _i18nUtils, _manager, _pageDataTypeExtensionPoint, _resolver, _saxParser, _serviceExtensionPoint, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId -
Constructor Summary
Constructors -
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.booleanReturn true if the specified id correspond to an existingAmetysObject.Methods inherited from class org.ametys.plugins.ugc.page.AbstractUGCPageFactory
getConfiguration, getUgcPageHandler, serviceMethods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
configure, contextualize, getAmetysObjectFactoryEP, getConfiguration, getI18nUtils, getPageDataTypeEP, getRequest, getResolver, getSaxParser, getServiceEP, getSkinsManager, getZoneFactoryMethods 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
UGCPagecreated
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<UGCPage>- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
hasAmetysObjectForId
Description copied from interface:AmetysObjectFactoryReturn true if the specified id correspond to an existingAmetysObject. Id are like<protocol>://<protocol-specific-part>.- Specified by:
hasAmetysObjectForIdin 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:AmetysObjectFactoryReturns the protocol of this factory, used to construct unique ids.- Specified by:
getSchemein interfaceAmetysObjectFactory<UGCPage>- Returns:
- the protocol of this factory.
-