public class GovernanceActionHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
GovernanceActionHandler(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 |
|---|---|
void |
claimGovernanceAction(String userId,
String governanceActionGUID,
String methodName)
Request that execution of a governance action is allocated to the caller.
|
GovernanceActionStatus |
getActionStatus(String propertyName,
InstanceProperties properties)
Retrieve the ActionStatus enum property from the instance properties of a Governance Action.
|
List<B> |
getActiveClaimedGovernanceActions(String userId,
String governanceEngineGUID,
int startFrom,
int pageSize,
String methodName)
Retrieve the governance actions that are still in process and that have been claimed by this caller's userId.
|
List<B> |
getActiveGovernanceActions(String userId,
int startFrom,
int pageSize,
String methodName)
Retrieve the governance actions that are still in process.
|
B |
getGovernanceAction(String userId,
String governanceActionGUID,
String methodName)
Request the status of an executing governance action request.
|
List<B> |
getGovernanceActions(String userId,
int startFrom,
int pageSize,
String methodName)
Retrieve the governance actions that are known to this server.
|
String |
initiateGovernanceAction(String userId,
String qualifiedName,
int domainIdentifier,
String displayName,
String description,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
List<String> mandatoryGuards,
List<String> receivedGuards,
Date startTime,
String governanceEngineName,
String requestType,
Map<String,String> requestParameters,
String governanceActionTypeGUID,
String anchorGUID,
String requestSourceName,
String originatorServiceName,
String originatorEngineName,
String methodName)
Create a governance action in the metadata store which will trigger the governance action service
associated with the supplied request type.
|
String |
initiateGovernanceActionProcess(String userId,
String processQualifiedName,
List<String> requestSourceGUIDs,
List<NewActionTarget> actionTargets,
Map<String,String> requestParameters,
Date startTime,
String originatorServiceName,
String originatorEngineName,
String methodName)
Using the named governance action process as a template, initiate a chain of governance actions.
|
void |
recordCompletionStatus(String userId,
String governanceActionGUID,
int status,
Map<String,String> callerRequestParameters,
List<String> outputGuards,
List<NewActionTarget> newActionTargets,
String methodName)
Declare that all of the processing for the governance action service is finished along with status of the work.
|
void |
updateActionTargetStatus(String userId,
String actionTargetGUID,
int status,
Date startDate,
Date completionDate,
String methodName)
Update the status of a specific action target.
|
void |
updateGovernanceActionStatus(String userId,
String governanceActionGUID,
int governanceActionStatus,
String methodName)
Update the status of the governance action - providing the caller is permitted.
|
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 GovernanceActionHandler(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 initiateGovernanceActionProcess(String userId, String processQualifiedName, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, Map<String,String> requestParameters, Date startTime, String originatorServiceName, String originatorEngineName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdprocessQualifiedName - unique name to give this governance action processrequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - list of action target names to GUIDs for the resulting governance action servicerequestParameters - initial set of request parameters from the callerstartTime - future start time or null for "as soon as possible"originatorServiceName - unique identifier of the originator - typically an ActorProfile or Process such as a GovernanceService.originatorEngineName - optional unique name of the governance engine (if initiated by a governance engine).methodName - calling methodInvalidParameterException - null qualified nameUserNotAuthorizedException - this governance action service is not authorized to create a governance actionPropertyServerException - there is a problem with the metadata storepublic String initiateGovernanceAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<NewActionTarget> actionTargets, List<String> mandatoryGuards, List<String> receivedGuards, Date startTime, String governanceEngineName, String requestType, Map<String,String> requestParameters, String governanceActionTypeGUID, String anchorGUID, String requestSourceName, String originatorServiceName, String originatorEngineName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdqualifiedName - unique identifier to give this governance actiondomainIdentifier - governance domain associated with this action (0=ALL)displayName - display name for this actiondescription - description for this actionrequestSourceGUIDs - request source elements for the resulting governance action serviceactionTargets - list of action target names to GUIDs for the resulting governance action servicemandatoryGuards - list of guards that must be received in order to proceed with the governance actionreceivedGuards - list of guards to initiate the governance actionstartTime - future start time or null for "as soon as possible"governanceEngineName - name of the governance engine that should execute the requestrequestType - request type to identify the governance action service to runrequestParameters - properties to pass to the governance action serviceanchorGUID - identifier of the first governance action of the process (null for standalone governance actions and the first governance
action in a governance action process).governanceActionTypeGUID - unique identifier of the governance action type that initiated this governance action as part of
a governance action process (or null if this is standalone governance action.originatorServiceName - unique identifier of the originator - typically an ActorProfile or Process such as a GovernanceService.originatorEngineName - optional unique name of the governance engine (if initiated by a governance engine).methodName - calling methodInvalidParameterException - null qualified nameUserNotAuthorizedException - this governance action service is not authorized to create a governance actionPropertyServerException - there is a problem with the metadata storepublic B getGovernanceAction(String userId, String governanceActionGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public GovernanceActionStatus getActionStatus(String propertyName, InstanceProperties properties)
propertyName - name of property to extract the enum fromproperties - entity propertiespublic void claimGovernanceAction(String userId, String governanceActionGUID, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public void updateGovernanceActionStatus(String userId, String governanceActionGUID, int governanceActionStatus, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestgovernanceActionStatus - new status ordinalmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public void recordCompletionStatus(String userId, String governanceActionGUID, int status, Map<String,String> callerRequestParameters, List<String> outputGuards, List<NewActionTarget> newActionTargets, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdgovernanceActionGUID - unique identifier of the governance action to updatestatus - completion status enum valuecallerRequestParameters - request parameters used by the calleroutputGuards - optional guard strings for triggering subsequent action(s)newActionTargets - additional elements to add to the action targets for the next phasemethodName - calling methodInvalidParameterException - the completion status is nullUserNotAuthorizedException - the governance action service is not authorized to update the governance action service statusPropertyServerException - there is a problem connecting to the metadata storepublic List<B> getGovernanceActions(String userId, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callerstartFrom - starting from elementpageSize - maximum elements to returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public List<B> getActiveGovernanceActions(String userId, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callerstartFrom - starting from elementpageSize - maximum elements to returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public List<B> getActiveClaimedGovernanceActions(String userId, String governanceEngineGUID, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - userId of callergovernanceEngineGUID - unique identifier of governance enginestartFrom - starting from elementpageSize - maximum elements to returnmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - there was a problem detected by the metadata store.public void updateActionTargetStatus(String userId, String actionTargetGUID, int status, Date startDate, Date completionDate, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - caller's userIdactionTargetGUID - unique identifier of the governance action servicestatus - status enum to show its progressstartDate - date/time that the governance action service started processing the targetcompletionDate - date/time that the governance process completed processing this targetmethodName - calling methodInvalidParameterException - the action target GUID is not recognizedUserNotAuthorizedException - the governance action service is not authorized to update the action target propertiesPropertyServerException - there is a problem connecting to the metadata storeCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.