public class VirtualUserDirectoryPageFactory extends AbstractLogEnabled implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory
for handling "virtual" user directory pageModifier and Type | Field and Description |
---|---|
private PageDataTypeExtensionPoint |
_pageDataTypeExtensionPoint |
protected AmetysObjectResolver |
_resolver
The ametys object resolver
|
private ServiceExtensionPoint |
_serviceExtensionPoint |
private SkinsManager |
_skinManager |
private SynchronizableContentsCollectionDAO |
_synchronizableContentsCollectionDAO |
protected UserDirectoryPageHandler |
_userDirectoryPageHandler
The user directory root page handler.
|
Constructor and Description |
---|
VirtualUserDirectoryPageFactory() |
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, setLogger
protected UserDirectoryPageHandler _userDirectoryPageHandler
protected AmetysObjectResolver _resolver
private SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
private SkinsManager _skinManager
private PageDataTypeExtensionPoint _pageDataTypeExtensionPoint
private ServiceExtensionPoint _serviceExtensionPoint
public VirtualUserDirectoryPageFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Page getAmetysObjectById(String id) throws AmetysRepositoryException
AmetysObjectFactory
getAmetysObjectById
in interface AmetysObjectFactory<Page>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public boolean hasAmetysObjectForId(String id) throws AmetysRepositoryException
AmetysObjectFactory
AmetysObject
.
Id are like <protocol>://<protocol-specific-part>
.hasAmetysObjectForId
in interface AmetysObjectFactory<Page>
id
- the identifier.AmetysObject
.AmetysRepositoryException
- if an error occurs.public String getScheme()
AmetysObjectFactory
getScheme
in interface AmetysObjectFactory<Page>
public AmetysObjectIterable<Page> getChildren(JCRAmetysObject parent)
VirtualAmetysObjectFactory
TraversableAmetysObject
, 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)
VirtualAmetysObjectFactory
AmetysObject
.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)
VirtualAmetysObjectFactory
AmetysObject
exists.hasChild
in interface VirtualAmetysObjectFactory<Page>
parent
- the JCRAmetysObject
"hosting" this factory.childName
- the name of the virtual child.AmetysObject
exists.