Package org.ametys.plugins.ugc.page
Class VirtualUGCPageFactory
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
org.ametys.plugins.ugc.page.AbstractUGCPageFactory
org.ametys.plugins.ugc.page.VirtualUGCPageFactory
- All Implemented Interfaces:
 AmetysObjectFactory<Page>,VirtualAmetysObjectFactory<Page>,LogEnabled,Component,Configurable,Serviceable
public class VirtualUGCPageFactory
extends AbstractUGCPageFactory
implements VirtualAmetysObjectFactory<Page>
AmetysObjectFactory for handling "virtual" ugc page- 
Field Summary
Fields inherited from class org.ametys.plugins.ugc.page.AbstractUGCPageFactory
_skinManager, _ugcPageHandlerFields inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
_ametysObjectFactoryEP, _configurationId, _i18nUtils, _manager, _pageDataTypeExtensionPoint, _resolver, _saxParser, _serviceExtensionPoint, _skinsManager, _virtualPageConfigurationEP, _zoneFactoryId - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetChild(JCRAmetysObject parent, String childName) Returns a namedAmetysObject.getChildren(JCRAmetysObject parent) Returns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject, which is backed by a concrete JCR Node.Returns the protocol of this factory, used to construct unique ids.booleanReturn true if the specified id correspond to an existingAmetysObject.booleanhasChild(JCRAmetysObject parent, String childName) Returns true if the namedAmetysObjectexists.Methods inherited from class org.ametys.plugins.ugc.page.AbstractUGCPageFactory
getConfiguration, getUgcPageHandler, serviceMethods inherited from class org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPageFactory
configure, getAmetysObjectFactoryEP, getConfiguration, getI18nUtils, getPageDataTypeEP, getResolver, getSaxParser, getServiceEP, getSkinsManager, getZoneFactoryMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Constructor Details
- 
VirtualUGCPageFactory
public VirtualUGCPageFactory() 
 - 
 - 
Method Details
- 
getAmetysObjectById
Description copied from interface:AmetysObjectFactory- Specified by:
 getAmetysObjectByIdin interfaceAmetysObjectFactory<Page>- Parameters:
 id- the identifier.- Returns:
 - the corresponding 
AmetysObject. - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
hasAmetysObjectForId
Description copied from interface:AmetysObjectFactoryReturn true if the specified id correspond to an existingAmetysObject. Id are like<protocol>://<protocol-specific-part>.- Specified by:
 hasAmetysObjectForIdin interfaceAmetysObjectFactory<Page>- Parameters:
 id- the identifier.- Returns:
 - true if the specified id correspond to an existing 
AmetysObject. - Throws:
 AmetysRepositoryException- if an error occurs.
 - 
getScheme
Description copied from interface:AmetysObjectFactoryReturns the protocol of this factory, used to construct unique ids.- Specified by:
 getSchemein interfaceAmetysObjectFactory<Page>- Returns:
 - the protocol of this factory.
 
 - 
getChildren
Description copied from interface:VirtualAmetysObjectFactoryReturns the "root" objects of this virtual factory, hosted in the Ametys hierarchy under aTraversableAmetysObject, which is backed by a concrete JCR Node.- Specified by:
 getChildrenin interfaceVirtualAmetysObjectFactory<Page>- Parameters:
 parent- theJCRAmetysObject"hosting" this factory.- Returns:
 - the root objects of this virtual factory.
 
 - 
getChild
Description copied from interface:VirtualAmetysObjectFactoryReturns a namedAmetysObject.- Specified by:
 getChildin interfaceVirtualAmetysObjectFactory<Page>- Parameters:
 parent- theJCRAmetysObject"hosting" this factory.childName- the name of the virtual child.- Returns:
 - the corresponding 
AmetysObject. 
 - 
hasChild
Description copied from interface:VirtualAmetysObjectFactoryReturns true if the namedAmetysObjectexists.- Specified by:
 hasChildin interfaceVirtualAmetysObjectFactory<Page>- Parameters:
 parent- theJCRAmetysObject"hosting" this factory.childName- the name of the virtual child.- Returns:
 - true if the named 
AmetysObjectexists. 
 
 -