Class GovernanceZoneHandler<B>
java.lang.Object
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
org.odpi.openmetadata.commonservices.generichandlers.GovernanceZoneHandler<B>
GovernanceZoneHandler provides the exchange of metadata about governance zones between the repository and
the OMAS. There is no support for effectivity dating because just too difficult to manage the zone look up for Assets.
They are also supposed to be long-lived.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
OpenMetadataAPIGenericHandler.AnchorIdentifiers
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
assetActionDescription, auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, qualifiedNamePropertyNamesList, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
Constructor Summary
ConstructorDescriptionGovernanceZoneHandler
(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the governance zone handler with information needed to work with B objects. -
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceZone
(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String zoneName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String, String> additionalProperties, String suppliedTypeName, Map<String, Object> extendedProperties, Date effectiveTime, String methodName) Create a definition of a governance zone.getGovernanceZone
(String userId, String name, String nameParameter, String methodName) Return information about a specific governance zone.getGovernanceZoneChildrenGUIDs
(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) Return information about a specific governance zone's child (nested) zones.getGovernanceZoneParentGUID
(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) Return information about a specific governance zone's parent.getGovernanceZones
(String userId, int startFrom, int pageSize, String methodName) Return information about the defined governance zones.getGovernanceZonesByDomain
(String userId, int domainIdentifier, int startFrom, int pageSize, String methodName) Return information about the defined governance zones for a specific domain.void
updateGovernanceZone
(String userId, String externalSourceGUID, String externalSourceName, String zoneGUID, String zoneGUIDParameterName, String qualifiedName, String zoneName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String, String> additionalProperties, String suppliedTypeName, Map<String, Object> extendedProperties, boolean isMergeUpdate, String methodName) Create a definition of a governance zone.Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorGUIDToBuilder, addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanInRepository, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getAttachmentsForType, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanHistory, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getDomainName, getDomainName, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getSpecification, getSupplementaryProperties, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, uncheckedLinkElementToElement, undoBeanUpdateInRepository, undoBeanUpdateInRepository, undoBeanUpdateInRepository, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIRootHandler
getConverter, getElementStub, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getSupportedZones, getTypeDefByName, setSecurityVerifier
-
Constructor Details
-
GovernanceZoneHandler
public GovernanceZoneHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog) Construct the governance zone handler with information needed to work with B objects.- Parameters:
converter
- specific converter for this bean classbeanClass
- name of bean class that is represented by the generic class BserviceName
- 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 objectslocalServerUserId
- userId for this serversecurityVerifier
- open metadata security services verifiersupportedZones
- list of zones that the access service is allowed to serve B instances from.defaultZones
- list of zones that the access service should set in all new B instances.publishZones
- list of zones that the access service sets up in published B instances.auditLog
- destination for audit log events.
-
-
Method Details
-
createGovernanceZone
public String createGovernanceZone(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String zoneName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String, String> additionalProperties, String suppliedTypeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, Date effectiveTime, String methodName) Create a definition of a governance zone. The qualified name of these governance zones can be added to the supportedZones 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 userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcequalifiedName
- unique name for the zone entityzoneName
- 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 zonescope
- scope of the organization that this some applies todomainIdentifier
- the identifier of the governance domain where the zone is managedadditionalProperties
- additional properties for a governance zonesuppliedTypeName
- type name of the zone definition (null for GovernanceZone)extendedProperties
- properties for a governance zone subtypeeffectiveTime
- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName
- calling method- Returns:
- unique identifier of the new zone
- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
updateGovernanceZone
public void updateGovernanceZone(String userId, String externalSourceGUID, String externalSourceName, String zoneGUID, String zoneGUIDParameterName, String qualifiedName, String zoneName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String, String> additionalProperties, String suppliedTypeName, Map<String, throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionObject> extendedProperties, boolean isMergeUpdate, String methodName) Create a definition of a governance zone. The qualified name of these governance zones can be added to the supportedZones 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 userexternalSourceGUID
- guid of the software capability entity that represented the external source - null for localexternalSourceName
- name of the software capability entity that represented the external sourcezoneGUID
- unique identifier for the zone to changezoneGUIDParameterName
- parameter supplying the zoneGUIDqualifiedName
- unique name for the zone entityzoneName
- 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 zonescope
- scope of the organization that this some applies todomainIdentifier
- the identifier of the governance domain where the zone is managedadditionalProperties
- additional properties for a governance zonesuppliedTypeName
- type name of the zone definition (null for GovernanceZone)extendedProperties
- properties for a governance zone subtypeisMergeUpdate
- should the supplied properties be merged with or replace existing propertiesmethodName
- calling method- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZone
public B getGovernanceZone(String userId, String name, String nameParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone.- Parameters:
userId
- calling username
- unique name for the zonenameParameter
- name of parameter supplying the namemethodName
- calling method- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- name or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZoneParentGUID
public Relationship getGovernanceZoneParentGUID(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone's parent.- Parameters:
userId
- calling userzoneGUID
- unique identifier for the zonezoneGUIDParameter
- name of parameter supplying the zoneGUIDmethodName
- calling method- Returns:
- Relationship to the parent
- Throws:
InvalidParameterException
- zoneGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZoneChildrenGUIDs
public List<Relationship> getGovernanceZoneChildrenGUIDs(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about a specific governance zone's child (nested) zones.- Parameters:
userId
- calling userzoneGUID
- unique identifier for the zonezoneGUIDParameter
- name of parameter supplying the zoneGUIDmethodName
- calling method- Returns:
- list of relationships of the child governance zones
- Throws:
InvalidParameterException
- zoneGUID or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZones
public List<B> getGovernanceZones(String userId, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the defined governance zones.- Parameters:
userId
- calling userstartFrom
- position in the list (used when there are so many reports that paging is neededpageSize
- maximum number of elements to return on this callmethodName
- calling method- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-
getGovernanceZonesByDomain
public List<B> getGovernanceZonesByDomain(String userId, int domainIdentifier, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return information about the defined governance zones for a specific domain.- Parameters:
userId
- calling userdomainIdentifier
- identifier of domain - 0 is for all domainsstartFrom
- position in the list (used when there are so many reports that paging is neededpageSize
- maximum number of elements to return on this callmethodName
- calling method- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException
- qualifiedName or userId is nullPropertyServerException
- problem accessing property serverUserNotAuthorizedException
- security access problem
-