Package org.alfresco.repo.event2
Class NodeResourceHelper
java.lang.Object
org.alfresco.repo.event2.NodeResourceHelper
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class NodeResourceHelper
extends Object
implements org.springframework.beans.factory.InitializingBean
Helper for
NodeResource objects.- Author:
- Jamal Kaabi-Mofrad
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryServiceprotected EventFilterRegistryprotected NamespaceServiceprotected NodeServiceprotected PermissionServiceprotected PersonService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.alfresco.repo.event.v1.model.NodeResource.BuildercreateNodeResourceBuilder(NodeRef nodeRef) org.alfresco.repo.event.v1.model.ContentInfogetContentInfo(Map<QName, Serializable> props) getLocalizedPropertiesBefore(Map<QName, Serializable> propsBefore, org.alfresco.repo.event.v1.model.NodeResource nodeAfter) getMappedAspects(NodeRef nodeRef) getNodeType(NodeRef nodeRef) getPrimaryHierarchy(NodeRef nodeRef, boolean showLeaf) getProperties(NodeRef nodeRef) getProperty(NodeRef nodeRef, QName qName) Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.getSecondaryParents(NodeRef nodeRef) Gathers node's secondary parents.org.alfresco.repo.event.v1.model.UserInfogetUserInfo(String userName) getZonedDateTime(Date date) mapToNodeAspects(Collection<QName> aspects) mapToNodeProperties(Map<QName, Serializable> props) booleannodeExists(NodeRef nodeRef) voidsetDictionaryService(DictionaryService dictionaryService) voidsetEventFilterRegistry(EventFilterRegistry eventFilterRegistry) voidsetNamespaceService(NamespaceService namespaceService) voidsetNodeService(NodeService nodeService) voidsetPermissionService(PermissionService permissionService) voidsetPersonService(PersonService personService)
-
Field Details
-
nodeService
-
dictionaryService
-
personService
-
eventFilterRegistry
-
namespaceService
-
permissionService
-
-
Constructor Details
-
NodeResourceHelper
public NodeResourceHelper()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setNodeService
-
setDictionaryService
-
setPersonService
-
setPermissionService
-
setEventFilterRegistry
-
setNamespaceService
-
createNodeResourceBuilder
public org.alfresco.repo.event.v1.model.NodeResource.Builder createNodeResourceBuilder(NodeRef nodeRef) -
nodeExists
-
mapToNodeProperties
-
mapToNodeLocalizedProperties
-
getContentInfo
-
getUserInfo
-
getZonedDateTime
-
getQNamePrefixString
Returns the QName in the format prefix:local, but in the exceptional case where there is no registered prefix returns it in the form {uri}local.- Parameters:
k- QName- Returns:
- a String representing the QName in the format prefix:local or {uri}local.
-
mapToNodeAspects
-
getNodeType
-
getProperty
-
getProperties
-
getLocalizedPropertiesBefore
-
getMappedAspects
-
getPrimaryHierarchy
-
getSecondaryParents
Gathers node's secondary parents.- Parameters:
nodeRef- - node reference- Returns:
- a list of node's secondary parents.
-
getPermissionService
-