public class GovernanceZoneHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createGovernanceZone(String userId,
String externalSourceGUID,
String externalSourceName,
String qualifiedName,
String displayName,
String description,
String criteria,
String scope,
int domainIdentifier,
Map<String,String> additionalProperties,
String suppliedTypeName,
Map<String,Object> extendedProperties,
String methodName)
Create a definition of a governance zone.
|
B |
getGovernanceZone(String userId,
String qualifiedName,
String qualifiedNameParameter,
String methodName)
Return information about a specific governance zone.
|
List<Relationship> |
getGovernanceZoneChildrenGUIDs(String userId,
String zoneGUID,
String zoneGUIDParameter,
String methodName)
Return information about a specific governance zone's child (nested) zones.
|
Relationship |
getGovernanceZoneParentGUID(String userId,
String zoneGUID,
String zoneGUIDParameter,
String methodName)
Return information about a specific governance zone's parent.
|
List<B> |
getGovernanceZones(String userId,
int startFrom,
int pageSize,
String methodName)
Return information about the defined governance zones.
|
List<B> |
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 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.
|
archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByIntValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic 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)
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.public String createGovernanceZone(String userId, String externalSourceGUID, String externalSourceName, String qualifiedName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcequalifiedName - 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 subtypemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateGovernanceZone(String userId, String externalSourceGUID, String externalSourceName, String zoneGUID, String zoneGUIDParameterName, String qualifiedName, String displayName, String description, String criteria, String scope, int domainIdentifier, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcezoneGUID - unique identifier for the zone to changezoneGUIDParameterName - parameter supplying the zoneGUIDqualifiedName - 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 supplied properties be merged with or replace existing propertiesmethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic B getGovernanceZone(String userId, String qualifiedName, String qualifiedNameParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the zonequalifiedNameParameter - name of parameter supplying the qualifiedNamemethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic Relationship getGovernanceZoneParentGUID(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userzoneGUID - unique identifier for the zonezoneGUIDParameter - name of parameter supplying the zoneGUIDmethodName - calling methodInvalidParameterException - zoneGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<Relationship> getGovernanceZoneChildrenGUIDs(String userId, String zoneGUID, String zoneGUIDParameter, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userzoneGUID - unique identifier for the zonezoneGUIDParameter - name of parameter supplying the zoneGUIDmethodName - calling methodInvalidParameterException - zoneGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<B> getGovernanceZones(String userId, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userstartFrom - position in the list (used when there are so many reports that paging is neededpageSize - maximum number of elements to return an this callmethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<B> getGovernanceZonesByDomain(String userId, int domainIdentifier, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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 an this callmethodName - calling methodInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.