public class DefaultThemeFactory extends SimpleAmetysObjectFactory
Theme
objects, which represent a theme of directory links.Modifier and Type | Field and Description |
---|---|
static String |
THEME_NODE_TYPE
The theme node type.
|
static String |
THEME_ROOT_NODE_TYPE
The theme container node type.
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
DefaultThemeFactory() |
Modifier and Type | Method and Description |
---|---|
DefaultTheme |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String THEME_ROOT_NODE_TYPE
public static final String THEME_NODE_TYPE
public DefaultThemeFactory()
public DefaultTheme getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException, RepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class SimpleAmetysObjectFactory
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.RepositoryException
- if a JCR error occurs.