Class 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
    • Constructor Detail

      • NodeResourceHelper

        public NodeResourceHelper()
    • Method Detail

      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception
      • setNodeService

        public void setNodeService​(NodeService nodeService)
      • setDictionaryService

        public void setDictionaryService​(DictionaryService dictionaryService)
      • setPersonService

        public void setPersonService​(PersonService personService)
      • setEventFilterRegistry

        public void setEventFilterRegistry​(EventFilterRegistry eventFilterRegistry)
      • setNamespaceService

        public void setNamespaceService​(NamespaceService namespaceService)
      • createNodeResourceBuilder

        public org.alfresco.repo.event.v1.model.NodeResource.Builder createNodeResourceBuilder​(NodeRef nodeRef)
      • nodeExists

        public boolean nodeExists​(NodeRef nodeRef)
      • getContentInfo

        public org.alfresco.repo.event.v1.model.ContentInfo getContentInfo​(Map<QName,​Serializable> props)
      • getUserInfo

        public org.alfresco.repo.event.v1.model.UserInfo getUserInfo​(String userName)
      • getQNamePrefixString

        public String getQNamePrefixString​(QName k)
        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.
      • getNodeType

        public QName getNodeType​(NodeRef nodeRef)
      • getPrimaryHierarchy

        public List<String> getPrimaryHierarchy​(NodeRef nodeRef,
                                                boolean showLeaf)