Interface GovernanceZonesInterface
- All Known Implementing Classes:
GovernanceZoneManager
public interface GovernanceZonesInterface
The GovernanceZonesInterface is used by the governance team to define the zones where the assets
can be located.
-
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceZone
(String userId, GovernanceZoneProperties properties) Create a definition of a governance zone.void
deleteGovernanceZone
(String userId, String zoneGUID) Remove the definition of a zone.getGovernanceZoneByGUID
(String userId, String zoneGUID) Return information about a specific governance zone.getGovernanceZoneByName
(String userId, String qualifiedName) Return information about a specific governance zone and its linked governance definitions.getGovernanceZoneDefinitionByGUID
(String userId, String zoneGUID) Return information about a specific governance zone and its linked governance definitions.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
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.
-
Method Details
-
createGovernanceZone
String createGovernanceZone(String userId, GovernanceZoneProperties properties) throws InvalidParameterException, UserNotAuthorizedException, 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.- Parameters:
userId
- calling userproperties
- properties for a governance zone- Returns:
- unique identifier of the governance zone
- Throws:
InvalidParameterException
- qualifiedName or userId is null; qualifiedName is not uniquePropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateGovernanceZone
void updateGovernanceZone(String userId, String zoneGUID, boolean isMergeUpdate, GovernanceZoneProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the definition of a zone.- Parameters:
userId
- calling userzoneGUID
- unique identifier of zoneisMergeUpdate
- are unspecified properties unchanged (true) or replaced with null?properties
- properties to change- Throws:
InvalidParameterException
- guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
deleteGovernanceZone
void deleteGovernanceZone(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the definition of a zone.- Parameters:
userId
- calling userzoneGUID
- unique identifier of zone- Throws:
InvalidParameterException
- guid or userId is null; guid is not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
linkZonesInHierarchy
void linkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Link two related governance zones together as part of a hierarchy. A zone can only have one parent but many child zones.- Parameters:
userId
- calling userparentZoneGUID
- unique identifier of the parent zonechildZoneGUID
- unique identifier of the child zone- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
unlinkZonesInHierarchy
void unlinkZonesInHierarchy(String userId, String parentZoneGUID, String childZoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Remove the link between two zones in the zone hierarchy.- Parameters:
userId
- calling userparentZoneGUID
- unique identifier of the parent zonechildZoneGUID
- unique identifier of the child zone- Throws:
InvalidParameterException
- one of the guids is null or not knownPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZoneByGUID
GovernanceZoneElement getGovernanceZoneByGUID(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone.- Parameters:
userId
- calling userzoneGUID
- unique identifier for the zone- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- zoneGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZoneByName
GovernanceZoneElement getGovernanceZoneByName(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone and its linked governance definitions.- Parameters:
userId
- calling userqualifiedName
- unique name for the zone- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZonesForDomain
List<GovernanceZoneElement> getGovernanceZonesForDomain(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the defined governance zones.- Parameters:
userId
- calling userdomainIdentifier
- identifier for the desired governance domainstartFrom
- paging start pointpageSize
- maximum results that can be returned- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZoneDefinitionByGUID
GovernanceZoneDefinition getGovernanceZoneDefinitionByGUID(String userId, String zoneGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone and its linked governance definitions.- Parameters:
userId
- calling userzoneGUID
- unique identifier for the zone- Returns:
- properties of the governance zone linked to the associated governance definitions
- Throws:
InvalidParameterException
- zoneGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-