Package org.ametys.plugins.ugc.page
Class UGCTransitionalPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
org.ametys.plugins.ugc.page.AbstractUGCPageFactory
org.ametys.plugins.ugc.page.UGCTransitionalPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<UGCTransitionalPage>,DeferredServiceable,LogEnabled,Component,Configurable,Contextualizable
public class UGCTransitionalPageFactory
extends AbstractUGCPageFactory
implements AmetysObjectFactory<UGCTransitionalPage>
AmetysObjectFactory handling UGCTransitionalPage.-
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, _manager, _pageDataTypeExtensionPoint, _resolver, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUGCTransitionalPage(Page root, String title, String metadataValue, String path) Create a UGCTransitional 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
deferredService, getConfiguration, getUgcPageHandlerMethods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
configure, contextualize, getConfiguration, getPageDataTypeEP, getRequest, getResolver, getSkinsManager, getZoneFactoryMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
UGCTransitionalPageFactory
public UGCTransitionalPageFactory()
-
-
Method Details
-
createUGCTransitionalPage
public UGCTransitionalPage createUGCTransitionalPage(Page root, String title, String metadataValue, String path) Create a UGCTransitional page.- Parameters:
root- the user directory root page.title- the page's title.metadataValue- the metadata valuepath- the path- Returns:
- The
UGCPagecreated
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<UGCTransitionalPage>- 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<UGCTransitionalPage>- 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<UGCTransitionalPage>- Returns:
- the protocol of this factory.
-