java.lang.Object
org.odpi.openmetadata.accessservices.communityprofile.metadataelements.ProfileIdentityElement

public class ProfileIdentityElement extends Object
ProfileIdentityElement contains the properties and header for a relationship between a profile and a user identity retrieved from the metadata repository.
  • Constructor Details

    • ProfileIdentityElement

      public ProfileIdentityElement()
      Default constructor
    • ProfileIdentityElement

      public ProfileIdentityElement(ProfileIdentityElement template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getProfileIdentity

      public ProfileIdentityProperties getProfileIdentity()
      Return the properties from the profile identity relationship.
      Returns:
      profile identity
    • setProfileIdentity

      public void setProfileIdentity(ProfileIdentityProperties profileIdentity)
      Set up the properties from the profile identity relationship.
      Parameters:
      profileIdentity - profile identity
    • getUserIdentity

      public UserIdentityElement getUserIdentity()
      Return the properties of the userId.
      Returns:
      properties
    • setUserIdentity

      public void setUserIdentity(UserIdentityElement userIdentity)
      Set up the userId properties.
      Parameters:
      userIdentity - properties
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class Object
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class Object
      Returns:
      int hash code