public class VirtualUGCPageFactory extends AbstractLogEnabled implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory for handling "virtual" ugc page| Modifier and Type | Field and Description |
|---|---|
protected PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint
The extension point with available data types for pages
|
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
protected ServiceExtensionPoint |
_serviceExtensionPoint
The service extension point
|
protected SkinsManager |
_skinManager
The skin manager
|
protected UGCPageHandler |
_ugcPageHandler
The UGC page handler
|
| Constructor and Description |
|---|
VirtualUGCPageFactory() |
| Modifier and Type | Method and Description |
|---|---|
Page |
getAmetysObjectById(String id)
|
Page |
getChild(JCRAmetysObject parent,
String childName)
Returns a named
AmetysObject. |
AmetysObjectIterable<Page> |
getChildren(JCRAmetysObject parent)
Returns the "root" objects of this virtual factory, hosted in the Ametys
hierarchy under a
TraversableAmetysObject, which is backed by a
concrete JCR Node. |
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. |
boolean |
hasChild(JCRAmetysObject parent,
String childName)
Returns true if the named
AmetysObject exists. |
void |
service(ServiceManager manager) |
getLogger, setLoggerprotected AmetysObjectResolver _resolver
protected UGCPageHandler _ugcPageHandler
protected SkinsManager _skinManager
protected PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
protected ServiceExtensionPoint _serviceExtensionPoint
public VirtualUGCPageFactory()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic Page getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactorygetAmetysObjectById in interface AmetysObjectFactory<Page>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<Page>id - the identifier.AmetysObject.AmetysRepositoryException - if an error occurs.public String getScheme()
AmetysObjectFactorygetScheme in interface AmetysObjectFactory<Page>public AmetysObjectIterable<Page> getChildren(JCRAmetysObject parent)
VirtualAmetysObjectFactoryTraversableAmetysObject, which is backed by a
concrete JCR Node.getChildren in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.public Page getChild(JCRAmetysObject parent, String childName)
VirtualAmetysObjectFactoryAmetysObject.getChild in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.childName - the name of the virtual child.AmetysObject.public boolean hasChild(JCRAmetysObject parent, String childName)
VirtualAmetysObjectFactoryAmetysObject exists.hasChild in interface VirtualAmetysObjectFactory<Page>parent - the JCRAmetysObject "hosting" this factory.childName - the name of the virtual child.AmetysObject exists.