public class GovernanceActionTypeHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
GovernanceActionTypeHandler(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 for metadata elements.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createGovernanceActionType(String userId,
String qualifiedName,
int domainIdentifier,
String displayName,
String description,
String owner,
int ownerType,
List<String> supportedGuards,
Map<String,String> additionalProperties,
String governanceEngineGUID,
String requestType,
Map<String,String> requestParameters,
String methodName)
Create a new metadata element to represent a governance action type.
|
List<B> |
findGovernanceActionTypes(String userId,
String searchString,
String searchStringParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of governance action type metadata elements that contain the search string.
|
B |
getFirstActionType(String userId,
String processGUID,
Relationship firstActionTypeLink,
String methodName)
Return the governance action type that is the first step in a governance action process.
|
Relationship |
getFirstActionTypeLink(String userId,
String processGUID,
String methodName)
Return the governance action type that is the first step in a governance action process.
|
B |
getGovernanceActionTypeByGUID(String userId,
String actionTypeGUID,
String methodName)
Retrieve the governance action type metadata element with the supplied unique identifier.
|
List<B> |
getGovernanceActionTypesByName(String userId,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Retrieve the list of governance action type metadata elements with a matching qualified or display name.
|
List<Relationship> |
getNextGovernanceActionTypes(String userId,
String actionTypeGUID,
int startFrom,
int pageSize,
String methodName)
Return the list of next action type defined for the governance action process.
|
void |
removeFirstActionType(String userId,
String processGUID,
String methodName)
Remove the link between a governance process and that governance action type that defines its first step.
|
void |
removeGovernanceActionType(String userId,
String actionTypeGUID,
String methodName)
Remove the metadata element representing a governance action type.
|
void |
removeNextActionType(String userId,
String actionLinkGUID,
String methodName)
Remove a follow on step from a governance action process.
|
void |
setupFirstActionType(String userId,
String processGUID,
String actionTypeGUID,
String guard,
String methodName)
Set up a link between an governance action process and a governance action type.
|
String |
setupNextActionType(String userId,
String currentActionTypeGUID,
String nextActionTypeGUID,
String guard,
boolean mandatoryGuard,
boolean ignoreMultipleTriggers,
String methodName)
Add a link between two governance action types to show that one follows on from the other when a governance action process
is executing.
|
void |
updateGovernanceActionType(String userId,
String actionTypeGUID,
boolean isMergeUpdate,
String qualifiedName,
int domainIdentifier,
String displayName,
String description,
String owner,
int ownerType,
List<String> supportedGuards,
Map<String,String> additionalProperties,
String governanceEngineGUID,
String requestType,
Map<String,String> requestParameters,
String methodName)
Update the metadata element representing a governance action type.
|
void |
updateNextActionType(String userId,
String nextActionLinkGUID,
String guard,
boolean mandatoryGuard,
boolean ignoreMultipleTriggers,
String methodName)
Update the properties of the link between two governance action types that shows that one follows on from the other when a governance
action process is executing.
|
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, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, 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 GovernanceActionTypeHandler(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 Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String createGovernanceActionType(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, String owner, int ownerType, List<String> supportedGuards, Map<String,String> additionalProperties, String governanceEngineGUID, String requestType, Map<String,String> requestParameters, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userqualifiedName - unique name for the governance actiondomainIdentifier - governance domain for this governance actiondisplayName - short display name for the governance actiondescription - description of the governance actionowner - identifier of the owner of this governance actionownerType - type of owner (userId or actor profile)supportedGuards - list of guards that triggered this governance actionadditionalProperties - additional properties for a governance actiongovernanceEngineGUID - unique identifier of governance engine to execute the requestrequestType - type of requestrequestParameters - properties for the request typemethodName - calling methodInvalidParameterException - 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)public void updateGovernanceActionType(String userId, String actionTypeGUID, boolean isMergeUpdate, String qualifiedName, int domainIdentifier, String displayName, String description, String owner, int ownerType, List<String> supportedGuards, Map<String,String> additionalProperties, String governanceEngineGUID, String requestType, Map<String,String> requestParameters, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling useractionTypeGUID - unique identifier of the metadata element to updateisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?qualifiedName - unique name for the governance actiondomainIdentifier - governance domain for this governance actiondisplayName - short display name for the governance actiondescription - description of the governance actionowner - identifier of the owner of this governance actionownerType - type of owner (userId or actor profile)supportedGuards - list of guards that triggered this governance actionadditionalProperties - additional properties for a governance actiongovernanceEngineGUID - unique identifier of governance engine to execute the requestrequestType - type of requestrequestParameters - properties for the request typemethodName - calling methodInvalidParameterException - 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)public void removeGovernanceActionType(String userId, String actionTypeGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling useractionTypeGUID - unique identifier of the metadata element to removemethodName - calling methodInvalidParameterException - 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)public List<B> findGovernanceActionTypes(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usersearchString - string to find in the propertiessearchStringParameterName - parameter supplying search stringstartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - 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)public List<B> getGovernanceActionTypesByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling username - name to search fornameParameterName - name of parameter supplying namestartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - 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)public B getGovernanceActionTypeByGUID(String userId, String actionTypeGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling useractionTypeGUID - unique identifier of the governance action typemethodName - calling methodInvalidParameterException - 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)public void setupFirstActionType(String userId, String processGUID, String actionTypeGUID, String guard, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userprocessGUID - unique identifier of the governance action processactionTypeGUID - unique identifier of the governance action typeguard - initial guard to pass to the first governance service calledmethodName - calling methodInvalidParameterException - 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)public B getFirstActionType(String userId, String processGUID, Relationship firstActionTypeLink, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userprocessGUID - unique identifier of the governance action processfirstActionTypeLink - Governance Action Flow relationship (if known)methodName - calling methodInvalidParameterException - 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)public Relationship getFirstActionTypeLink(String userId, String processGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userprocessGUID - unique identifier of the governance action processmethodName - calling methodInvalidParameterException - 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)public void removeFirstActionType(String userId, String processGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling userprocessGUID - unique identifier of the governance action processmethodName - calling methodInvalidParameterException - 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)public String setupNextActionType(String userId, String currentActionTypeGUID, String nextActionTypeGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usercurrentActionTypeGUID - unique identifier of the governance action type that defines the previous step in the governance action processnextActionTypeGUID - unique identifier of the governance action type that defines the next step in the governance action processguard - guard required for this next step to proceed - or null for always run the next step.mandatoryGuard - means that no next steps can run if this guard is not returnedignoreMultipleTriggers - prevent multiple instances of the next step to run (or not)methodName - calling methodInvalidParameterException - 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)public void updateNextActionType(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling usernextActionLinkGUID - unique identifier of the relationship between the governance action typesguard - guard required for this next step to proceed - or null for always run the next step.mandatoryGuard - means that no next steps can run if this guard is not returnedignoreMultipleTriggers - prevent multiple instances of the next step to run (or not)methodName - calling methodInvalidParameterException - 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)public List<Relationship> getNextGovernanceActionTypes(String userId, String actionTypeGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling useractionTypeGUID - unique identifier of the current governance action typestartFrom - paging start pointpageSize - maximum results that can be returnedmethodName - calling methodInvalidParameterException - 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)public void removeNextActionType(String userId, String actionLinkGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - calling useractionLinkGUID - unique identifier of the relationship between the governance action typesmethodName - calling methodInvalidParameterException - 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)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.