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
handling ProgramPage
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Constructor Details
-
ProgramPageFactory
public ProgramPageFactory()
-
-
Method Details
-
getAmetysObjectById
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.
-
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
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.
-