Class Node

java.lang.Object
org.alfresco.rest.api.model.Node
All Implemented Interfaces:
Comparable<Node>
Direct Known Subclasses:
Document, Folder

public class Node extends Object implements Comparable<Node>
Concrete class carrying general information for alf_node data
Author:
steveglover, Gethin James, janv
  • Field Details

    • nodeRef

      protected NodeRef nodeRef
    • name

      protected String name
    • createdAt

      protected Date createdAt
    • modifiedAt

      protected Date modifiedAt
    • createdByUser

      protected UserInfo createdByUser
    • modifiedByUser

      protected UserInfo modifiedByUser
    • archivedAt

      protected Date archivedAt
    • archivedByUser

      protected UserInfo archivedByUser
    • versionLabel

      protected String versionLabel
    • versionComment

      protected String versionComment
    • nodeId

      protected String nodeId
    • isFolder

      protected Boolean isFolder
    • isFile

      protected Boolean isFile
    • isLocked

      protected Boolean isLocked
    • parentNodeRef

      protected NodeRef parentNodeRef
    • pathInfo

      protected PathInfo pathInfo
    • prefixTypeQName

      protected String prefixTypeQName
    • relativePath

      protected String relativePath
    • secondaryChildren

      protected List<AssocChild> secondaryChildren
    • targets

      protected List<AssocTarget> targets
    • aspectNames

      protected List<String> aspectNames
    • properties

      protected Map<String,Object> properties
    • allowableOperations

      protected List<String> allowableOperations
    • nodePermissions

      protected NodePermissions nodePermissions
    • definition

      protected ClassDefinition definition
    • location

      protected String location
    • isFavorite

      protected Boolean isFavorite
    • contentInfo

      protected ContentInfo contentInfo
    • association

      protected Assoc association
    • title

      protected String title
    • guid

      protected NodeRef guid
    • description

      protected String description
    • createdBy

      protected String createdBy
    • modifiedBy

      protected String modifiedBy
  • Constructor Details

  • Method Details

    • getValue

      protected Object getValue(Map<String,org.apache.chemistry.opencmis.commons.data.PropertyData<?>> props, String name)
    • mapMinimalInfo

      protected void mapMinimalInfo(Map<org.alfresco.service.namespace.QName,Serializable> nodeProps, Map<String,UserInfo> mapUserInfo, ServiceRegistry sr)
    • lookupUserInfo

      public static UserInfo lookupUserInfo(String userName, Map<String,UserInfo> mapUserInfo, PersonService personService)
    • lookupUserInfo

      public static UserInfo lookupUserInfo(String userName, Map<String,UserInfo> mapUserInfo, PersonService personService, boolean displayNameOnly)
    • getNodeRef

      @UniqueId public NodeRef getNodeRef()
    • setNodeRef

      public void setNodeRef(NodeRef nodeRef)
    • getCreatedAt

      public Date getCreatedAt()
    • setCreated

      public void setCreated(Date createdAt)
    • getModifiedAt

      public Date getModifiedAt()
    • getModifiedByUser

      public UserInfo getModifiedByUser()
    • getCreatedByUser

      public UserInfo getCreatedByUser()
    • setCreatedByUser

      public void setCreatedByUser(UserInfo createdByUser)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getPath

      public PathInfo getPath()
    • setPath

      public void setPath(PathInfo pathInfo)
    • getNodeType

      public String getNodeType()
    • setNodeType

      public void setNodeType(String prefixType)
    • getProperties

      public Map<String,Object> getProperties()
    • setProperties

      public void setProperties(Map<String,Object> props)
    • getAspectNames

      public List<String> getAspectNames()
    • setAspectNames

      public void setAspectNames(List<String> aspectNames)
    • getParentId

      public NodeRef getParentId()
    • setParentId

      public void setParentId(NodeRef parentNodeRef)
    • getIsFolder

      public Boolean getIsFolder()
    • setIsFolder

      public void setIsFolder(Boolean isFolder)
    • getIsFile

      public Boolean getIsFile()
    • setIsFile

      public void setIsFile(Boolean isFile)
    • getIsLink

      public Boolean getIsLink()
    • setIsLink

      public void setIsLink(Boolean isLink)
    • getIsLocked

      public Boolean getIsLocked()
    • setIsLocked

      public void setIsLocked(Boolean isLocked)
    • getIsFavorite

      public Boolean getIsFavorite()
    • setIsFavorite

      public void setIsFavorite(Boolean isFavorite)
    • getAllowableOperations

      public List<String> getAllowableOperations()
    • setAllowableOperations

      public void setAllowableOperations(List<String> allowableOperations)
    • getPermissions

      public NodePermissions getPermissions()
    • setPermissions

      public void setPermissions(NodePermissions nodePermissions)
    • getTargets

      public List<AssocTarget> getTargets()
    • setTargets

      public void setTargets(List<AssocTarget> targets)
    • getArchivedAt

      public Date getArchivedAt()
    • setArchivedAt

      public void setArchivedAt(Date archivedAt)
    • getArchivedByUser

      public UserInfo getArchivedByUser()
    • setArchivedByUser

      public void setArchivedByUser(UserInfo archivedByUser)
    • getVersionLabel

      public String getVersionLabel()
    • setVersionLabel

      public void setVersionLabel(String versionLabel)
    • getVersionComment

      public String getVersionComment()
    • setVersionComment

      public void setVersionComment(String versionComment)
    • getLocation

      public String getLocation()
    • setLocation

      public void setLocation(String location)
    • getNodeId

      public String getNodeId()
    • setNodeId

      public void setNodeId(String nodeId)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getRelativePath

      public String getRelativePath()
    • setRelativePath

      public void setRelativePath(String relativePath)
    • getSecondaryChildren

      public List<AssocChild> getSecondaryChildren()
    • setSecondaryChildren

      public void setSecondaryChildren(List<AssocChild> secondaryChildren)
    • getDefinition

      public ClassDefinition getDefinition()
    • setDefinition

      public void setDefinition(ClassDefinition definition)
    • compareTo

      public int compareTo(Node node)
      Specified by:
      compareTo in interface Comparable<Node>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setContent

      public void setContent(ContentInfo contentInfo)
    • getContent

      public ContentInfo getContent()
    • getAssociation

      public Assoc getAssociation()
    • setAssociation

      public void setAssociation(Assoc association)
    • getSearch

      public SearchEntry getSearch()
    • setSearch

      public void setSearch(SearchEntry search)
    • getGuid

      public NodeRef getGuid()
      Deprecated.
    • setGuid

      public void setGuid(NodeRef guid)
      Deprecated.
    • getTitle

      public String getTitle()
      Deprecated.
    • setTitle

      public void setTitle(String title)
      Deprecated.
    • getDescription

      public String getDescription()
      Deprecated.
    • setDescription

      public void setDescription(String description)
      Deprecated.
    • getCreatedBy

      public String getCreatedBy()
      Deprecated.
    • setCreatedBy

      public void setCreatedBy(String createdBy)
      Deprecated.
    • getModifiedBy

      public String getModifiedBy()
      Deprecated.
    • setModifiedBy

      public void setModifiedBy(String modifiedBy)
      Deprecated.