public class ThesaurusFactory extends DefaultTraversableAmetysObjectFactory
AmetysObjectFactory
for handling MicroThesaurus
.Modifier and Type | Field and Description |
---|---|
static String |
THESAURUS_NODETYPE
JCR nodetype for query
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
ThesaurusFactory() |
Modifier and Type | Method and Description |
---|---|
Thesaurus |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
createChild, getChild, getChildren, hasChild
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId, service
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String THESAURUS_NODETYPE
public ThesaurusFactory()
public Thesaurus getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class DefaultTraversableAmetysObjectFactory
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.