Class QueryContainerFactory
- java.lang.Object
- 
- org.apache.avalon.framework.logger.AbstractLogEnabled
- 
- org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
- 
- org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
- 
- org.ametys.plugins.queriesdirectory.QueryContainerFactory
 
 
 
 
- 
- All Implemented Interfaces:
- AmetysObjectFactory<SimpleAmetysObject>,- JCRAmetysObjectFactory<SimpleAmetysObject>,- Component,- Configurable,- LogEnabled,- Serviceable
 
 public class QueryContainerFactory extends DefaultTraversableAmetysObjectFactory AmetysObjectFactoryfor handlingQueryContainers.
- 
- 
Field SummaryFields Modifier and Type Field Description protected QueryDAO_queryDAOThe Query DAOstatic StringQUERY_CONTAINER_NODETYPEJCR nodetype for query container- 
Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
 
- 
 - 
Constructor SummaryConstructors Constructor Description QueryContainerFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryContainergetAmetysObject(Node node, String parentPath)Creates aAmetysObjectfrom a persistent JCR node.voidservice(ServiceManager manager)- 
Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactorycreateChild, getChild, getChildren, hasChild
 - 
Methods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactoryconfigure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
 - 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabledenableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
- 
 
- 
- 
- 
Field Detail- 
QUERY_CONTAINER_NODETYPEpublic static final String QUERY_CONTAINER_NODETYPE JCR nodetype for query container- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
QueryContainerFactorypublic QueryContainerFactory() 
 
- 
 - 
Method Detail- 
servicepublic void service(ServiceManager manager) throws ServiceException - Specified by:
- servicein interface- Serviceable
- Overrides:
- servicein class- SimpleAmetysObjectFactory
- Throws:
- ServiceException
 
 - 
getAmetysObjectpublic QueryContainer getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException Description copied from interface:JCRAmetysObjectFactoryCreates aAmetysObjectfrom a persistent JCR node.- Specified by:
- getAmetysObjectin interface- JCRAmetysObjectFactory<SimpleAmetysObject>
- Overrides:
- getAmetysObjectin class- DefaultTraversableAmetysObjectFactory
- Parameters:
- node- the JCR node to use.
- parentPath- the parent Path in the Ametys hierarchy, may be- nullif not known yet.
- Returns:
- the object.
- Throws:
- AmetysRepositoryException- if an error occurs.
 
 
- 
 
-