Class Node

    • Constructor Detail

      • Node

        public Node()
    • Method Detail

      • getNodeType

        public NodeType getNodeType()
        Node type
        Returns:
        the type of the node
      • setNodeType

        public void setNodeType​(NodeType nodeType)
      • getName

        public String getName()
        The name of the node
        Returns:
        name
      • setName

        public void setName​(String name)
      • getTypeName

        public String getTypeName()
        The name of the type of the node
        Returns:
        name
      • setTypeName

        public void setTypeName​(String typeName)
      • getQualifiedName

        public String getQualifiedName()
        The qualified name of the node.
        Returns:
        qualified name
      • setQualifiedName

        public void setQualifiedName​(String qualifiedName)
      • setSystemAttributes

        public void setSystemAttributes​(SystemAttributes systemAttributes)
      • getDescription

        public String getDescription()
        Description of the node
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • isReadOnly

        public boolean isReadOnly()
        The Node is readOnly
        Returns:
        whether read only
      • setReadOnly

        public void setReadOnly​(boolean readOnly)
        set whether the node is readOnly
        Parameters:
        readOnly - readonly flag
      • getClassifications

        public List<Classification> getClassifications()
        List of associated classifications
        Returns:
        List<Classification>
      • setClassifications

        public void setClassifications​(List<Classification> classifications)
        If governance action classifications (Retention, Confidence, Confidentiality or Criticality) are supplied then remove them from the classifications and add to the appropriate named field. e.g. Retention will be set in the retention field.
        Parameters:
        classifications - list of classifications to set on the Node.
      • getIcons

        public Set<IconSummary> getIcons()
        icon summary
        Returns:
        icon
      • getEffectiveFromTime

        public Long getEffectiveFromTime()
        Return the date/time that this node should start to be used (null means it can be used from creationTime).
        Returns:
        Date the node becomes effective.
      • setEffectiveFromTime

        public void setEffectiveFromTime​(Long effectiveFromTime)
      • getEffectiveToTime

        public Long getEffectiveToTime()
        Return the date/time that this node should no longer be used.
        Returns:
        Date the node stops being effective.
      • setEffectiveToTime

        public void setEffectiveToTime​(Long effectiveToTime)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • processClassification

        protected void processClassification​(Classification classification)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​String> additionalProperties)
        Set the additional properties. The additional properties are OMRS attributes that exist in the Node These additional properties should be supplied on calls for this node - or they will be lost.
        Parameters:
        additionalProperties - the additional properties
      • getAdditionalProperties

        public Map<String,​String> getAdditionalProperties()
        Get the additional properties The additional properties are OMRS attributes that exist in the Node. These additional properties should be supplied on calls for this node - or they will be lost.
        Returns:
        the additional properties
      • getExtendedProperties

        public Map<String,​Object> getExtendedProperties()
        Get the extended properties. The extended properties. are OMRS attributes that exist in the Node. Extended properties should be supplied on calls for this node - or they will be lost.
        Returns:
        the extended properties
      • setExtendedProperties

        public void setExtendedProperties​(Map<String,​Object> extendedProperties)
        Set the extended properties. The extended properties are OMRS attributes that come from subtypes These extended properties should be supplied on calls for this node - or they will be lost.
        Parameters:
        extendedProperties - extended properties