Class ProgramZoneItemFactory
- java.lang.Object
-
- org.ametys.plugins.odfweb.repository.ProgramZoneItemFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<ProgramZoneItem>,Component,Serviceable
public class ProgramZoneItemFactory extends Object implements AmetysObjectFactory<ProgramZoneItem>, Serviceable
AmetysObjectFactoryhandlingProgramZoneItem.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PageDataTypeExtensionPoint_pageDataTypeExtensionPoint(package private) AmetysObjectResolver_resolver
-
Constructor Summary
Constructors Constructor Description ProgramZoneItemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProgramZoneItemgetAmetysObjectById(String id)StringgetScheme()Returns the protocol of this factory, used to construct unique ids.booleanhasAmetysObjectForId(String id)Return true if the specified id correspond to an existingAmetysObject.voidservice(ServiceManager manager)
-
-
-
Field Detail
-
_resolver
AmetysObjectResolver _resolver
-
_pageDataTypeExtensionPoint
PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
-
-
Constructor Detail
-
ProgramZoneItemFactory
public ProgramZoneItemFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
getAmetysObjectById
public ProgramZoneItem getAmetysObjectById(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory- Specified by:
getAmetysObjectByIdin interfaceAmetysObjectFactory<ProgramZoneItem>- Parameters:
id- the identifier.- Returns:
- the corresponding
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
getScheme
public String getScheme()
Description copied from interface:AmetysObjectFactoryReturns the protocol of this factory, used to construct unique ids.- Specified by:
getSchemein interfaceAmetysObjectFactory<ProgramZoneItem>- Returns:
- the protocol of this factory.
-
hasAmetysObjectForId
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
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<ProgramZoneItem>- Parameters:
id- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject. - Throws:
AmetysRepositoryException- if an error occurs.
-
-