Class ProgramPageFactory
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.ProgramPageFactory
- All Implemented Interfaces:
AmetysObjectFactory<ProgramPage>,DeferredServiceable,LogEnabled,Component,Configurable,Contextualizable
public class ProgramPageFactory
extends AbstractOdfPageFactory
implements AmetysObjectFactory<ProgramPage>
AmetysObjectFactory handling ProgramPage.-
Field Summary
Fields inherited from class org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
_odfHelper, _odfPageHandler, _pageCacheFields 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 TypeMethodDescriptioncreateProgramPage(Page root, AbstractProgram program, String path, Program parent, Page parentPage) Create a program 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.odfweb.repository.AbstractOdfPageFactory
deferredServiceMethods 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
-
ProgramPageFactory
public ProgramPageFactory()
-
-
Method Details
-
createProgramPage
public ProgramPage createProgramPage(Page root, AbstractProgram program, String path, Program parent, Page parentPage) Create a program page.- Parameters:
root- the ODF root page.program- the program or subprogram.path- The path from the virtual second level page. Can be null if abstract program is aProgramparent- the parent program in case of a subprogram, null otherwiseparentPage- the parentPageor null if not yet computed.- Returns:
- The
ProgramPagecreated
-
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<ProgramPage>- Parameters:
id- the identifier.- Returns:
- the corresponding
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<ProgramPage>- Returns:
- the protocol of this factory.
-
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<ProgramPage>- Parameters:
id- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-