public class JCRResourceFactory extends DefaultAmetysObjectFactory
AmetysObjectFactory
for handling JCRResource
s.Modifier and Type | Field and Description |
---|---|
private LockComponent |
_lockComponent |
static String |
RESOURCES_NODETYPE
JCR nodetype for resources collection
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
JCRResourceFactory() |
Modifier and Type | Method and Description |
---|---|
JCRResource |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) LockComponent |
getLockComponent() |
(package private) AmetysObjectResolver |
getResolver() |
getCurrentUser, getWorkspaceNode, service
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String RESOURCES_NODETYPE
private LockComponent _lockComponent
public JCRResourceFactory()
public JCRResource 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.AmetysObjectResolver getResolver()
LockComponent getLockComponent()