public class GovernanceZoneManager extends Object implements GovernanceZonesInterface
| Constructor and Description |
|---|
GovernanceZoneManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceZoneManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
GovernanceZoneManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceZoneManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceZoneManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password,
int maxPageSize,
AuditLog auditLog)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createGovernanceZone(String userId,
GovernanceZoneProperties properties)
Create a definition of a governance zone.
|
void |
deleteGovernanceZone(String userId,
String zoneGUID)
Remove the definition of a zone.
|
GovernanceZoneElement |
getGovernanceZoneByGUID(String userId,
String zoneGUID)
Return information about a specific governance zone.
|
GovernanceZoneElement |
getGovernanceZoneByName(String userId,
String qualifiedName)
Return information about a specific governance zone.
|
GovernanceZoneDefinition |
getGovernanceZoneDefinitionByGUID(String userId,
String zoneGUID)
Return information about a specific governance zone and its linked governance definitions.
|
List<GovernanceZoneElement> |
getGovernanceZonesForDomain(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return information about the defined governance zones.
|
void |
linkZonesInHierarchy(String userId,
String parentZoneGUID,
String childZoneGUID)
Link two related governance zones together as part of a hierarchy.
|
void |
linkZoneToGovernanceDefinition(String userId,
String zoneGUID,
String definitionGUID)
Link a governance zone to a governance definition that controls how the assets in the zone should be governed.
|
void |
unlinkZoneFromGovernanceDefinition(String userId,
String zoneGUID,
String definitionGUID)
Remove the link between a zone and a governance definition.
|
void |
unlinkZonesInHierarchy(String userId,
String parentZoneGUID,
String childZoneGUID)
Remove the link between two zones in the zone hierarchy.
|
void |
updateGovernanceZone(String userId,
String zoneGUID,
boolean isMergeUpdate,
GovernanceZoneProperties properties)
Update the definition of a zone.
|
public GovernanceZoneManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceZoneManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceZoneManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceZoneManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceZoneManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - internal client for rest callsmaxPageSize - pre-initialized parameter limitInvalidParameterException - bad input parameterspublic String createGovernanceZone(String userId, GovernanceZoneProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceZone in interface GovernanceZonesInterfaceuserId - calling userproperties - properties for a governance zoneInvalidParameterException - qualifiedName or userId is null; qualifiedName is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateGovernanceZone(String userId, String zoneGUID, boolean isMergeUpdate, GovernanceZoneProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceZone in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier of zoneisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?properties - properties to changeInvalidParameterException - guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteGovernanceZone(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteGovernanceZone in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier of zoneInvalidParameterException - guid or userId is null; guid is not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkZonesInHierarchy in interface GovernanceZonesInterfaceuserId - calling userparentZoneGUID - unique identifier of the parent zonechildZoneGUID - unique identifier of the child zoneInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkZonesInHierarchy in interface GovernanceZonesInterfaceuserId - calling userparentZoneGUID - unique identifier of the parent zonechildZoneGUID - unique identifier of the child zoneInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkZoneToGovernanceDefinition(String userId, String zoneGUID, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkZoneToGovernanceDefinition in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier of the zonedefinitionGUID - unique identifier of the governance definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkZoneFromGovernanceDefinition(String userId, String zoneGUID, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkZoneFromGovernanceDefinition in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier of the zonedefinitionGUID - unique identifier of the governance definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceZoneElement getGovernanceZoneByGUID(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZoneByGUID in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier for the zoneInvalidParameterException - zoneGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceZoneElement getGovernanceZoneByName(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZoneByName in interface GovernanceZonesInterfaceuserId - calling userqualifiedName - unique name for the zoneInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceZoneElement> getGovernanceZonesForDomain(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZonesForDomain in interface GovernanceZonesInterfaceuserId - calling userdomainIdentifier - identifier for the desired governance domain - 0 for allstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceZoneDefinition getGovernanceZoneDefinitionByGUID(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZoneDefinitionByGUID in interface GovernanceZonesInterfaceuserId - calling userzoneGUID - unique identifier for the zoneInvalidParameterException - zoneGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.