public class ModifiableContentFactory extends ContentFactory
AmetysObjectFactory
handling Content
.Modifier and Type | Field and Description |
---|---|
private LockComponent |
_lockComponent |
private ServiceManager |
_serviceManager |
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
ModifiableContentFactory() |
Modifier and Type | Method and Description |
---|---|
ModifiableDefaultContent |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) LockComponent |
getLockComponent() |
void |
service(ServiceManager manager) |
_getAOResolver, _getContentDAO, _getModifiableContentHelper, createChild, getChild, getChildren, hasChild
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
private LockComponent _lockComponent
private ServiceManager _serviceManager
public ModifiableContentFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ContentFactory
ServiceException
public ModifiableDefaultContent getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class ContentFactory
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.LockComponent getLockComponent()