public class GovernanceEngineRESTServices extends Object
| Constructor and Description |
|---|
GovernanceEngineRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
claimGovernanceAction(String serverName,
String userId,
String governanceActionGUID,
NullRequestBody requestBody)
Request that execution of a governance action is allocated to the caller.
|
VoidResponse |
classifyMetadataElementInStore(String serverName,
String userId,
String metadataElementGUID,
String classificationName,
NewClassificationRequestBody requestBody)
Add a new classification to the metadata element.
|
GUIDResponse |
createIncidentReport(String serverName,
String userId,
IncidentReportRequestBody requestBody)
Create an incident report to capture the situation detected by this governance action service.
|
GUIDResponse |
createMetadataElementInStore(String serverName,
String userId,
NewMetadataElementRequestBody requestBody)
Create a new metadata element in the metadata store.
|
GUIDResponse |
createRelatedElementsInStore(String serverName,
String userId,
NewRelatedElementsRequestBody requestBody)
Create a relationship between two metadata elements.
|
VoidResponse |
deleteMetadataElementInStore(String serverName,
String userId,
String metadataElementGUID,
NullRequestBody requestBody)
Delete a specific metadata element.
|
VoidResponse |
deleteRelatedElementsInStore(String serverName,
String userId,
String relationshipGUID,
NullRequestBody requestBody)
Delete a relationship between two metadata elements.
|
OpenMetadataElementsResponse |
findMetadataElements(String serverName,
String userId,
int startFrom,
int pageSize,
FindRequestBody requestBody)
Return a list of metadata elements that match the supplied criteria.
|
OpenMetadataElementsResponse |
findMetadataElementsWithString(String serverName,
String userId,
int startFrom,
int pageSize,
SearchStringRequestBody requestBody)
Retrieve the metadata elements that contain the requested string.
|
RelatedMetadataElementsListResponse |
findRelationshipsBetweenMetadataElements(String serverName,
String userId,
int startFrom,
int pageSize,
FindRequestBody requestBody)
Return a list of relationships that match the requested conditions.
|
GovernanceActionElementsResponse |
getActiveClaimedGovernanceActions(String serverName,
String userId,
String governanceEngineGUID,
int startFrom,
int pageSize)
Retrieve the governance actions that are still in process and that have been claimed by this caller's userId.
|
GovernanceActionElementResponse |
getGovernanceAction(String serverName,
String userId,
String governanceActionGUID)
Request the status and properties of an executing governance action request.
|
OpenMetadataElementResponse |
getMetadataElementByGUID(String serverName,
String userId,
String elementGUID)
Retrieve the metadata element using its unique identifier.
|
ConnectionResponse |
getOutTopicConnection(String serverName,
String userId,
String callerId)
Return the connection object for the Governance Engine OMAS's out topic.
|
RelatedMetadataElementListResponse |
getRelatedMetadataElements(String serverName,
String userId,
String elementGUID,
String relationshipTypeName,
int startFrom,
int pageSize)
Retrieve the metadata elements connected to the supplied element.
|
GUIDResponse |
initiateGovernanceAction(String serverName,
String userId,
String governanceEngineName,
GovernanceActionRequestBody requestBody)
Create a governance action in the metadata store which will trigger the governance action service
associated with the supplied request type.
|
GUIDResponse |
initiateGovernanceActionProcess(String serverName,
String userId,
GovernanceActionProcessRequestBody requestBody)
Using the named governance action process as a template, initiate a chain of governance actions.
|
VoidResponse |
logAssetAuditMessage(String serverName,
String userId,
String assetGUID,
String governanceService,
String message)
Log an audit message about this asset.
|
VoidResponse |
reclassifyMetadataElementInStore(String serverName,
String userId,
String metadataElementGUID,
String classificationName,
UpdatePropertiesRequestBody requestBody)
Update the properties of a classification that is currently attached to a specific metadata element.
|
VoidResponse |
recordCompletionStatus(String serverName,
String userId,
String governanceActionGUID,
CompletionStatusRequestBody requestBody)
Declare that all of the processing for the governance action service is finished and the status of the work.
|
VoidResponse |
unclassifyMetadataElementInStore(String serverName,
String userId,
String metadataElementGUID,
String classificationName,
NullRequestBody requestBody)
Remove the named classification from a specific metadata element.
|
VoidResponse |
updateActionTargetStatus(String serverName,
String userId,
ActionTargetStatusRequestBody requestBody)
Update the status of a specific action target.
|
VoidResponse |
updateClassificationStatusInStore(String serverName,
String userId,
String metadataElementGUID,
String classificationName,
UpdateEffectivityDatesRequestBody requestBody)
Update the effectivity dates of a specific classification attached to a metadata element.
|
VoidResponse |
updateGovernanceActionStatus(String serverName,
String userId,
String governanceActionGUID,
StatusRequestBody requestBody)
Update the status of the governance action - providing the caller is permitted.
|
VoidResponse |
updateMetadataElementInStore(String serverName,
String userId,
String metadataElementGUID,
UpdatePropertiesRequestBody requestBody)
Update the properties of a specific metadata element.
|
VoidResponse |
updateMetadataElementStatusInStore(String serverName,
String userId,
String metadataElementGUID,
UpdateStatusRequestBody requestBody)
Update the status of specific metadata element.
|
VoidResponse |
updateRelatedElementsInStore(String serverName,
String userId,
String relationshipGUID,
UpdatePropertiesRequestBody requestBody)
Update the properties associated with a relationship.
|
VoidResponse |
updateRelatedElementsStatusInStore(String serverName,
String userId,
String relationshipGUID,
UpdateEffectivityDatesRequestBody requestBody)
Update the effectivity dates of a specific relationship between metadata elements.
|
public GovernanceEngineRESTServices()
public ConnectionResponse getOutTopicConnection(String serverName, String userId, String callerId)
serverName - name of the service to route the request to.userId - identifier of calling user.callerId - unique identifier of the callerpublic VoidResponse logAssetAuditMessage(String serverName, String userId, String assetGUID, String governanceService, String message)
serverName - name of server instance to route request touserId - userId of user making request.assetGUID - unique identifier for asset.governanceService - name of governance servicemessage - message to logpublic OpenMetadataElementResponse getMetadataElementByGUID(String serverName, String userId, String elementGUID)
serverName - name of server instance to route request touserId - caller's userIdelementGUID - unique identifier for the metadata elementpublic OpenMetadataElementsResponse findMetadataElementsWithString(String serverName, String userId, int startFrom, int pageSize, SearchStringRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - searchString to retrievepublic RelatedMetadataElementListResponse getRelatedMetadataElements(String serverName, String userId, String elementGUID, String relationshipTypeName, int startFrom, int pageSize)
serverName - name of server instance to route request touserId - caller's userIdelementGUID - unique identifier for the starting metadata elementrelationshipTypeName - type name of relationships to follow (or null for all)startFrom - paging start pointpageSize - maximum results that can be returnedpublic OpenMetadataElementsResponse findMetadataElements(String serverName, String userId, int startFrom, int pageSize, FindRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - properties defining the search criteriapublic RelatedMetadataElementsListResponse findRelationshipsBetweenMetadataElements(String serverName, String userId, int startFrom, int pageSize, FindRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdstartFrom - paging start pointpageSize - maximum results that can be returnedrequestBody - properties defining the search criteriapublic GUIDResponse createMetadataElementInStore(String serverName, String userId, NewMetadataElementRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties for the new elementpublic VoidResponse updateMetadataElementInStore(String serverName, String userId, String metadataElementGUID, UpdatePropertiesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updaterequestBody - new propertiespublic VoidResponse updateMetadataElementStatusInStore(String serverName, String userId, String metadataElementGUID, UpdateStatusRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updaterequestBody - new status values - use null to leave as ispublic VoidResponse deleteMetadataElementInStore(String serverName, String userId, String metadataElementGUID, NullRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updaterequestBody - null request bodypublic VoidResponse classifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, NewClassificationRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - name of the classification to add (if the classification is already present then use reclassify)requestBody - properties to store in the new classification. These must conform to the valid properties associated with the
classification namepublic VoidResponse reclassifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, UpdatePropertiesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - unique name of the classification to updaterequestBody - new properties for the classificationpublic VoidResponse updateClassificationStatusInStore(String serverName, String userId, String metadataElementGUID, String classificationName, UpdateEffectivityDatesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - unique name of the classification to updaterequestBody - the dates when this element is active / inactive - null for no restrictionpublic VoidResponse unclassifyMetadataElementInStore(String serverName, String userId, String metadataElementGUID, String classificationName, NullRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updateclassificationName - unique name of the classification to removerequestBody - null request bodypublic GUIDResponse createRelatedElementsInStore(String serverName, String userId, NewRelatedElementsRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - the properties of the relationshippublic VoidResponse updateRelatedElementsInStore(String serverName, String userId, String relationshipGUID, UpdatePropertiesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrelationshipGUID - unique identifier of the relationship to updaterequestBody - new properties for the relationshippublic VoidResponse updateRelatedElementsStatusInStore(String serverName, String userId, String relationshipGUID, UpdateEffectivityDatesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrelationshipGUID - unique identifier of the relationship to updaterequestBody - the dates when this element is active / inactive - null for no restrictionpublic VoidResponse deleteRelatedElementsInStore(String serverName, String userId, String relationshipGUID, NullRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrelationshipGUID - unique identifier of the relationship to deleterequestBody - null request bodypublic VoidResponse updateActionTargetStatus(String serverName, String userId, ActionTargetStatusRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - relationship propertiespublic VoidResponse updateGovernanceActionStatus(String serverName, String userId, String governanceActionGUID, StatusRequestBody requestBody)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestrequestBody - new status ordinalpublic VoidResponse recordCompletionStatus(String serverName, String userId, String governanceActionGUID, CompletionStatusRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdgovernanceActionGUID - unique identifier of the governance action to updaterequestBody - completion status enum value, optional guard strings for triggering subsequent action(s) plus
a list of additional elements to add to the action targets for the next phasepublic GUIDResponse initiateGovernanceAction(String serverName, String userId, String governanceEngineName, GovernanceActionRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdgovernanceEngineName - name of the governance engine that should execute the requestrequestBody - properties for the governance action and to pass to the governance action servicepublic GUIDResponse initiateGovernanceActionProcess(String serverName, String userId, GovernanceActionProcessRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties to initiate the new instance of the processpublic GUIDResponse createIncidentReport(String serverName, String userId, IncidentReportRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties for the new incident reportpublic GovernanceActionElementResponse getGovernanceAction(String serverName, String userId, String governanceActionGUID)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.public VoidResponse claimGovernanceAction(String serverName, String userId, String governanceActionGUID, NullRequestBody requestBody)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.public GovernanceActionElementsResponse getActiveClaimedGovernanceActions(String serverName, String userId, String governanceEngineGUID, int startFrom, int pageSize)
serverName - name of server instance to route request touserId - userId of callergovernanceEngineGUID - unique identifier of governance enginestartFrom - starting from elementpageSize - maximum elements to returnCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.