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

public class GovernanceZoneManager extends GovernanceProgramBaseClient implements org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
GovernanceZoneManager is the Java client used to manage governance zones.
  • Constructor Details

    • GovernanceZoneManager

      public GovernanceZoneManager(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.
    • GovernanceZoneManager

      public GovernanceZoneManager(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.
    • GovernanceZoneManager

      public GovernanceZoneManager(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.
    • GovernanceZoneManager

      public GovernanceZoneManager(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.
    • GovernanceZoneManager

      public GovernanceZoneManager(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

    • createGovernanceZone

      public String createGovernanceZone(String userId, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceZoneProperties 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 definition of a governance zone. The qualified name of these governance zones can be added to the supportedZones, publishedZones and defaultZones properties of an OMAS to control which assets are processed and how they are set up. In addition, the qualified names of zones can be added to Asset definitions to indicate which zone(s) they belong to.
      Specified by:
      createGovernanceZone in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      properties - properties for a governance zone
      Returns:
      unique identifier of the governance zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - qualifiedName or userId is null; qualifiedName is not unique
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • updateGovernanceZone

      public void updateGovernanceZone(String userId, String zoneGUID, boolean isMergeUpdate, org.odpi.openmetadata.accessservices.governanceprogram.properties.GovernanceZoneProperties 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 definition of a zone.
      Specified by:
      updateGovernanceZone in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      zoneGUID - unique identifier of zone
      isMergeUpdate - are unspecified properties unchanged (true) or replaced with null?
      properties - properties to change
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • deleteGovernanceZone

      public void deleteGovernanceZone(String userId, String zoneGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Remove the definition of a zone.
      Specified by:
      deleteGovernanceZone in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      zoneGUID - unique identifier of zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - guid or userId is null; guid is not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • linkZonesInHierarchy

      public void linkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Link two related governance zones together as part of a hierarchy. A zone can only have one parent but many child zones.
      Specified by:
      linkZonesInHierarchy in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      parentZoneGUID - unique identifier of the parent zone
      childZoneGUID - unique identifier of the child zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the guids is null or not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • unlinkZonesInHierarchy

      public void unlinkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Remove the link between two zones in the zone hierarchy.
      Specified by:
      unlinkZonesInHierarchy in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      parentZoneGUID - unique identifier of the parent zone
      childZoneGUID - unique identifier of the child zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - one of the guids is null or not known
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getGovernanceZoneByGUID

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceZoneElement getGovernanceZoneByGUID(String userId, String zoneGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific governance zone.
      Specified by:
      getGovernanceZoneByGUID in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      zoneGUID - unique identifier for the zone
      Returns:
      properties of the governance zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - zoneGUID or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getGovernanceZoneByName

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceZoneElement getGovernanceZoneByName(String userId, String qualifiedName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific governance zone.
      Specified by:
      getGovernanceZoneByName in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      qualifiedName - unique name for the zone
      Returns:
      properties of the governance zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - qualifiedName or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getGovernanceZonesForDomain

      public List<org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceZoneElement> getGovernanceZonesForDomain(String userId, int domainIdentifier, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about the defined governance zones.
      Specified by:
      getGovernanceZonesForDomain in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      domainIdentifier - identifier for the desired governance domain - 0 for all
      startFrom - paging start point
      pageSize - maximum results that can be returned
      Returns:
      properties of the governance zone
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - qualifiedName or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem
    • getGovernanceZoneDefinitionByGUID

      public org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceZoneDefinition getGovernanceZoneDefinitionByGUID(String userId, String zoneGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException
      Return information about a specific governance zone and its linked governance definitions.
      Specified by:
      getGovernanceZoneDefinitionByGUID in interface org.odpi.openmetadata.accessservices.governanceprogram.api.GovernanceZonesInterface
      Parameters:
      userId - calling user
      zoneGUID - unique identifier for the zone
      Returns:
      properties of the governance zone linked to the associated governance definitions
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - zoneGUID or userId is null
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem