Class ProgramPageFactory
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
-
- org.ametys.plugins.odfweb.repository.ProgramPageFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<ProgramPage>
,LogEnabled
,Component
,Serviceable
public class ProgramPageFactory extends AbstractOdfPageFactory implements AmetysObjectFactory<ProgramPage>
AmetysObjectFactory
handlingProgramPage
.
-
-
Field Summary
-
Fields inherited from class org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
_ametysObjectFactoryEP, _manager, _odfPageHandler, _pageCache, _pageDataTypeExtensionPoint, _resolver, _serviceExtensionPoint
-
-
Constructor Summary
Constructors Constructor Description ProgramPageFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Program
_getParentProgramOrSelf(Program parent, AbstractProgram self)
ProgramPage
getAmetysObjectById(String id)
String
getScheme()
Returns the protocol of this factory, used to construct unique ids.boolean
hasAmetysObjectForId(String id)
Return true if the specified id correspond to an existingAmetysObject
.-
Methods inherited from class org.ametys.plugins.odfweb.repository.AbstractOdfPageFactory
getCoursePageFactory, getFirstLevelPageFactory, getODFPageCache, getODFPageHandler, getPageDataTypeEP, getProgramPageFactory, getResolver, getSecondLevelPageFactory, getServiceEP, getZoneDataTypeEP, getZoneItemDataTypeEP, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ProgramPageFactory
public ProgramPageFactory()
-
-
Method Detail
-
getAmetysObjectById
public ProgramPage getAmetysObjectById(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<ProgramPage>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
_getParentProgramOrSelf
private Program _getParentProgramOrSelf(Program parent, AbstractProgram self) throws UnknownAmetysObjectException
- Throws:
UnknownAmetysObjectException
-
getScheme
public String getScheme()
Description copied from interface:AmetysObjectFactory
Returns the protocol of this factory, used to construct unique ids.- Specified by:
getScheme
in interfaceAmetysObjectFactory<ProgramPage>
- Returns:
- the protocol of this factory.
-
hasAmetysObjectForId
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
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<ProgramPage>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
-