public class GovernanceActionProcessClient extends Object implements GovernanceActionProcessInterface
| Constructor and Description |
|---|
GovernanceActionProcessClient(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceActionProcessClient(String serverName,
String serverPlatformURLRoot,
GovernanceEngineRESTClient restClient,
int maxPageSize)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceActionProcessClient(String serverName,
String serverPlatformURLRoot,
String serverUserId,
String serverPassword)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createGovernanceActionProcess(String userId,
GovernanceActionProcessProperties processProperties,
ProcessStatus initialStatus)
Create a new metadata element to represent a governance action process.
|
String |
createGovernanceActionType(String userId,
GovernanceActionTypeProperties actionTypeProperties)
Create a new metadata element to represent a governance action type.
|
List<GovernanceActionProcessElement> |
findGovernanceActionProcesses(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of governance action process metadata elements that contain the search string.
|
List<GovernanceActionTypeElement> |
findGovernanceActionTypes(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of governance action type metadata elements that contain the search string.
|
GovernanceActionTypeElement |
getFirstActionType(String userId,
String processGUID)
Return the governance action type that is the first step in a governance action process.
|
GovernanceActionProcessElement |
getGovernanceActionProcessByGUID(String userId,
String processGUID)
Retrieve the governance action process metadata element with the supplied unique identifier.
|
List<GovernanceActionProcessElement> |
getGovernanceActionProcessesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of governance action process metadata elements with a matching qualified or display name.
|
GovernanceActionTypeElement |
getGovernanceActionTypeByGUID(String userId,
String actionTypeGUID)
Retrieve the governance action type metadata element with the supplied unique identifier.
|
List<GovernanceActionTypeElement> |
getGovernanceActionTypesByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of governance action type metadata elements with a matching qualified or display name.
|
List<NextGovernanceActionTypeElement> |
getNextGovernanceActionTypes(String userId,
String actionTypeGUID,
int startFrom,
int pageSize)
Return the lust of next action type defined for the governance action process.
|
void |
publishGovernanceActionProcess(String userId,
String processGUID)
Update the zones for the asset so that it becomes visible to consumers.
|
void |
removeFirstActionType(String userId,
String processGUID)
Remove the link between a governance process and that governance action type that defines its first step.
|
void |
removeGovernanceActionProcess(String userId,
String processGUID)
Remove the metadata element representing a governance action process.
|
void |
removeGovernanceActionType(String userId,
String actionTypeGUID)
Remove the metadata element representing a governance action type.
|
void |
removeNextActionType(String userId,
String actionLinkGUID)
Remove a follow on step from a governance action process.
|
void |
setupFirstActionType(String userId,
String processGUID,
String actionTypeGUID,
String guard)
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)
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 |
updateGovernanceActionProcess(String userId,
String processGUID,
boolean isMergeUpdate,
ProcessStatus processStatus,
GovernanceActionProcessProperties processProperties)
Update the metadata element representing a governance action process.
|
void |
updateGovernanceActionType(String userId,
String actionTypeGUID,
boolean isMergeUpdate,
GovernanceActionTypeProperties actionTypeProperties)
Update the metadata element representing a governance action type.
|
void |
updateNextActionType(String userId,
String nextActionLinkGUID,
String guard,
boolean mandatoryGuard,
boolean ignoreMultipleTriggers)
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.
|
void |
withdrawGovernanceActionProcess(String userId,
String processGUID)
Update the zones for the asset so that it is no longer visible to consumers.
|
public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, String serverUserId, String serverPassword) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversserverUserId - caller's userId embedded in all HTTP requestsserverPassword - caller's userId embedded in all HTTP requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceActionProcessClient(String serverName, String serverPlatformURLRoot, GovernanceEngineRESTClient restClient, int maxPageSize) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversrestClient - pre-initialized REST clientmaxPageSize - pre-initialized parameter limitInvalidParameterException - there is a problem with the information about the remote OMASpublic String createGovernanceActionProcess(String userId, GovernanceActionProcessProperties processProperties, ProcessStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceActionProcess in interface GovernanceActionProcessInterfaceuserId - calling userprocessProperties - properties about the process to storeinitialStatus - status value for the new process (default = ACTIVE)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)public void updateGovernanceActionProcess(String userId, String processGUID, boolean isMergeUpdate, ProcessStatus processStatus, GovernanceActionProcessProperties processProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceActionProcess in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the metadata element to updateisMergeUpdate - should the new properties be merged with existing properties (true) or completely replace them (false)?processStatus - new status for the processprocessProperties - new properties for the metadata elementInvalidParameterException - 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 publishGovernanceActionProcess(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
publishGovernanceActionProcess in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the metadata element to publishInvalidParameterException - 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 withdrawGovernanceActionProcess(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
withdrawGovernanceActionProcess in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the metadata element to withdrawInvalidParameterException - 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 removeGovernanceActionProcess(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeGovernanceActionProcess in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the metadata element to removeInvalidParameterException - 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<GovernanceActionProcessElement> findGovernanceActionProcesses(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findGovernanceActionProcesses in interface GovernanceActionProcessInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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<GovernanceActionProcessElement> getGovernanceActionProcessesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceActionProcessesByName in interface GovernanceActionProcessInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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 GovernanceActionProcessElement getGovernanceActionProcessByGUID(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceActionProcessByGUID in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the requested metadata elementInvalidParameterException - 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 createGovernanceActionType(String userId, GovernanceActionTypeProperties actionTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceActionType in interface GovernanceActionProcessInterfaceuserId - calling useractionTypeProperties - properties about the process to storeInvalidParameterException - 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, GovernanceActionTypeProperties actionTypeProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceActionType in interface GovernanceActionProcessInterfaceuserId - 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)?actionTypeProperties - new properties for the metadata elementInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeGovernanceActionType in interface GovernanceActionProcessInterfaceuserId - calling useractionTypeGUID - unique identifier of the metadata element to removeInvalidParameterException - 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<GovernanceActionTypeElement> findGovernanceActionTypes(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findGovernanceActionTypes in interface GovernanceActionProcessInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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<GovernanceActionTypeElement> getGovernanceActionTypesByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceActionTypesByName in interface GovernanceActionProcessInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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 GovernanceActionTypeElement getGovernanceActionTypeByGUID(String userId, String actionTypeGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceActionTypeByGUID in interface GovernanceActionProcessInterfaceuserId - calling useractionTypeGUID - unique identifier of the governance action typeInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupFirstActionType in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the governance action processactionTypeGUID - unique identifier of the governance action typeguard - optional guard for the first governance service to runInvalidParameterException - 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 GovernanceActionTypeElement getFirstActionType(String userId, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getFirstActionType in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the governance action processInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeFirstActionType in interface GovernanceActionProcessInterfaceuserId - calling userprocessGUID - unique identifier of the governance action processInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
setupNextActionType in interface GovernanceActionProcessInterfaceuserId - 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)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)public void updateNextActionType(String userId, String nextActionLinkGUID, String guard, boolean mandatoryGuard, boolean ignoreMultipleTriggers) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateNextActionType in interface GovernanceActionProcessInterfaceuserId - 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)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)public List<NextGovernanceActionTypeElement> getNextGovernanceActionTypes(String userId, String actionTypeGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getNextGovernanceActionTypes in interface GovernanceActionProcessInterfaceuserId - calling useractionTypeGUID - unique identifier of the current governance action typestartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeNextActionType in interface GovernanceActionProcessInterfaceuserId - calling useractionLinkGUID - unique identifier of the relationship between the governance action typesInvalidParameterException - 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.