Class TimeKeeperRESTServices
java.lang.Object
org.odpi.openmetadata.tokencontroller.TokenController
org.odpi.openmetadata.viewservices.timekeeper.server.TimeKeeperRESTServices
The TimeKeeperRESTServices provides the server-side implementation of the Time Keeper Open Metadata
View Service (OMVS). This interface provides access to context events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContextEvent(String serverName, String urlMarker, NewElementRequestBody requestBody) Create a contextEvent.createContextEventFromTemplate(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent a contextEvent using an existing metadata element as a template.deleteContextEvent(String serverName, String urlMarker, String contextEventGUID, DeleteElementRequestBody requestBody) Delete a contextEvent.detachContextEventEvidence(String serverName, String urlMarker, String contextEventGUID, String evidenceGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element that provides evidence that this context event is real.detachContextEventImpact(String serverName, String urlMarker, String contextEventGUID, String impactedElementGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element that is impacted by the event.detachContextEventTimelineEffect(String serverName, String urlMarker, String timelineAffectedElementGUID, String contextEventGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element whose data is impacted by the event.detachDependentContextEvents(String serverName, String urlMarker, String parentContextEventGUID, String childContextEventGUID, DeleteRelationshipRequestBody requestBody) Detach two dependent context events from one another.detachRelatedContextEvents(String serverName, String urlMarker, String contextEventOneGUID, String contextEventTwoGUID, DeleteRelationshipRequestBody requestBody) Detach two context events that are related to one another.findContextEvents(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.getContextEventByGUID(String serverName, String urlMarker, String contextEventGUID, GetRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.getContextEventsByName(String serverName, String urlMarker, FilterRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.linkContextEventEvidence(String serverName, String urlMarker, String contextEventGUID, String evidenceGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element that provides evidence that this context event is real.linkContextEventImpact(String serverName, String urlMarker, String contextEventGUID, String impactedElementGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element that is impacted by this event.linkContextEventTimelineEffect(String serverName, String urlMarker, String timelineAffectedElementGUID, String contextEventGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element whose data is impacted by this event.linkDependentContextEvents(String serverName, String urlMarker, String parentContextEventGUID, String childContextEventGUID, NewRelationshipRequestBody requestBody) Connect two context events to show that one is dependent on another.linkRelatedContextEvents(String serverName, String urlMarker, String contextEventOneGUID, String contextEventTwoGUID, NewRelationshipRequestBody requestBody) Connect two context events to show that one is related to the other.updateContextEvent(String serverName, String urlMarker, String contextEventGUID, UpdateElementRequestBody requestBody) Update the properties of a contextEvent.Methods inherited from class org.odpi.openmetadata.tokencontroller.TokenController
getUser
-
Constructor Details
-
TimeKeeperRESTServices
public TimeKeeperRESTServices()Default constructor
-
-
Method Details
-
createContextEvent
public GUIDResponse createContextEvent(String serverName, String urlMarker, NewElementRequestBody requestBody) Create a contextEvent.- Parameters:
serverName- name of called server.urlMarker- view service URL markerrequestBody- properties for the contextEvent.- Returns:
- unique identifier of the newly created element InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
createContextEventFromTemplate
public GUIDResponse createContextEventFromTemplate(String serverName, String urlMarker, TemplateRequestBody requestBody) Create a new metadata element to represent a contextEvent using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new element.- Parameters:
serverName- calling userurlMarker- view service URL markerrequestBody- properties that override the template- Returns:
- unique identifier of the new metadata element InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
updateContextEvent
public BooleanResponse updateContextEvent(String serverName, String urlMarker, String contextEventGUID, UpdateElementRequestBody requestBody) Update the properties of a contextEvent.- Parameters:
serverName- name of called server.urlMarker- view service URL markercontextEventGUID- unique identifier of the contextEvent (returned from create)requestBody- properties for the new element.- Returns:
- boolean or InvalidParameterException one of the parameters is invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkDependentContextEvents
public VoidResponse linkDependentContextEvents(String serverName, String urlMarker, String parentContextEventGUID, String childContextEventGUID, NewRelationshipRequestBody requestBody) Connect two context events to show that one is dependent on another.- Parameters:
serverName- name of called serverurlMarker- view service URL markerparentContextEventGUID- unique identifier of the parent context event.childContextEventGUID- unique identifier of the child context event.requestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachDependentContextEvents
public VoidResponse detachDependentContextEvents(String serverName, String urlMarker, String parentContextEventGUID, String childContextEventGUID, DeleteRelationshipRequestBody requestBody) Detach two dependent context events from one another.- Parameters:
serverName- name of called serverurlMarker- view service URL markerparentContextEventGUID- unique identifier of the parent context event.childContextEventGUID- unique identifier of the child context event.requestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkRelatedContextEvents
public VoidResponse linkRelatedContextEvents(String serverName, String urlMarker, String contextEventOneGUID, String contextEventTwoGUID, NewRelationshipRequestBody requestBody) Connect two context events to show that one is related to the other.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventOneGUID- unique identifier of the context event at end 1contextEventTwoGUID- unique identifier of the context event at end 2requestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachRelatedContextEvents
public VoidResponse detachRelatedContextEvents(String serverName, String urlMarker, String contextEventOneGUID, String contextEventTwoGUID, DeleteRelationshipRequestBody requestBody) Detach two context events that are related to one another.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventOneGUID- unique identifier of the context event at end 1contextEventTwoGUID- unique identifier of the context event at end 2requestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkContextEventEvidence
public VoidResponse linkContextEventEvidence(String serverName, String urlMarker, String contextEventGUID, String evidenceGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element that provides evidence that this context event is real.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventGUID- unique identifier of the context eventevidenceGUID- unique identifier of the element representing the evidencerequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachContextEventEvidence
public VoidResponse detachContextEventEvidence(String serverName, String urlMarker, String contextEventGUID, String evidenceGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element that provides evidence that this context event is real.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventGUID- unique identifier of the context eventevidenceGUID- unique identifier of the element representing the evidencerequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkContextEventImpact
public VoidResponse linkContextEventImpact(String serverName, String urlMarker, String contextEventGUID, String impactedElementGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element that is impacted by this event.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventGUID- unique identifier of the context eventimpactedElementGUID- unique identifier of the element that is impacted by the eventrequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachContextEventImpact
public VoidResponse detachContextEventImpact(String serverName, String urlMarker, String contextEventGUID, String impactedElementGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element that is impacted by the event.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventGUID- unique identifier of the context eventimpactedElementGUID- unique identifier of the element that is impacted by the eventrequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
linkContextEventTimelineEffect
public VoidResponse linkContextEventTimelineEffect(String serverName, String urlMarker, String timelineAffectedElementGUID, String contextEventGUID, NewRelationshipRequestBody requestBody) Connect a context event to an element whose data is impacted by this event.- Parameters:
serverName- name of called serverurlMarker- view service URL markertimelineAffectedElementGUID- unique identifier of the element whose data is impacted by the context eventcontextEventGUID- unique identifier of the context eventrequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
detachContextEventTimelineEffect
public VoidResponse detachContextEventTimelineEffect(String serverName, String urlMarker, String timelineAffectedElementGUID, String contextEventGUID, DeleteRelationshipRequestBody requestBody) Detach a context event from an element whose data is impacted by the event.- Parameters:
serverName- name of called serverurlMarker- view service URL markertimelineAffectedElementGUID- unique identifier of the element whose data is impacted by the context eventcontextEventGUID- unique identifier of the context eventrequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
deleteContextEvent
public VoidResponse deleteContextEvent(String serverName, String urlMarker, String contextEventGUID, DeleteElementRequestBody requestBody) Delete a contextEvent.- Parameters:
serverName- name of called serverurlMarker- view service URL markercontextEventGUID- unique identifier of the element to deleterequestBody- description of the relationship.- Returns:
- void or InvalidParameterException one of the parameters is null or invalid. PropertyServerException a problem retrieving information from the property server(s). UserNotAuthorizedException the requesting user is not authorized to issue this request.
-
getContextEventsByName
public OpenMetadataRootElementsResponse getContextEventsByName(String serverName, String urlMarker, FilterRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markerrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
getContextEventByGUID
public OpenMetadataRootElementResponse getContextEventByGUID(String serverName, String urlMarker, String contextEventGUID, GetRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL markercontextEventGUID- unique identifier of the required elementrequestBody- string to find in the properties- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-
findContextEvents
public OpenMetadataRootElementsResponse findContextEvents(String serverName, String urlMarker, SearchStringRequestBody requestBody) Retrieve the list of contextEvent metadata elements that contain the search string.- Parameters:
serverName- name of the service to route the request tourlMarker- view service URL marker- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException a problem reported in the open metadata server(s)
-