Class DefaultLinkFactory
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
org.ametys.plugins.linkdirectory.repository.DefaultLinkFactory
- All Implemented Interfaces:
AmetysObjectFactory<SimpleAmetysObject>,JCRAmetysObjectFactory<SimpleAmetysObject>,Component,Configurable,LogEnabled,Serviceable
Factory which creates
Link objects, which represent a link entry in the directory.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe link node type.static final StringThe link container node type.Fields inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
_ametysFactoryExtensionPoint, _manager, _nodetype, _repository, _resolver, _scheme -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAmetysObject(javax.jcr.Node node, String parentPath) Creates aAmetysObjectfrom a persistent JCR node.Returns the extension point holding allRepositoryElementTypeclasses for links.voidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.repository.jcr.DefaultTraversableAmetysObjectFactory
createChild, getChild, getChildren, hasChildMethods inherited from class org.ametys.plugins.repository.jcr.SimpleAmetysObjectFactory
configure, getAmetysObjectById, getAmetysObjectById, getNode, getNodetypes, getParent, getScheme, getWorkspaceNode, hasAmetysObjectForIdMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
LINK_ROOT_NODE_TYPE
The link container node type.- See Also:
-
LINK_NODE_TYPE
The link node type.- See Also:
-
-
Constructor Details
-
DefaultLinkFactory
public DefaultLinkFactory()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classSimpleAmetysObjectFactory- Throws:
ServiceException
-
getAmetysObject
public DefaultLink getAmetysObject(javax.jcr.Node node, String parentPath) throws AmetysRepositoryException Description copied from interface:JCRAmetysObjectFactoryCreates aAmetysObjectfrom a persistent JCR node.- Specified by:
getAmetysObjectin interfaceJCRAmetysObjectFactory<SimpleAmetysObject>- Overrides:
getAmetysObjectin classDefaultTraversableAmetysObjectFactory- Parameters:
node- the JCR node to use.parentPath- the parent Path in the Ametys hierarchy, may benullif not known yet.- Returns:
- the object.
- Throws:
AmetysRepositoryException- if an error occurs.
-
getLinkDataTypeExtensionPoint
Returns the extension point holding allRepositoryElementTypeclasses for links.- Returns:
- the extension point holding all
RepositoryElementTypeclasses for links.
-