Class OpenMetadataUserDetails

java.lang.Object
org.odpi.openmetadata.metadatasecurity.properties.OpenMetadataUserDetails

public class OpenMetadataUserDetails extends Object
OpenMetadataUserDetails holds details of a particular user that can be shared between security services.
  • Constructor Details

    • OpenMetadataUserDetails

      public OpenMetadataUserDetails()
      Default constructor
  • Method Details

    • getUserId

      public String getUserId()
      Return the userId that identifies the account.
      Returns:
      string identifier
    • setUserId

      public void setUserId(String userId)
      Set up the userId that identifies the account.
      Parameters:
      userId - string identifier
    • getUserName

      public String getUserName()
      Return the name of the user.
      Returns:
      string name
    • setUserName

      public void setUserName(String userName)
      Set up the name of the user.
      Parameters:
      userName - string name
    • getDistinguishedName

      public String getDistinguishedName()
      Return the distinguished name of the user.
      Returns:
      string name
    • setDistinguishedName

      public void setDistinguishedName(String distinguishedName)
      Set up the distinguished name of the user.
      Parameters:
      distinguishedName - string name
    • getSecurityRoles

      public List<String> getSecurityRoles()
      Return the list of security roles assigned to the user.
      Returns:
      list of names
    • setSecurityRoles

      public void setSecurityRoles(List<String> securityRoles)
      Set up the list of security roles assigned to the user.
      Parameters:
      securityRoles - list of names
    • getSecurityGroups

      public List<String> getSecurityGroups()
      Return the list of security roles assigned to the user.
      Returns:
      list of names
    • setSecurityGroups

      public void setSecurityGroups(List<String> securityGroups)
      Set upi the list of security groups that the user belongs to.
      Parameters:
      securityGroups - list of names
    • getOtherProperties

      public Map<String,Object> getOtherProperties()
      Return any other properties that should be shared with security providers.
      Returns:
      property map
    • setOtherProperties

      public void setOtherProperties(Map<String,Object> otherProperties)
      Set up any other properties that should be shared with security providers.
      Parameters:
      otherProperties - property map
    • 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()
      Hash of properties
      Overrides:
      hashCode in class Object
      Returns:
      int