public class ProgramPageFactory extends AbstractOdfPageFactory implements AmetysObjectFactory<ProgramPage>
AmetysObjectFactory
handling ProgramPage
._ametysObjectFactoryEP, _manager, _odfPageHandler, _pageCache, _pageDataTypeExtensionPoint, _resolver, _serviceExtensionPoint
Constructor and Description |
---|
ProgramPageFactory() |
Modifier and Type | Method and 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 existing
AmetysObject . |
getCoursePageFactory, getFirstLevelPageFactory, getODFPageCache, getODFPageHandler, getPageDataTypeEP, getProgramPageFactory, getResolver, getSecondLevelPageFactory, getServiceEP, getZoneDataTypeEP, getZoneItemDataTypeEP, service
getLogger, setLogger
public ProgramPageFactory()
public ProgramPage getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<ProgramPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.private Program _getParentProgramOrSelf(Program parent, AbstractProgram self) throws UnknownAmetysObjectException
UnknownAmetysObjectException
public String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<ProgramPage>
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<ProgramPage>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.