Class GovernanceClassificationLevelManager

java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceClassificationLevelManager
All Implemented Interfaces:
org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface, org.odpi.openmetadata.accessservices.governanceprogram.api.RelatedElementsManagementInterface

public class GovernanceClassificationLevelManager extends GovernanceProgramBaseClient implements org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
GovernanceClassificationLevelManager is the Java client used to manage the definitions of the level values used in governance classifications.
  • Constructor Details

    • GovernanceClassificationLevelManager

      public GovernanceClassificationLevelManager(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • GovernanceClassificationLevelManager

      public GovernanceClassificationLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • GovernanceClassificationLevelManager

      public GovernanceClassificationLevelManager(String serverName, String serverPlatformURLRoot, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client with no authentication embedded in the HTTP request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      maxPageSize - pre-initialized parameter limit
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • GovernanceClassificationLevelManager

      public GovernanceClassificationLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      userId - caller's userId embedded in all HTTP requests
      password - caller's userId embedded in all HTTP requests
      maxPageSize - pre-initialized parameter limit
      auditLog - logging destination
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - there is a problem creating the client-side components to issue any REST API calls.
    • GovernanceClassificationLevelManager

      public GovernanceClassificationLevelManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      Create a new client that uses the supplied rest client. This is typically used when called from another OMAG Server.
      Parameters:
      serverName - name of the server to connect to
      serverPlatformURLRoot - the network address of the server running the OMAS REST services
      restClient - internal client for rest calls
      maxPageSize - pre-initialized parameter limit
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad input parameters
  • Method Details

    • createStandardGovernanceClassificationLevels

      public String createStandardGovernanceClassificationLevels(String userId, String classificationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create a governance level identifier set for a specific governance classification:
      • Impact - classification used to document the impact of an issue or situation.
      • Criticality - classification used to document how critical an asset or activity is.
      • Retention - classification used to identify the basis that an asset should be retained.
      • Confidence - classification use to document an assessment of the quality of an asset or element with an asset.
      • Confidentiality - classification use to define how much access to an asset should be restricted.
      Specified by:
      createStandardGovernanceClassificationLevels in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      classificationName - name of the classification level to set up
      Returns:
      unique identifier of the governance level identifier set
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
    • createGovernanceLevelIdentifierSet

      public String createGovernanceLevelIdentifierSet(String userId, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceLevelIdentifierSetProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create a new metadata element to represent the root of a Governance Level Classification Identifier Set.
      Specified by:
      createGovernanceLevelIdentifierSet in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      properties - properties to store
      Returns:
      unique identifier of the new metadata element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • updateGovernanceLevelIdentifierSet

      public void updateGovernanceLevelIdentifierSet(String userId, String setGUID, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceLevelIdentifierSetProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update the metadata element representing a Governance Classification Level Identifier Set.
      Specified by:
      updateGovernanceLevelIdentifierSet in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      setGUID - unique identifier of the metadata element to remove
      properties - new properties for this element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • removeGovernanceLevelIdentifierSet

      public void removeGovernanceLevelIdentifierSet(String userId, String setGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Remove the metadata element representing a Governance Classification Level Identifier Set and all linked level identifiers.
      Specified by:
      removeGovernanceLevelIdentifierSet in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      setGUID - unique identifier of the metadata element to remove
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • getGovernanceLevelIdentifierSets

      public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceLevelIdentifierSetElement> getGovernanceLevelIdentifierSets(String userId) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the list of defined Governance Classification Level Identifier Sets.
      Specified by:
      getGovernanceLevelIdentifierSets in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • getGovernanceLevelIdentifierSet

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceLevelIdentifierSetElement getGovernanceLevelIdentifierSet(String userId, String classificationName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the Governance Level Identifier Set for a requested governance classification.
      Specified by:
      getGovernanceLevelIdentifierSet in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      classificationName - classificationName to search for
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • getGovernanceLevelIdentifierSetByGUID

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceLevelIdentifierSetElement getGovernanceLevelIdentifierSetByGUID(String userId, String setGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the Governance Level Identifier Set metadata element with the supplied unique identifier.
      Specified by:
      getGovernanceLevelIdentifierSetByGUID in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      setGUID - unique identifier of the requested metadata element
      Returns:
      matching metadata element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • createGovernanceLevelIdentifier

      public String createGovernanceLevelIdentifier(String userId, String setGUID, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceLevelIdentifierProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Create a new metadata element to represent a governance classification level identifier.
      Specified by:
      createGovernanceLevelIdentifier in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      setGUID - unique identifier of the set that this identifier belongs
      properties - properties about the GovernanceClassificationLevelIdentifier to store
      Returns:
      unique identifier of the new GovernanceClassifierLevelIdentifier
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • updateGovernanceLevelIdentifier

      public void updateGovernanceLevelIdentifier(String userId, String identifierGUID, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceLevelIdentifierProperties properties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Update the metadata element representing a governance classification level identifier.
      Specified by:
      updateGovernanceLevelIdentifier in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      identifierGUID - unique identifier of the metadata element to update
      properties - new properties for the metadata element
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • removeGovernanceLevelIdentifier

      public void removeGovernanceLevelIdentifier(String userId, String identifierGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Remove the metadata element representing a governance classification level identifier.
      Specified by:
      removeGovernanceLevelIdentifier in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      identifierGUID - unique identifier of the metadata element to remove
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)
    • getGovernanceLevelIdentifier

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceLevelIdentifierElement getGovernanceLevelIdentifier(String userId, String classificationName, int levelIdentifier) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Retrieve the governance classification level identifier metadata element for the requested level within a specific governance classification.
      Specified by:
      getGovernanceLevelIdentifier in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceClassificationLevelInterface
      Parameters:
      userId - calling user
      classificationName - string to find in the properties
      levelIdentifier - level value to retrieve
      Returns:
      list of matching metadata elements
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the parameters is invalid
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - the user is not authorized to issue this request
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - there is a problem reported in the open metadata server(s)