public class DefaultSharedContentFactory extends DefaultWebContentFactory
AmetysObjectFactory which handles DefaultSharedContents.| 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, hasChildgetCurrentUser, getWorkspaceNodeconfigure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, hasAmetysObjectForIdenableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic static final String SHARED_CONTENT_NODETYPE
private ModifiableContentHelper _modifiableContentHelper
public DefaultSharedContentFactory()
public DefaultSharedContent getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactoryAmetysObject from a persistent JCR node.getAmetysObject in interface JCRAmetysObjectFactory<SimpleAmetysObject>getAmetysObject in class DefaultWebContentFactorynode - 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
DefaultWebContentFactoryAmetysObject from a node.resolveAmetysObject in class DefaultWebContentFactoryA - the actual type of AmetysObject.node - the node.AmetysObject resolved.AmetysRepositoryException - if an error occurs.RepositoryException - if a JCR error occurs.ModifiableContentHelper getModifiableContentHelper()