public class SubjectAreaGraphHandler extends SubjectAreaHandler
invalidParameterHandler, oMRSAPIHelper, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
SubjectAreaGraphHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
OMRSAPIHelper oMRSAPIHelper,
RepositoryErrorHandler errorHandler)
Construct the Subject Area Graph Handler
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
getGraph(String userId,
String guid,
Date asOfTime,
String nodeFilterStr,
String lineFilterStr,
StatusFilter statusFilter,
Integer level)
Get the graph of nodes and Lines radiating out from a node.
|
protected SubjectAreaOMASAPIResponse |
getResponse(SubjectAreaOMASAPIResponse response)
Take an entityDetail response and map it to the appropriate Project orientated response
|
getRelationshipsFromGuid, validateGlossarySummaryDuringCreationpublic SubjectAreaGraphHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, OMRSAPIHelper oMRSAPIHelper, RepositoryErrorHandler errorHandler)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicesoMRSAPIHelper - omrs API helpererrorHandler - handler for repository service errorsprotected SubjectAreaOMASAPIResponse getResponse(SubjectAreaOMASAPIResponse response)
SubjectAreaHandlergetResponse in class SubjectAreaHandlerresponse - entityDetailResponsepublic SubjectAreaOMASAPIResponse getGraph(String userId, String guid, Date asOfTime, String nodeFilterStr, String lineFilterStr, StatusFilter statusFilter, Integer level)
Return the nodes and Lines that radiate out from the supplied node (identified by a GUID). The results are scoped by types of Lines, types of nodes and classifications as well as level.
userId - userId under which the request is performedguid - the starting point of the query.nodeFilterStr - Comma separated list of node names to include in the query results. Null means include
all entities found, irrespective of their type.lineFilterStr - comma separated list of line names to include in the query results. Null means include
all Lines found, irrespective of their type.asOfTime - Requests a historical query of the relationships for the entity. Null means return the
present values.statusFilter - By default only active instances are returned. Specify ALL to see all instance in any status.level - the number of the Lines (relationships) out from the starting node that the query will traverse to
gather results. If not specified then it defaults to 3.Copyright © 2018–2020 ODPi. All rights reserved.