public class GovernanceZoneManager extends Object implements GovernanceZoneManagerInterface
| Constructor and Description |
|---|
GovernanceZoneManager(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceZoneManager(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createGovernanceZone(String userId,
String qualifiedName,
String displayName,
String description,
String criteria,
Map<String,String> additionalProperties)
Create a definition of a governance zone.
|
GovernanceZone |
getGovernanceZone(String userId,
String qualifiedName)
Return information about a specific governance zone.
|
List<GovernanceZone> |
getGovernanceZones(String userId,
int startingFrom,
int maximumResults)
Return information about the defined governance zones.
|
public GovernanceZoneManager(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - 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 serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - 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 void createGovernanceZone(String userId, String qualifiedName, String displayName, String description, String criteria, Map<String,String> additionalProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceZone in interface GovernanceZoneManagerInterfaceuserId - calling userqualifiedName - unique name for the zone - used in other configurationdisplayName - short display name for the zonedescription - description of the governance zonecriteria - the criteria for inclusion in a governance zoneadditionalProperties - additional properties for a governance zoneInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceZone getGovernanceZone(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZone in interface GovernanceZoneManagerInterfaceuserId - calling userqualifiedName - unique name for the zoneInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceZone> getGovernanceZones(String userId, int startingFrom, int maximumResults) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceZones in interface GovernanceZoneManagerInterfaceuserId - calling userstartingFrom - position in the list (used when there are so many reports that paging is neededmaximumResults - maximum number of elements to return an this callInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.