Class SecondLevelPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
org.ametys.plugins.odfweb.repository.SecondLevelPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<SecondLevelPage>
,LogEnabled
,Component
,Configurable
,Contextualizable
,Serviceable
public class SecondLevelPageFactory
extends AbstractOdfPageFactory
implements AmetysObjectFactory<SecondLevelPage>
AmetysObjectFactory
handling SecondLevelPage
.-
Field Summary
Fields inherited from class org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
_odfHelper, _odfPageHandler, _pageCache
Fields inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
_ametysObjectFactoryEP, _configurationId, _context, _i18nUtils, _manager, _pageDataTypeExtensionPoint, _resolver, _saxParser, _serviceExtensionPoint, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSecondLevelPage
(Page root, String level1Key, String name, String title, FirstLevelPage firstLevelPage) Create a second level 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.odfweb.repository.AbstractOdfPageFactory
service
Methods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
configure, contextualize, getAmetysObjectFactoryEP, getConfiguration, getI18nUtils, getPageDataTypeEP, getRequest, getResolver, getSaxParser, getServiceEP, getSkinsManager, getZoneFactory
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
SecondLevelPageFactory
public SecondLevelPageFactory()
-
-
Method Details
-
createSecondLevelPage
public SecondLevelPage createSecondLevelPage(Page root, String level1Key, String name, String title, FirstLevelPage firstLevelPage) Create a second level page.- Parameters:
root
- the odf root page.level1Key
- the parent first level code (name)name
- the page's name.title
- the page's title.firstLevelPage
- The parent first level page.- Returns:
- The
SecondLevelPage
created
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<SecondLevelPage>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
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<SecondLevelPage>
- Returns:
- the protocol of this factory.
-
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<SecondLevelPage>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-