public class GovernanceZoneHandler extends Object
| Constructor and Description |
|---|
GovernanceZoneHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
createGovernanceZone(String userId,
String qualifiedName,
String displayName,
String description,
String criteria,
Map<String,String> additionalProperties,
Map<String,Object> extendedProperties,
String methodName)
Create a definition of a governance zone.
|
GovernanceZone |
getGovernanceZone(String userId,
String qualifiedName,
String methodName)
Return information about a specific governance zone.
|
List<GovernanceZone> |
getGovernanceZones(String userId,
int startingFrom,
int maximumResults,
String methodName)
Return information about the defined governance zones.
|
public GovernanceZoneHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper)
serviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectspublic void createGovernanceZone(String userId, String qualifiedName, String displayName, String description, String criteria, Map<String,String> additionalProperties, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - 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 zoneextendedProperties - properties for a governance zone subtypemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic GovernanceZone getGovernanceZone(String userId, String qualifiedName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the zonemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<GovernanceZone> getGovernanceZones(String userId, int startingFrom, int maximumResults, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - 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 callmethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2020 ODPi. All rights reserved.