Class ElementVersions

  • All Implemented Interfaces:
    Serializable

    public class ElementVersions
    extends Object
    implements Serializable
    ElementVersions provides the version information for the element plus details of the creation time and last update time. Finally it lists all the users that have made changes to this element.
    See Also:
    Serialized Form
    • Constructor Detail

      • ElementVersions

        public ElementVersions()
        Default constructor used by subclasses
      • ElementVersions

        public ElementVersions​(ElementVersions template)
        Copy/clone constructor.
        Parameters:
        template - element to copy
    • Method Detail

      • getCreatedBy

        public String getCreatedBy()
        Return the name of the user that created this instance.
        Returns:
        String user name
      • setCreatedBy

        public void setCreatedBy​(String createdBy)
        Set up the name of the user that created this instance.
        Parameters:
        createdBy - String user name
      • getUpdatedBy

        public String getUpdatedBy()
        Return the name of the user that last updated this instance.
        Returns:
        String user name
      • setUpdatedBy

        public void setUpdatedBy​(String updatedBy)
        Set up the name of the user that last updated this instance.
        Parameters:
        updatedBy - String user name
      • getMaintainedBy

        public List<String> getMaintainedBy()
        Return the list of users responsible for maintaining this instance.
        Returns:
        list of user identifiers
      • setMaintainedBy

        public void setMaintainedBy​(List<String> maintainedBy)
        Set up the list of users responsible for maintaining this instance.
        Parameters:
        maintainedBy - list of user identifiers
      • getCreateTime

        public Date getCreateTime()
        Return the date/time that this instance was created.
        Returns:
        Date/Time of creation
      • setCreateTime

        public void setCreateTime​(Date createTime)
        Set up the time that this instance was created.
        Parameters:
        createTime - Date/Time of creation
      • getUpdateTime

        public Date getUpdateTime()
        Return what was the late time this instance was updated.
        Returns:
        Date/Time last updated
      • setUpdateTime

        public void setUpdateTime​(Date updateTime)
        Set up the last update time for this instance.
        Parameters:
        updateTime - Date/Time last updated
      • getVersion

        public long getVersion()
        Return the version number for this instance.
        Returns:
        Long version number
      • setVersion

        public void setVersion​(long version)
        Set up the version number for this instance.
        Parameters:
        version - Long version number
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Object
        Returns:
        int hash code