Class RexViewHandler
java.lang.Object
org.odpi.openmetadata.viewservices.rex.handlers.RexViewHandler
The RexViewHandler is initialised with the server the call should be sent to.
The handler exposes methods for functionality for the repository explorer view
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for RexViewHandlerRexViewHandler
(List<ResourceEndpointConfig> resourceEndpoints) Constructor for RexViewHandler with configured resourceEndpoints -
Method Summary
Modifier and TypeMethodDescriptionfindEntities
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String searchText, String entityTypeName, List<String> classificationNames, Date asOfTime, String methodName) Retrieve entities (by text search) from the repository serverfindRelationships
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String searchText, String relationshipTypeName, Date asOfTime, String methodName) Retrieve relationships (by text search) from the repository servergetEntity
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, Date asOfTime, String methodName) Retrieve entity (by GUID) from the repository servergetRelationship
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String relationshipGUID, Date asOfTime, String methodName) Retrieve relationship (by GUID) from the repository servergetResourceEndpoints
(String userId, String methodName) getResourceEndpoints - returns a list of the configured resource endpoints.getTypeExplorer
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String methodName) Retrieve type information from the repository serverpreTraversal
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, int depth, long asOfTime, String methodName) Retrieve the neighborhood surrounding an entity for pre-traversal.traversal
(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, int depth, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<String> classificationNames, long asOfTime, String methodName) Retrieve the neighborhood surrounding an entity.
-
Constructor Details
-
RexViewHandler
public RexViewHandler()Default constructor for RexViewHandler -
RexViewHandler
Constructor for RexViewHandler with configured resourceEndpoints- Parameters:
resourceEndpoints
- - list of resource endpoint configuration objects for this view service
-
-
Method Details
-
getResourceEndpoints
getResourceEndpoints - returns a list of the configured resource endpoints. Does not include discovered resource endpoints.- Parameters:
userId
- userId under which the request is performedmethodName
- The name of the method being invoked- Returns:
- The resource endpoints that have been configured for the view service
-
getTypeExplorer
public TypeExplorer getTypeExplorer(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String methodName) throws RexViewServiceException Retrieve type information from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificmethodName
- The name of the method being invoked- Returns:
- response containing the TypeExplorer object. Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
getEntity
public RexExpandedEntityDetail getEntity(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, Date asOfTime, String methodName) throws RexViewServiceException Retrieve entity (by GUID) from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificentityGUID
- the GUID of the entity to retrieveasOfTime
- return the entity at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- response containing the RexExpandedEntityDetail object. Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
getRelationship
public RexExpandedRelationship getRelationship(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String relationshipGUID, Date asOfTime, String methodName) throws RexViewServiceException Retrieve relationship (by GUID) from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificrelationshipGUID
- the GUID of the relationship to retrieveasOfTime
- return the relationship at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- response containing the RexExpandedEntityDetail object. Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
findEntities
public Map<String,RexEntityDigest> findEntities(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String searchText, String entityTypeName, List<String> classificationNames, Date asOfTime, String methodName) throws RexViewServiceException Retrieve entities (by text search) from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificsearchText
- the search expression that entities must matchentityTypeName
- the name of a type used to filter the entity searchclassificationNames
- classification names to limit find byasOfTime
- return the entities at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- a map of entity digests for the entities that matched the search Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
findRelationships
public Map<String,RexRelationshipAndEntitiesDigest> findRelationships(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String searchText, String relationshipTypeName, Date asOfTime, String methodName) throws RexViewServiceException Retrieve relationships (by text search) from the repository server- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificsearchText
- the search expression that relationships must matchrelationshipTypeName
- the name of a type used to filter the relationship searchasOfTime
- return the relationships at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- a map of relationship digests for the relationships that matched the search Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
preTraversal
public RexPreTraversal preTraversal(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, int depth, long asOfTime, String methodName) throws RexViewServiceException Retrieve the neighborhood surrounding an entity for pre-traversal.- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificentityGUID
- the identity of the entity from which to traversedepth
- the depth to which the method should traverseasOfTime
- return the entities and relationships at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- a RexTraversal object containing the neighborhood information Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-
traversal
public RexTraversal traversal(String userId, String repositoryServerName, String platformName, boolean enterpriseOption, String entityGUID, int depth, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<String> classificationNames, long asOfTime, String methodName) throws RexViewServiceException Retrieve the neighborhood surrounding an entity.- Parameters:
userId
- userId under which the request is performedrepositoryServerName
- The name of the repository server to interrogateplatformName
- The name of the platform running the repository server to interrogateenterpriseOption
- Whether the query is at cohort level or server specificentityGUID
- the identity of the entity from which to traversedepth
- the depth to which the method should traverseentityTypeGUIDs
- the GUIDs of entity types to filter the neighborhoodrelationshipTypeGUIDs
- the GUIDs of relationship types to filter the neighborhoodclassificationNames
- the names of classification types to filter the neighborhoodasOfTime
- return the entities and relationships at this date, if null then now.methodName
- The name of the method being invoked- Returns:
- a RexTraversal object containing the neighborhood information Exceptions
- Throws:
RexViewServiceException
- an error was detected and details are reported in the exception
-