Interface GovernanceContext
- All Known Subinterfaces:
ProvisioningGovernanceContext
,RemediationGovernanceContext
,TriageGovernanceContext
,VerificationGovernanceContext
,WatchdogGovernanceContext
- All Known Implementing Classes:
GovernanceActionContext
public interface GovernanceContext
GovernanceContext provides the governance action service with access to information about
the governance request along with the open metadata repository interfaces.
The abstract methods are implemented by the technology that supports the real metadata store.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the list of elements that this governance action service should work on.Return any completion status from the governance action service.Return the client for managing the metadata associated with running connectors, governance engines and governance services.Return the client that manages deduplication.Return the unique identifier of the engine action that this service request is associated with.int
Return the maximum number of elements that can be returned on a request.Return the userId of the original person, process, service that requested this action.Return the properties that hold the parameters used to drive the governance action service's processing.Return the list of metadata elements associated with the request to the governance action service.Return the unique identifier of the asset being discovered.void
recordCompletionStatus
(CompletionStatus status, List<String> outputGuards) Declare that all the processing for the governance action service is finished and the status of the work.void
recordCompletionStatus
(CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets) Declare that all the processing for the governance action service is finished and the status of the work.void
recordCompletionStatus
(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets) Declare that all the processing for the governance action service is finished and the status of the work.void
recordCompletionStatus
(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets, String completionMessage) Declare that all the processing for the governance action service is finished and the status of the work.void
recordCompletionStatus
(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets, AuditLogMessageDefinition completionMessage) Declare that all the processing for the governance action service is finished and the status of the work.void
updateActionTargetStatus
(String actionTargetGUID, ActivityStatus status, Date startDate, Date completionDate, String completionMessage) Update the status of a specific action target.
-
Method Details
-
getEngineActionGUID
String getEngineActionGUID()Return the unique identifier of the engine action that this service request is associated with.- Returns:
- string guid
-
getRequestType
String getRequestType()Return the unique identifier of the asset being discovered.- Returns:
- string guid
-
getRequestParameters
Return the properties that hold the parameters used to drive the governance action service's processing.- Returns:
- property map
-
getRequesterUserId
String getRequesterUserId()Return the userId of the original person, process, service that requested this action.- Returns:
- string userId
-
getRequestSourceElements
List<RequestSourceElement> getRequestSourceElements()Return the list of metadata elements associated with the request to the governance action service. This list will not change during the lifetime of the service.- Returns:
- list of request source elements
-
getActionTargetElements
List<ActionTargetElement> getActionTargetElements()Return the list of elements that this governance action service should work on.- Returns:
- cached list of action target metadata elements
-
getMaxPageSize
int getMaxPageSize()Return the maximum number of elements that can be returned on a request.- Returns:
- int
-
updateActionTargetStatus
void updateActionTargetStatus(String actionTargetGUID, ActivityStatus status, Date startDate, Date completionDate, String completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Update the status of a specific action target. By default, these values are derived from the values for the governance action service. However, if the governance action service has to process name target elements, then setting the status on each individual target will show the progress of the governance action service.- Parameters:
actionTargetGUID
- unique identifier of the governance action service.status
- 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 target.completionMessage
- message to describe completion results or reasons for failure- Throws:
InvalidParameterException
- 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 store
-
recordCompletionStatus
void recordCompletionStatus(CompletionStatus status, List<String> outputGuards) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Declare that all the processing for the governance action service is finished and the status of the work.- Parameters:
status
- completion status enum valueoutputGuards
- optional guard strings for triggering subsequent action(s)- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance action service is not authorized to update the governance action service completion statusPropertyServerException
- there is a problem connecting to the metadata store
-
recordCompletionStatus
void recordCompletionStatus(CompletionStatus status, List<String> outputGuards, List<NewActionTarget> newActionTargets) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Declare that all the processing for the governance action service is finished and the status of the work.- Parameters:
status
- completion status enum valueoutputGuards
- optional guard strings for triggering subsequent action(s)newActionTargets
- list of action target names to GUIDs for the resulting governance action service- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance action service is not authorized to update the governance action service completion statusPropertyServerException
- there is a problem connecting to the metadata store
-
recordCompletionStatus
void recordCompletionStatus(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDeclare that all the processing for the governance action service is finished and the status of the work.- Parameters:
status
- completion status enum valueoutputGuards
- optional guard strings for triggering subsequent action(s)newRequestParameters
- additional request parameters. These override/augment any request parameters defined for the next invoked servicenewActionTargets
- list of action target names to GUIDs for the resulting governance action service- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance action service is not authorized to update the governance action service completion statusPropertyServerException
- there is a problem connecting to the metadata store
-
recordCompletionStatus
void recordCompletionStatus(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets, String completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDeclare that all the processing for the governance action service is finished and the status of the work.- Parameters:
status
- completion status enum valueoutputGuards
- optional guard strings for triggering subsequent action(s)newRequestParameters
- additional request parameters. These override/augment any request parameters defined for the next invoked servicenewActionTargets
- list of action target names to GUIDs for the resulting governance action servicecompletionMessage
- message to describe completion results or reasons for failure- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance action service is not authorized to update the governance action service completion statusPropertyServerException
- there is a problem connecting to the metadata store
-
recordCompletionStatus
void recordCompletionStatus(CompletionStatus status, List<String> outputGuards, Map<String, String> newRequestParameters, List<NewActionTarget> newActionTargets, AuditLogMessageDefinition completionMessage) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerExceptionDeclare that all the processing for the governance action service is finished and the status of the work.- Parameters:
status
- completion status enum valueoutputGuards
- optional guard strings for triggering subsequent action(s)newRequestParameters
- additional request parameters. These override/augment any request parameters defined for the next invoked servicenewActionTargets
- list of action target names to GUIDs for the resulting governance action servicecompletionMessage
- message to describe completion results or reasons for failure- Throws:
InvalidParameterException
- the completion status is nullUserNotAuthorizedException
- the governance action service is not authorized to update the governance action service completion statusPropertyServerException
- there is a problem connecting to the metadata store
-
getCompletionStatus
CompletionStatus getCompletionStatus()Return any completion status from the governance action service.- Returns:
- completion status enum
-
getConnectorConfigClient
ConnectorConfigClient getConnectorConfigClient()Return the client for managing the metadata associated with running connectors, governance engines and governance services.- Returns:
- connector context client
-
getDuplicateManagementClient
DuplicateManagementClient getDuplicateManagementClient()Return the client that manages deduplication.- Returns:
- deduplication manager
-