Class Identity

All Implemented Interfaces:
VerifiableElement, NamedObject

public class Identity extends IdentityParam implements NamedObject
Represents an identity with full information as returned from the engine.
Author:
K. Benedyczak
  • Constructor Details

    • Identity

      public Identity(String type, String value, long entityId, String comparableValue)
    • Identity

      public Identity(IdentityParam idParam, long entityId, String comparableValue)
      Allows for creating Identity out of IdentityParam.
      Parameters:
      idParam -
      entityId -
      comparableValue -
    • Identity

      public Identity(com.fasterxml.jackson.databind.node.ObjectNode src)
    • Identity

      public Identity(String type, long entityId, com.fasterxml.jackson.databind.node.ObjectNode src)
      Partial creation from JSON (used by RDBMS storage)
      Parameters:
      type -
      entityId -
      comparableValue -
      src -
  • Method Details

    • getEntityId

      public long getEntityId()
    • setEntityId

      public void setEntityId(long entityId)
    • getCreationTs

      public Date getCreationTs()
    • setCreationTs

      public void setCreationTs(Date creationTs)
    • getUpdateTs

      public Date getUpdateTs()
    • setUpdateTs

      public void setUpdateTs(Date updateTs)
    • getComparableValue

      public String getComparableValue()
    • setComparableValue

      public void setComparableValue(String comparableValue)
    • getName

      public String getName()
      Specified by:
      getName in interface NamedObject
      Returns:
      human readable name of the object. Must be unique for the object class.
    • clone

      public Identity clone()
      Overrides:
      clone in class Object
    • toJson

      public com.fasterxml.jackson.databind.node.ObjectNode toJson()
      Overrides:
      toJson in class IdentityParam
    • toJsonBase

      public com.fasterxml.jackson.databind.node.ObjectNode toJsonBase()
      Overrides:
      toJsonBase in class IdentityParam
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class IdentityParam
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class IdentityParam