Class Identity

java.lang.Object
com.appiancorp.suiteapi.common.Identity
All Implemented Interfaces:
LocalId, Serializable
Direct Known Subclasses:
ActivityClass, ActivityClassSchema, Content, MessageType, Palette, Palette.Descriptor, PaletteCategory, PaletteCategory.AllCategories, PaletteCategory.Descriptor, PaletteErrorItem, PaletteItem, PortalGroup.Page, Priority, ProcessModelFolder, ProcessModelProperties, ProcessProperties, RoleSet, TaskProperties

public class Identity extends Object implements Serializable, LocalId
This bean is used to represent an object with a String name, Long Id, and String UUID.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor that constructs an empty Identity object.
    Identity(Long id_, String name_)
    Constructor that constructs an Identity object with given name and Id.
    Identity(Long id_, String uuid_, String name_)
    Constructor that constructs an Identity object with given name, UUID, and Id
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether the Identity been passed is equal to this Identity.
    Returns the Id of the object.
    Returns the name of the object.
    Returns the UUID of the object.
    int
    Returns a hash code value for the object.
    void
    setId(Long id_)
    Sets the Id of the object.
    void
    setName(String name_)
    Sets the name of the object.
    void
    setUuid(String uuid_)
    Sets the UUID of the object.
    Returns a string representation of the Identity.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Identity

      public Identity()
      Constructor that constructs an empty Identity object.
    • Identity

      public Identity(Long id_, String name_)
      Constructor that constructs an Identity object with given name and Id.
      Parameters:
      id_ - Id of the object
      name_ - Name of the object
    • Identity

      public Identity(Long id_, String uuid_, String name_)
      Constructor that constructs an Identity object with given name, UUID, and Id
      Parameters:
      id_ - Id of the object
      uuid_ - UUID of the object
      name_ - Name of the object
  • Method Details

    • getId

      public Long getId()
      Returns the Id of the object.
      Specified by:
      getId in interface LocalId
      Returns:
      Id of object
      See Also:
    • setId

      public void setId(Long id_)
      Sets the Id of the object.
      Specified by:
      setId in interface LocalId
      Parameters:
      id_ - Id to set
      See Also:
    • getUuid

      public String getUuid()
      Returns the UUID of the object.
      Returns:
      UUID of object
      See Also:
    • setUuid

      public void setUuid(String uuid_)
      Sets the UUID of the object.
      Parameters:
      uuid_ - UUID to set
      See Also:
    • getName

      public String getName()
      Returns the name of the object.
      Returns:
      name
      See Also:
    • setName

      public void setName(String name_)
      Sets the name of the object.
      Parameters:
      name_ - name to set
      See Also:
    • toString

      public String toString()
      Returns a string representation of the Identity. In general, the toString method returns a string that "textually represents" this object.
      Overrides:
      toString in class Object
      Returns:
      String representation of the object
    • equals

      public boolean equals(Object o_)
      Returns whether the Identity been passed is equal to this Identity.
      Overrides:
      equals in class Object
      Parameters:
      o_ - the reference object with which to compare.
      Returns:
      true if both objects are equal, otherwise false
    • hashCode

      public int hashCode()
      Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by Hashtable.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object