public class VirtualUserDirectoryPageFactory extends AbstractLogEnabled implements VirtualAmetysObjectFactory<Page>, Serviceable
AmetysObjectFactory for handling "virtual" user directory page| Modifier and Type | Field and Description | 
|---|---|
protected AmetysObjectResolver | 
_resolver
The ametys object resolver 
 | 
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, setLoggerprotected UserDirectoryPageHandler _userDirectoryPageHandler
protected AmetysObjectResolver _resolver
private SynchronizableContentsCollectionDAO _synchronizableContentsCollectionDAO
private SkinsManager _skinManager
public VirtualUserDirectoryPageFactory()
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.