Class GovernanceDefinitionHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.GovernanceDefinitionHandler<B>
-
- Type Parameters:
B- class that represents the governance definition
public class GovernanceDefinitionHandler<B> extends ReferenceableHandler<B>
GovernanceDefinitionHandler provides the exchange of metadata about definition definitions between the repository and the OMAS. Note definition definitions are governance metadata and are always defined with LOCAL-COHORT provenance.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description GovernanceDefinitionHandler(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 handler with information needed to work with B objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDefinitionRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeGUID, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String methodName)Remove a relationship between two definitions.StringcreateGovernanceDefinition(String userId, String qualifiedName, String title, String summary, String description, String scope, int domainIdentifier, String priority, List<String> implications, List<String> outcomes, List<String> results, List<String> businessImperatives, String jurisdiction, String implementationDescription, String namePattern, String details, String distinguishedName, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName)Create the governance definition object.List<B>findGovernanceDefinitions(String userId, String typeGUID, String typeName, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of governance definition metadata elements that contain the search string.BgetGovernanceDefinitionByGUID(String userId, String guid, String guidParameterName, String methodName)Retrieve the definition metadata element with the supplied unique identifier.List<B>getGovernanceDefinitions(String userId, String typeGUID, String typeName, int startFrom, int pageSize, String methodName)Return information about the defined governance definitions.List<B>getGovernanceDefinitionsByDomain(String userId, String typeGUID, String typeName, int domainIdentifier, int startFrom, int pageSize, String methodName)Return information about the defined governance zones for a specific domain.List<B>getGovernanceDefinitionsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of definition metadata elements with a matching qualified or title.List<B>getGovernanceDefinitionsByStringParameter(String userId, String typeGUID, String typeName, String parameterValue, String parameterParameterName, String parameterPropertyName, int startFrom, int pageSize, String methodName)Retrieve the list of definition metadata elements with a matching qualified or title.List<Relationship>getGoverningDefinitionLinks(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String governanceDefinitionTypeName, int startFrom, int pageSize, String methodName)Retrieve the links to the governance definitions that define the governance for an element.List<B>getGoverningDefinitions(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String governanceDefinitionTypeName, int startFrom, int pageSize, String methodName)Retrieve the governance definitions that define the governance for an element.List<B>getLinkedDefinitions(String userId, String definitionGUID, String definitionGUIDParameterName, String definitionTypeName, String relationshipTypeGUID, String relationshipTypeName, String targetElementType, int startFrom, int pageSize, String methodName)Return the list of elements associated with a definition.voidremoveGovernanceDefinition(String userId, String definitionGUID, String definitionGUIDParameterName, String methodName)Remove the metadata element representing a governance definition.voidsetupDelegationRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String rationale, String methodName)Create a parent-child relationship between two definitions - for example, between a governance policy and an governance control.voidsetupPeerRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String description, String methodName)Create a parent-child relationship between two definitions - for example, between two governance policies.voidupdateGovernanceDefinition(String userId, String definitionGUID, String definitionGUIDParameterName, String qualifiedName, String title, String summary, String description, String scope, int domainIdentifier, String priority, List<String> implications, List<String> outcomes, List<String> results, List<String> businessImperatives, String jurisdiction, String implementationDescription, String namePattern, String details, String distinguishedName, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, String methodName)Update the governance definition.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
GovernanceDefinitionHandler
public GovernanceDefinitionHandler(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 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 fromdefaultZones- list of zones that the access service should set in all new B instancespublishZones- list of zones that the access service sets up in published B instancesauditLog- destination for audit log events
-
-
Method Detail
-
createGovernanceDefinition
public String createGovernanceDefinition(String userId, String qualifiedName, String title, String summary, String description, String scope, int domainIdentifier, String priority, List<String> implications, List<String> outcomes, List<String> results, List<String> businessImperatives, String jurisdiction, String implementationDescription, String namePattern, String details, String distinguishedName, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create the governance definition object.- Parameters:
userId- calling userqualifiedName- unique name for the definition - used in other configurationtitle- short display name for the governance definitionsummary- brief description of the governance definitiondescription- description of the governance definitionscope- breadth of coverage of the governance definitiondomainIdentifier- identifier that indicates which governance domain this definition belongs to (0=all)priority- relative importance of the governance definitionimplications- implications to the business in adopting this governance definitionoutcomes- expected outcomes from implementing this governance definitionresults- actual results achieved from implementing this governance definitionbusinessImperatives- for the GovernanceStrategy - how does it link to business imperativesjurisdiction- for Regulations - where does this regulation applyimplementationDescription- for GovernanceControl - how should this be implementednamePattern- for NamingStandardsRule - the pattern used to for new namesdetails- for License or Certification - additional details about the definitiondistinguishedName- for Security groups - qualified name for LDAPadditionalProperties- additional properties for a definitionsuppliedTypeName- type name from the caller (enables creation of subtypes)extendedProperties- properties for a definition subtypemethodName- calling method- Returns:
- unique identifier of the new definition object
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
updateGovernanceDefinition
public void updateGovernanceDefinition(String userId, String definitionGUID, String definitionGUIDParameterName, String qualifiedName, String title, String summary, String description, String scope, int domainIdentifier, String priority, List<String> implications, List<String> outcomes, List<String> results, List<String> businessImperatives, String jurisdiction, String implementationDescription, String namePattern, String details, String distinguishedName, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, boolean isMergeUpdate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the governance definition.- Parameters:
userId- calling userdefinitionGUID- unique identifier for the definition to updatedefinitionGUIDParameterName- parameter supplying the definitionqualifiedName- unique name for the definition - used in other configurationtitle- short display name for the governance definitionsummary- brief description of the governance definitiondescription- description of the governance definitionscope- breadth of coverage of the governance definitiondomainIdentifier- identifier that indicates which governance domain this definition belongs to (0=all)priority- relative importance of the governance definitionimplications- implications to the business in adopting this governance definitionoutcomes- expected outcomes from implementing this governance definitionresults- actual results achieved from implementing this governance definitionbusinessImperatives- for the GovernanceStrategy - how does it link to business imperativesjurisdiction- for Regulations - where does this regulation applyimplementationDescription- for GovernanceControl - how should this be implementednamePattern- for NamingStandardsRule - the pattern used to for new namesdetails- for License or Certification - additional details about the definitiondistinguishedName- for Security groups - qualified name for LDAPadditionalProperties- additional properties for a governance definitionsuppliedTypeName- type of termextendedProperties- properties for a governance definition subtypeisMergeUpdate- should the supplied properties be merged with the existing or replace themmethodName- calling method- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
setupDelegationRelationship
public void setupDelegationRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String rationale, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a parent-child relationship between two definitions - for example, between a governance policy and an governance control. The rationale explains why they are linked.- Parameters:
userId- calling userdefinitionParentGUID- unique identifier of the definition super-definitiondefinitionParentGUIDParameterName- parameter supplying the super-definitiondefinitionParentTypeName- typename of super-definitiondefinitionChildGUID- unique identifier of the definition sub-definitiondefinitionChildGUIDParameterName- parameter supplying the sub-definitiondefinitionChildTypeName- type name of the sub-definitionrelationshipTypeGUID- unique identifier of the relationship typerelationshipTypeName- unique name of the relationship typerationale- why are these definitions linkedmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupPeerRelationship
public void setupPeerRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a parent-child relationship between two definitions - for example, between two governance policies. The description explains why they are linked.- Parameters:
userId- calling userdefinitionParentGUID- unique identifier of the definition super-definitiondefinitionParentGUIDParameterName- parameter supplying the super-definitiondefinitionParentTypeName- typename of super-definitiondefinitionChildGUID- unique identifier of the definition sub-definitiondefinitionChildGUIDParameterName- parameter supplying the sub-definitiondefinitionChildTypeName- type name of the sub-definitionrelationshipTypeGUID- unique identifier of the relationship typerelationshipTypeName- unique name of the relationship typedescription- why are these definitions linkedmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearDefinitionRelationship
public void clearDefinitionRelationship(String userId, String definitionParentGUID, String definitionParentGUIDParameterName, String definitionParentTypeName, String definitionChildGUID, String definitionChildGUIDParameterName, String definitionChildTypeGUID, String definitionChildTypeName, String relationshipTypeGUID, String relationshipTypeName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a relationship between two definitions.- Parameters:
userId- calling userdefinitionParentGUID- unique identifier of the definition super-definitiondefinitionParentGUIDParameterName- parameter supplying the super-definitiondefinitionParentTypeName- typename of super-definitiondefinitionChildGUID- unique identifier of the definition sub-definitiondefinitionChildGUIDParameterName- parameter supplying the sub-definitiondefinitionChildTypeGUID- type guid of the sub-definitiondefinitionChildTypeName- type name of the sub-definitionrelationshipTypeGUID- unique identifier of the relationship typerelationshipTypeName- unique name of the relationship typemethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGovernanceDefinition
public void removeGovernanceDefinition(String userId, String definitionGUID, String definitionGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a governance definition.- Parameters:
userId- calling userdefinitionGUID- unique identifier of the metadata element to removedefinitionGUIDParameterName- parameter for definitionGUIDmethodName- calling method- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findGovernanceDefinitions
public List<B> findGovernanceDefinitions(String userId, String typeGUID, String typeName, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of governance definition metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
userId- calling usertypeGUID- GUID of the type of governance definitiontypeName- name of the type of governance definitionsearchString- string to find in the propertiessearchStringParameterName- name of parameter supplying the search stringstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getLinkedDefinitions
public List<B> getLinkedDefinitions(String userId, String definitionGUID, String definitionGUIDParameterName, String definitionTypeName, String relationshipTypeGUID, String relationshipTypeName, String targetElementType, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of elements associated with a definition.- Parameters:
userId- calling userdefinitionGUID- unique identifier of the definition to querydefinitionGUIDParameterName- name of the parameter supplying definitionGUIDdefinitionTypeName- type of the starting elementrelationshipTypeGUID- unique identifier of the relationship (null if any relationship)relationshipTypeName- unique name of the relationship (null if any relationship)targetElementType- type of the target elementstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of metadata elements describing the definitions associated with the requested definition
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitions
public List<B> getGovernanceDefinitions(String userId, String typeGUID, String typeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return information about the defined governance definitions.- Parameters:
userId- calling usertypeGUID- GUID of the type of governance definitiontypeName- name of the type of governance definitionstartFrom- 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 method- Returns:
- properties of the governance definitions
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getGovernanceDefinitionsByDomain
public List<B> getGovernanceDefinitionsByDomain(String userId, String typeGUID, String typeName, 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 usertypeGUID- GUID of the type of governance definitiontypeName- name of the type of governance definitiondomainIdentifier- 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 method- Returns:
- properties of the governance zone
- Throws:
InvalidParameterException- qualifiedName or userId is nullPropertyServerException- problem accessing property serverUserNotAuthorizedException- security access problem
-
getGovernanceDefinitionsByName
public List<B> getGovernanceDefinitionsByName(String userId, String typeGUID, String typeName, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of definition metadata elements with a matching qualified or title. There are no wildcards supported on this request.- Parameters:
userId- calling usertypeGUID- GUID of the type of governance definitiontypeName- name of the type of governance definitionname- name to search fornameParameterName- parameter supplying namestartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of matching governance definitions
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionsByStringParameter
public List<B> getGovernanceDefinitionsByStringParameter(String userId, String typeGUID, String typeName, String parameterValue, String parameterParameterName, String parameterPropertyName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of definition metadata elements with a matching qualified or title. There are no wildcards supported on this request.- Parameters:
userId- calling usertypeGUID- GUID of the type of governance definitiontypeName- name of the type of governance definitionparameterValue- value to search forparameterParameterName- parameter supplying valueparameterPropertyName- property name in entity to search instartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of matching governance definitions
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGoverningDefinitionLinks
public List<Relationship> getGoverningDefinitionLinks(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String governanceDefinitionTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the links to the governance definitions that define the governance for an element.- Parameters:
userId- calling usergovernanceDefinitionTypeName- name of the type of required governance definitionselementGUID- unique identifier of the requested metadata elementelementGUIDParameterName- parameter name of the elementGUIDelementTypeName- name of the type of the starting elementstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of relationships
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGoverningDefinitions
public List<B> getGoverningDefinitions(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, String governanceDefinitionTypeName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance definitions that define the governance for an element.- Parameters:
userId- calling usergovernanceDefinitionTypeName- name of the type of required governance definitionselementGUID- unique identifier of the requested metadata elementelementGUIDParameterName- parameter name of the elementGUIDelementTypeName- name of the type of the starting elementstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- Returns:
- list of governance definition element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceDefinitionByGUID
public B getGovernanceDefinitionByGUID(String userId, String guid, String guidParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the definition metadata element with the supplied unique identifier.- Parameters:
userId- calling userguid- unique identifier of the requested metadata elementguidParameterName- parameter name of guidmethodName- calling method- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-