Class DataContractRole
java.lang.Object
org.odpi.openmetadata.frameworks.integration.bitol.odcs.DataContractRole
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return the type of access provided by the role, for example read or write.Return the list of custom (key/value) properties attached to this element.Return the description of the role and its permissions.Return the name(s) of the first-level approver(s) of requests for the role.getId()Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).getRole()Return the name of the IAM role that provides access to the data.Return the name(s) of the second-level approver(s) of requests for the role.inthashCode()Return hash code based on properties.voidSet up the type of access provided by the role, for example read or write.voidsetCustomProperties(List<BitolCustomProperty> customProperties) Set up the list of custom (key/value) properties attached to this element.voidsetDescription(String description) Set up the description of the role and its permissions.voidsetFirstLevelApprovers(String firstLevelApprovers) Set up the name(s) of the first-level approver(s) of requests for the role.voidSet up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).voidSet up the name of the IAM role that provides access to the data.voidsetSecondLevelApprovers(String secondLevelApprovers) Set up the name(s) of the second-level approver(s) of requests for the role.toString()Standard toString method.
-
Constructor Details
-
DataContractRole
public DataContractRole()Default constructor
-
-
Method Details
-
getId
Return the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Returns:
- string identifier
-
setId
Set up the stable identifier of this element (alphanumeric, hyphen and underscore characters only).- Parameters:
id- string identifier
-
getRole
Return the name of the IAM role that provides access to the data.- Returns:
- string role name
-
setRole
Set up the name of the IAM role that provides access to the data.- Parameters:
role- string role name
-
getDescription
Return the description of the role and its permissions.- Returns:
- string description
-
setDescription
Set up the description of the role and its permissions.- Parameters:
description- string description
-
getAccess
Return the type of access provided by the role, for example read or write.- Returns:
- string access type
-
setAccess
Set up the type of access provided by the role, for example read or write.- Parameters:
access- string access type
-
getFirstLevelApprovers
Return the name(s) of the first-level approver(s) of requests for the role.- Returns:
- string names
-
setFirstLevelApprovers
Set up the name(s) of the first-level approver(s) of requests for the role.- Parameters:
firstLevelApprovers- string names
-
getSecondLevelApprovers
Return the name(s) of the second-level approver(s) of requests for the role.- Returns:
- string names
-
setSecondLevelApprovers
Set up the name(s) of the second-level approver(s) of requests for the role.- Parameters:
secondLevelApprovers- string names
-
getCustomProperties
Return the list of custom (key/value) properties attached to this element.- Returns:
- list of custom properties
-
setCustomProperties
Set up the list of custom (key/value) properties attached to this element.- Parameters:
customProperties- list of custom properties
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Return hash code based on properties.
-