public class CMSTagFactory extends TagFactory
AmetysObjectFactory
for creating CMSJCRTag
.Modifier and Type | Field and Description |
---|---|
protected TagTargetTypeExtensionPoint |
_targetTypeEP
The tag target type extension point
|
static String |
TAG_NODETYPE
JCR nodetype for resources collection
|
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme
Constructor and Description |
---|
CMSTagFactory() |
Modifier and Type | Method and Description |
---|---|
CMSJCRTag |
getAmetysObject(Node node,
String parentPath)
Creates a
AmetysObject from a persistent JCR node. |
TagTargetTypeExtensionPoint |
getTagProviderEP()
Get the tag target type extension point
|
void |
service(ServiceManager manager) |
createChild, getChild, getChildren, hasChild
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForId
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public static final String TAG_NODETYPE
protected TagTargetTypeExtensionPoint _targetTypeEP
public CMSTagFactory()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class SimpleAmetysObjectFactory
ServiceException
public CMSJCRTag getAmetysObject(Node node, String parentPath) throws AmetysRepositoryException
JCRAmetysObjectFactory
AmetysObject
from a persistent JCR node.getAmetysObject
in interface JCRAmetysObjectFactory<SimpleAmetysObject>
getAmetysObject
in class TagFactory
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 TagTargetTypeExtensionPoint getTagProviderEP()