public class UGCPageFactory extends Object implements AmetysObjectFactory<UGCPage>, Serviceable
AmetysObjectFactory handling UGCPage.| Modifier and Type | Field and Description |
|---|---|
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
private AmetysObjectResolver |
_resolver |
private ServiceExtensionPoint |
_serviceExtensionPoint |
private SkinsManager |
_skinManager |
private UGCPageHandler |
_ugcPageHandler |
| Constructor and Description |
|---|
UGCPageFactory() |
| Modifier and Type | Method and Description |
|---|---|
UGCPage |
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) |
private AmetysObjectResolver _resolver
private UGCPageHandler _ugcPageHandler
private SkinsManager _skinManager
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
private ServiceExtensionPoint _serviceExtensionPoint
public UGCPageFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic UGCPage getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactorygetAmetysObjectById in interface AmetysObjectFactory<UGCPage>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactoryAmetysObject.
Id are like <protocol>://<protocol-specific-part>.hasAmetysObjectForId in interface AmetysObjectFactory<UGCPage>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.public String getScheme()
AmetysObjectFactorygetScheme in interface AmetysObjectFactory<UGCPage>