Class GovernanceActionEngine
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.GovernanceActionEngine
GovernanceActionEngine provides the interface for a governance action engine. The governance action engine runs inside a governance action server.
The governance action server provides the server runtime environment for the governance action engine along with the interfaces for
configuring the governance action engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract GovernanceActionStatusgetGovernanceActionStatus(String userId, String governanceActionGUID) Request the status of an executing governance action request.abstract StringinitiateGovernanceAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<String> actionTargetGUIDs, Date startTime, String requestType, Map<String, String> requestParameters) Create a governance action in the metadata store which will trigger the governance action service associated with the supplied request type.
-
Constructor Details
-
GovernanceActionEngine
public GovernanceActionEngine()
-
-
Method Details
-
initiateGovernanceAction
public abstract String initiateGovernanceAction(String userId, String qualifiedName, int domainIdentifier, String displayName, String description, List<String> requestSourceGUIDs, List<String> actionTargetGUIDs, Date startTime, String requestType, Map<String, String> requestParameters) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionCreate a governance action in the metadata store which will trigger the governance action service associated with the supplied request type. The governance action remains to act as a record of the actions taken for auditing.- Parameters:
userId- calling userqualifiedName- 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 serviceactionTargetGUIDs- list of action targets for the resulting governance action servicestartTime- future start time or null for "as soon as possible".requestType- request type to identify the governance action service to runrequestParameters- properties to pass to the governance action service- Returns:
- unique identifier of the governance action
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- null qualified nameorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- this governance action service is not authorized to create a governance actionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem with the metadata store
-
getGovernanceActionStatus
public abstract GovernanceActionStatus getGovernanceActionStatus(String userId, String governanceActionGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Request the status of an executing governance action request.- Parameters:
userId- identifier of calling usergovernanceActionGUID- identifier of the governance action request.- Returns:
- status enum
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- user not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there was a problem detected by the metadata store.
-