java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractRole

public class DataContractRole extends Object
This class represents an access (IAM) role that provides access to the data described by an Open Data Contract Standard (ODCS) data contract. Roles may be defined for the contract as a whole or for an individual server.
  • Constructor Details

    • DataContractRole

      public DataContractRole()
      Default constructor
  • Method Details

    • getId

      public String getId()
      Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
      Returns:
      string identifier
    • setId

      public void setId(String id)
      Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).
      Parameters:
      id - string identifier
    • getRole

      public String getRole()
      Return the name of the IAM role that provides access to the data.
      Returns:
      string role name
    • setRole

      public void setRole(String role)
      Set up the name of the IAM role that provides access to the data.
      Parameters:
      role - string role name
    • getDescription

      public String getDescription()
      Return the description of the role and its permissions.
      Returns:
      string description
    • setDescription

      public void setDescription(String description)
      Set up the description of the role and its permissions.
      Parameters:
      description - string description
    • getAccess

      public String getAccess()
      Return the type of access provided by the role, for example read or write.
      Returns:
      string access type
    • setAccess

      public void setAccess(String access)
      Set up the type of access provided by the role, for example read or write.
      Parameters:
      access - string access type
    • getFirstLevelApprovers

      public String getFirstLevelApprovers()
      Return the name(s) of the first-level approver(s) of requests for the role.
      Returns:
      string names
    • setFirstLevelApprovers

      public void setFirstLevelApprovers(String firstLevelApprovers)
      Set up the name(s) of the first-level approver(s) of requests for the role.
      Parameters:
      firstLevelApprovers - string names
    • getSecondLevelApprovers

      public String getSecondLevelApprovers()
      Return the name(s) of the second-level approver(s) of requests for the role.
      Returns:
      string names
    • setSecondLevelApprovers

      public void setSecondLevelApprovers(String secondLevelApprovers)
      Set up the name(s) of the second-level approver(s) of requests for the role.
      Parameters:
      secondLevelApprovers - string names
    • getCustomProperties

      public List<BitolCustomProperty> getCustomProperties()
      Return the list of custom (key/value) properties attached to this element.
      Returns:
      list of custom properties
    • setCustomProperties

      public void setCustomProperties(List<BitolCustomProperty> customProperties)
      Set up the list of custom (key/value) properties attached to this element.
      Parameters:
      customProperties - list of custom properties
    • 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()
      Return hash code based on properties.
      Overrides:
      hashCode in class Object
      Returns:
      int