public class ProgramZoneItemFactory extends Object implements AmetysObjectFactory<ProgramZoneItem>, Serviceable
AmetysObjectFactory
handling ProgramZoneItem
.Modifier and Type | Field and Description |
---|---|
(package private) AmetysObjectResolver |
_resolver |
Constructor and Description |
---|
ProgramZoneItemFactory() |
Modifier and Type | Method and Description |
---|---|
ProgramZoneItem |
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 . |
void |
service(ServiceManager manager) |
AmetysObjectResolver _resolver
public ProgramZoneItemFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public ProgramZoneItem getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<ProgramZoneItem>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<ProgramZoneItem>
public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<ProgramZoneItem>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.