public class DefaultSharedContentFactory extends DefaultWebContentFactory
AmetysObjectFactory
which handles DefaultSharedContent
s.Modifier and Type | Field and Description |
---|---|
private ModifiableContentHelper |
_modifiableContentHelper |
static String |
SHARED_CONTENT_NODETYPE
The shared content nodetype.
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
DefaultSharedContentFactory() |
Modifier and Type | Method and Description |
---|---|
DefaultSharedContent |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
(package private) ModifiableContentHelper |
getModifiableContentHelper() |
<A extends AmetysObject> |
resolveAmetysObject(Node node)
Resolves an
AmetysObject from a node. |
createChild, getChild, getChildren, getSite, hasChild, service
_getContentTypeExtensionPoint, createChild, getChild, getChildren, hasChild
getCurrentUser, getWorkspaceNode
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String SHARED_CONTENT_NODETYPE
private ModifiableContentHelper _modifiableContentHelper
public DefaultSharedContentFactory()
public DefaultSharedContent getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultWebContentFactory
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.public <A extends AmetysObject> A resolveAmetysObject(Node node) throws AmetysRepositoryException, RepositoryException
DefaultWebContentFactory
AmetysObject
from a node.resolveAmetysObject
in class DefaultWebContentFactory
A
- the actual type of AmetysObject
.node
- the node.AmetysObject
resolved.AmetysRepositoryException
- if an error occurs.RepositoryException
- if a JCR error occurs.ModifiableContentHelper getModifiableContentHelper()