Package org.ametys.plugins.ugc.page
Class UGCZoneItemFactory
- java.lang.Object
-
- org.ametys.plugins.ugc.page.UGCZoneItemFactory
-
- All Implemented Interfaces:
AmetysObjectFactory<UGCZoneItem>
,Component
,Serviceable
public class UGCZoneItemFactory extends Object implements AmetysObjectFactory<UGCZoneItem>, Serviceable
AmetysObjectFactory
handlingUGCZoneItem
.
-
-
Constructor Summary
Constructors Constructor Description UGCZoneItemFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UGCZoneItem
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
.void
service(ServiceManager manager)
-
-
-
Constructor Detail
-
UGCZoneItemFactory
public UGCZoneItemFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAmetysObjectById
public UGCZoneItem getAmetysObjectById(String id) throws AmetysRepositoryException
Description copied from interface:AmetysObjectFactory
- Specified by:
getAmetysObjectById
in interfaceAmetysObjectFactory<UGCZoneItem>
- Parameters:
id
- the identifier.- Returns:
- the corresponding
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
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<UGCZoneItem>
- 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<UGCZoneItem>
- Parameters:
id
- the identifier.- Returns:
- true if the specified id correspond to an existing
AmetysObject
. - Throws:
AmetysRepositoryException
- if an error occurs.
-
-