@RestController
@RequestMapping(value="/servers/{serverName}/open-metadata/access-services/governance-engine/users/{userId}")
public class GovernanceEngineOMASResource
extends Object
| Constructor and Description |
|---|
GovernanceEngineOMASResource() |
| 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.
|
GovernanceActionElementsResponse |
getActiveGovernanceActions(String serverName,
String userId,
int startFrom,
int pageSize)
Retrieve the governance actions that are still in process.
|
GovernanceActionElementResponse |
getGovernanceAction(String serverName,
String userId,
String governanceActionGUID)
Request the status and properties of an executing governance action request.
|
GovernanceActionElementsResponse |
getGovernanceActions(String serverName,
String userId,
int startFrom,
int pageSize)
Retrieve the governance actions that are known to the server.
|
OpenMetadataElementResponse |
getMetadataElementByGUID(String serverName,
String userId,
String elementGUID)
Retrieve the metadata element using its unique identifier.
|
OpenMetadataElementResponse |
getMetadataElementByUniqueName(String serverName,
String userId,
NameRequestBody requestBody)
Retrieve the metadata element using its unique name (typically the qualified name).
|
GUIDResponse |
getMetadataElementGUIDByUniqueName(String serverName,
String userId,
NameRequestBody requestBody)
Retrieve the unique identifier of a metadata element using its unique name (typically the qualified name).
|
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 startingAtEnd,
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 an 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.
|
@GetMapping(path="/topics/out-topic-connection/{callerId}")
public ConnectionResponse getOutTopicConnection(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String callerId)
serverName - name of the service to route the request to.userId - identifier of calling user.callerId - unique identifier of the caller@PostMapping(path="/assets/{assetGUID}/log-records/{governanceService}")
public VoidResponse logAssetAuditMessage(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String assetGUID,
@PathVariable
String governanceService,
@RequestBody
String message)
serverName - name of server instance to route request touserId - userId of user making request.assetGUID - unique identifier for asset.governanceService - unique name for governance service.message - message to log@GetMapping(path="/open-metadata-store/metadata-elements/{elementGUID}")
public OpenMetadataElementResponse getMetadataElementByGUID(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String elementGUID)
serverName - name of server instance to route request touserId - caller's userIdelementGUID - unique identifier for the metadata element@PostMapping(path="/open-metadata-store/metadata-elements/by-unique-name") public OpenMetadataElementResponse getMetadataElementByUniqueName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - unique name for the metadata element@PostMapping(path="/open-metadata-store/metadata-elements/guid-by-unique-name") public GUIDResponse getMetadataElementGUIDByUniqueName(@PathVariable String serverName, @PathVariable String userId, @RequestBody NameRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - unique name for the metadata element@PostMapping(path="/open-metadata-store/metadata-elements/by-search-string") public OpenMetadataElementsResponse findMetadataElementsWithString(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody 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 retrieve@GetMapping(path="/open-metadata-store/related-elements/{elementGUID}/type/{relationshipTypeName}")
public RelatedMetadataElementListResponse getRelatedMetadataElements(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String elementGUID,
@PathVariable
String relationshipTypeName,
@RequestParam
int startingAtEnd,
@RequestParam
int startFrom,
@RequestParam
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)startingAtEnd - indicates which end to retrieve from (0 is "either end"; 1 is end1; 2 is end 2)startFrom - paging start pointpageSize - maximum results that can be returned@PostMapping(path="/open-metadata-store/metadata-elements/by-search-specification") public OpenMetadataElementsResponse findMetadataElements(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody 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 criteria@PostMapping(path="/open-metadata-store/related-elements/by-search-specification") public RelatedMetadataElementsListResponse findRelationshipsBetweenMetadataElements(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize, @RequestBody 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 criteria@PostMapping(path="/open-metadata-store/metadata-elements/new") public GUIDResponse createMetadataElementInStore(@PathVariable String serverName, @PathVariable String userId, @RequestBody NewMetadataElementRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties for the new element@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/update-properties")
public VoidResponse updateMetadataElementInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@RequestBody
UpdatePropertiesRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updaterequestBody - new properties@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/update-status")
public VoidResponse updateMetadataElementStatusInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@RequestBody
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 is@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/delete")
public VoidResponse deleteMetadataElementInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdmetadataElementGUID - unique identifier of the metadata element to updaterequestBody - null request body@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/new")
public VoidResponse classifyMetadataElementInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@PathVariable
String classificationName,
@RequestBody
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 name@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/update-properties")
public VoidResponse reclassifyMetadataElementInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@PathVariable
String classificationName,
@RequestBody
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 classification@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/update-status")
public VoidResponse updateClassificationStatusInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@PathVariable
String classificationName,
@RequestBody
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 restriction@PostMapping(path="/open-metadata-store/metadata-elements/{metadataElementGUID}/classifications/{classificationName}/delete")
public VoidResponse unclassifyMetadataElementInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String metadataElementGUID,
@PathVariable
String classificationName,
@RequestBody(required=false)
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 body@PostMapping(path="/open-metadata-store/related-elements/new") public GUIDResponse createRelatedElementsInStore(@PathVariable String serverName, @PathVariable String userId, @RequestBody NewRelatedElementsRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - the properties of the relationship@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/update-properties")
public VoidResponse updateRelatedElementsInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String relationshipGUID,
@RequestBody
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 relationship@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/update-status")
public VoidResponse updateRelatedElementsStatusInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String relationshipGUID,
@RequestBody
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 restriction@PostMapping(path="/open-metadata-store/related-elements/{relationshipGUID}/delete")
public VoidResponse deleteRelatedElementsInStore(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String relationshipGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrelationshipGUID - unique identifier of the relationship to deleterequestBody - null request body@PostMapping(path="/governance-actions/action-targets/update") public VoidResponse updateActionTargetStatus(@PathVariable String serverName, @PathVariable String userId, @RequestBody ActionTargetStatusRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - relationship properties@PostMapping(path="/governance-actions/{governanceActionGUID}/status/update")
public VoidResponse updateGovernanceActionStatus(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceActionGUID,
@RequestBody
StatusRequestBody requestBody)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action requestrequestBody - new status ordinal@PostMapping(path="/governance-actions/{governanceActionGUID}/completion-status")
public VoidResponse recordCompletionStatus(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceActionGUID,
@RequestBody
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 phase@PostMapping(path="/governance-engines/{governanceEngineName}/governance-actions/initiate")
public GUIDResponse initiateGovernanceAction(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceEngineName,
@RequestBody
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 service@PostMapping(path="/governance-action-processes/initiate") public GUIDResponse initiateGovernanceActionProcess(@PathVariable String serverName, @PathVariable String userId, @RequestBody GovernanceActionProcessRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties to initiate the new instance of the process@PostMapping(path="/incident-reports") public GUIDResponse createIncidentReport(@PathVariable String serverName, @PathVariable String userId, @RequestBody IncidentReportRequestBody requestBody)
serverName - name of server instance to route request touserId - caller's userIdrequestBody - properties for the new incident report@GetMapping(path="/governance-actions/{governanceActionGUID}")
public GovernanceActionElementResponse getGovernanceAction(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceActionGUID)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.@PostMapping(path="/governance-actions/{governanceActionGUID}/claim")
public VoidResponse claimGovernanceAction(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceActionGUID,
@RequestBody(required=false)
NullRequestBody requestBody)
serverName - name of server instance to route request touserId - identifier of calling usergovernanceActionGUID - identifier of the governance action request.@GetMapping(path="/governance-actions") public GovernanceActionElementsResponse getGovernanceActions(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize)
serverName - name of server instance to route request touserId - userId of callerstartFrom - starting from elementpageSize - maximum elements to return@GetMapping(path="/governance-actions/active") public GovernanceActionElementsResponse getActiveGovernanceActions(@PathVariable String serverName, @PathVariable String userId, @RequestParam int startFrom, @RequestParam int pageSize)
serverName - name of server instance to route request touserId - userId of callerstartFrom - starting from elementpageSize - maximum elements to return@GetMapping(path="/governance-engines/{governanceEngineGUID}/active-governance-actions")
public GovernanceActionElementsResponse getActiveClaimedGovernanceActions(@PathVariable
String serverName,
@PathVariable
String userId,
@PathVariable
String governanceEngineGUID,
@RequestParam
int startFrom,
@RequestParam
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.