public class QueryFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory
for handling Query
s.Modifier and Type | Field and Description |
---|---|
protected ContentTypeExtensionPoint |
_cTypeEP
Content type extension point
|
protected GroupManager |
_groupManager
Group manager
|
static String |
QUERY_NODETYPE
JCR nodetype for query
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
QueryFactory() |
Modifier and Type | Method and Description |
---|---|
(package private) ContentTypeExtensionPoint |
_getContentTypeExtensionPoint()
Getter for the content type extension point
|
(package private) GroupManager |
_getGroupManager()
Group manager getter.
|
Query |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
void |
service(ServiceManager manager) |
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String QUERY_NODETYPE
protected GroupManager _groupManager
protected ContentTypeExtensionPoint _cTypeEP
public QueryFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class DefaultAmetysObjectFactory
ServiceException
public Query getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultAmetysObjectFactory
node
- the JCR node to use.parentPath
- the parent Path in the Ametys hierarchy,
may be null
if not known yet.AmetysRepositoryException
- if an error occurs.GroupManager _getGroupManager()
ContentTypeExtensionPoint _getContentTypeExtensionPoint()