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>
,LogEnabled
,Component
,Configurable
,Serviceable
public class UGCTransitionalPageFactory
extends AbstractUGCPageFactory
implements AmetysObjectFactory<UGCTransitionalPage>
AmetysObjectFactory
handling UGCTransitionalPage
.-
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 TypeMethodDescriptioncreateUGCTransitionalPage
(Page root, String title, String metadataValue, String path) Create a UGCTransitional 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
-
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
UGCPage
created
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<UGCTransitionalPage>
- 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<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:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in interfaceAmetysObjectFactory<UGCTransitionalPage>
- Returns:
- the protocol of this factory.
-