Class GovernanceDomainRESTServices

java.lang.Object
org.odpi.openmetadata.accessservices.governanceprogram.server.GovernanceDomainRESTServices

public class GovernanceDomainRESTServices extends Object
GovernanceDomainRESTServices sets up the governance domains that are part of an organization governance. Each governance domain describes a focus for governance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    addDomainToSet(String serverName, String userId, String governanceDomainSetGUID, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.RelationshipRequestBody requestBody)
    Create a parent-child relationship between a governance domain set and a governance domain.
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    createGovernanceDomain(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
    Create a new metadata element to represent a governance domain.
    org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse
    createGovernanceDomainSet(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
    Create a new metadata element to represent the root of a Governance Domain Set.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    deleteGovernanceDomain(String serverName, String userId, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
    Remove the metadata element representing a Governance Domain.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse
    findGovernanceDomains(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
    Retrieve the list of Governance Domain metadata elements that contain the search string.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse
    findGovernanceDomainSets(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
    Retrieve the list of governanceDomainSet metadata elements that contain the search string.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainResponse
    getGovernanceDomainByGUID(String serverName, String userId, String governanceDomainGUID)
    Retrieve the Governance Domain metadata element with the supplied unique identifier assigned when the domain description was stored in the metadata repository.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainResponse
    getGovernanceDomainByIdentifier(String serverName, String userId, int domainIdentifier)
    Retrieve the Governance Domain metadata element with the supplied domain identifier.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse
    getGovernanceDomains(String serverName, String userId, int startFrom, int pageSize)
    Retrieve the list of Governance Domain metadata elements defined for the governance program.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse
    getGovernanceDomainsByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
    Retrieve the list of Governance Domain metadata elements with a matching qualified or display name.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetResponse
    getGovernanceDomainSetByGUID(String serverName, String userId, String governanceDomainSetGUID)
    Retrieve the governanceDomainSet metadata element with the supplied unique identifier.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse
    getGovernanceDomainSetsByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
    Retrieve the list of governanceDomainSet metadata elements with a matching qualified or display name.
    org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse
    getSetsForGovernanceDomain(String serverName, String userId, String governanceDomainGUID, int startFrom, int pageSize)
    Return the list of governance domain sets that a governance domain belong.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeDomainFromSet(String serverName, String userId, String governanceDomainSetGUID, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
    Remove a parent-child relationship between a governance domain set and a governance domain.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    removeGovernanceDomainSet(String serverName, String userId, String governanceDomainSetGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
    Remove the metadata element representing a governanceDomainSet.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateGovernanceDomain(String serverName, String userId, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
    Update the metadata element representing a Governance Domain.
    org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse
    updateGovernanceDomainSet(String serverName, String userId, String governanceDomainSetGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
    Update the metadata element representing a Governance Domain Set.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GovernanceDomainRESTServices

      public GovernanceDomainRESTServices()
      Default constructor
  • Method Details

    • createGovernanceDomainSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createGovernanceDomainSet(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
      Create a new metadata element to represent the root of a Governance Domain Set.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      requestBody - properties to store
      Returns:
      unique identifier of the new metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • updateGovernanceDomainSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateGovernanceDomainSet(String serverName, String userId, String governanceDomainSetGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
      Update the metadata element representing a Governance Domain Set.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainSetGUID - unique identifier of the metadata element to remove
      requestBody - new properties for this element
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • removeGovernanceDomainSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeGovernanceDomainSet(String serverName, String userId, String governanceDomainSetGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
      Remove the metadata element representing a governanceDomainSet. The governance domains are not deleted.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainSetGUID - unique identifier of the metadata element to remove
      requestBody - external source request body
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • findGovernanceDomainSets

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse findGovernanceDomainSets(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
      Retrieve the list of governanceDomainSet metadata elements that contain the search string. The search string is treated as a regular expression.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      requestBody - string to find in the properties
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomainSetsByName

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse getGovernanceDomainSetsByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
      Retrieve the list of governanceDomainSet metadata elements with a matching qualified or display name. There are no wildcards supported on this request.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - name to search for
      Returns:
      list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomainSetByGUID

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetResponse getGovernanceDomainSetByGUID(String serverName, String userId, String governanceDomainSetGUID)
      Retrieve the governanceDomainSet metadata element with the supplied unique identifier.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainSetGUID - unique identifier of the requested metadata element
      Returns:
      matching metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • createGovernanceDomain

      public org.odpi.openmetadata.commonservices.ffdc.rest.GUIDResponse createGovernanceDomain(String serverName, String userId, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
      Create a new metadata element to represent a governance domain.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      requestBody - new properties for this element
      Returns:
      unique identifier of the new Governance Domain or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • updateGovernanceDomain

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse updateGovernanceDomain(String serverName, String userId, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ReferenceableRequestBody requestBody)
      Update the metadata element representing a Governance Domain.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainGUID - unique identifier of the metadata element to update
      requestBody - new properties for the metadata element
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • deleteGovernanceDomain

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse deleteGovernanceDomain(String serverName, String userId, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
      Remove the metadata element representing a Governance Domain.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainGUID - unique identifier of the metadata element to remove
      requestBody - external source request body
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • addDomainToSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse addDomainToSet(String serverName, String userId, String governanceDomainSetGUID, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.RelationshipRequestBody requestBody)
      Create a parent-child relationship between a governance domain set and a governance domain.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainSetGUID - unique identifier of the governance domain set
      governanceDomainGUID - unique identifier of the governance domain
      requestBody - relationship request body
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • removeDomainFromSet

      public org.odpi.openmetadata.commonservices.ffdc.rest.VoidResponse removeDomainFromSet(String serverName, String userId, String governanceDomainSetGUID, String governanceDomainGUID, org.odpi.openmetadata.accessservices.governanceprogram.rest.ExternalSourceRequestBody requestBody)
      Remove a parent-child relationship between a governance domain set and a governance domain.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainSetGUID - unique identifier of the governance domain set
      governanceDomainGUID - unique identifier of the governance domain
      requestBody - relationship request body
      Returns:
      void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomains

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse getGovernanceDomains(String serverName, String userId, int startFrom, int pageSize)
      Retrieve the list of Governance Domain metadata elements defined for the governance program.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • findGovernanceDomains

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse findGovernanceDomains(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.SearchStringRequestBody requestBody)
      Retrieve the list of Governance Domain metadata elements that contain the search string. The search string is treated as a regular expression.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - string to find in the properties
      Returns:
      list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getSetsForGovernanceDomain

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainSetListResponse getSetsForGovernanceDomain(String serverName, String userId, String governanceDomainGUID, int startFrom, int pageSize)
      Return the list of governance domain sets that a governance domain belong.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainGUID - unique identifier of the governance domain to query
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      list of metadata elements describing the sets associated with the requested governanceDomainSet or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomainsByName

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainListResponse getGovernanceDomainsByName(String serverName, String userId, int startFrom, int pageSize, org.odpi.openmetadata.commonservices.ffdc.rest.NameRequestBody requestBody)
      Retrieve the list of Governance Domain metadata elements with a matching qualified or display name. There are no wildcards supported on this request.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      startFrom - paging start point
      pageSize - maximum results that can be returned
      requestBody - name to search for
      Returns:
      list of matching metadata elements InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomainByGUID

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainResponse getGovernanceDomainByGUID(String serverName, String userId, String governanceDomainGUID)
      Retrieve the Governance Domain metadata element with the supplied unique identifier assigned when the domain description was stored in the metadata repository.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      governanceDomainGUID - unique identifier of the requested metadata element
      Returns:
      requested metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
    • getGovernanceDomainByIdentifier

      public org.odpi.openmetadata.accessservices.governanceprogram.rest.GovernanceDomainResponse getGovernanceDomainByIdentifier(String serverName, String userId, int domainIdentifier)
      Retrieve the Governance Domain metadata element with the supplied domain identifier.
      Parameters:
      serverName - name of the server instance to connect to
      userId - calling user
      domainIdentifier - identifier used to identify the domain
      Returns:
      requested metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)