public class RepositoryHandler extends Object
| Constructor and Description |
|---|
RepositoryHandler(String serviceName,
String serverName,
OMRSRepositoryConnector repositoryConnector)
Constructor takes information about the repository and context of request for error logging.
|
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
getRelationshipsOfACertainType(List<Relationship> retrievedRelationships,
String typeName)
Scan the complete list of relationships and extract those that match the supplied type name.
|
List<Relationship> |
retrieveAllRelationships(String userId,
String entityTypeName,
String entityGUID,
int startingElement,
int pageSize)
Returns the list of relationships attached to the identified asset entity from the open metadata repositories.
|
EntityDetail |
retrieveEntity(String userId,
String typeName,
String guid)
Returns the entity object corresponding to the supplied asset GUID.
|
List<Relationship> |
retrieveRelationships(String userId,
String entityTypeName,
String entityGUID,
String relationshipTypeGUID,
int startingElement,
int pageSize)
Returns the list of relationships attached to the identified asset entity from the open metadata repositories.
|
public RepositoryHandler(String serviceName, String serverName, OMRSRepositoryConnector repositoryConnector)
serviceName - name of this serviceserverName - name of this serverrepositoryConnector - connector to the property server.public List<Relationship> getRelationshipsOfACertainType(List<Relationship> retrievedRelationships, String typeName)
retrievedRelationships - full list of relationships attached to the asset.typeName - relationship type namepublic EntityDetail retrieveEntity(String userId, String typeName, String guid) throws InvalidParameterException, UnrecognizedGUIDException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.typeName - name of the type that the retrieved entity is expected to be for.guid - the unique id for the entity within the property server.InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied GUID is not recognized by the metadata repository.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<Relationship> retrieveAllRelationships(String userId, String entityTypeName, String entityGUID, int startingElement, int pageSize) throws InvalidParameterException, UnrecognizedGUIDException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.entityTypeName - type of entity that these relationships are connected to.entityGUID - the unique id for the starting entity within the property server.startingElement - starting element to return (may be so many elements that paging is needed).pageSize - Maximum number of elements to return (may be so many elements that paging is needed).InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied GUID is not recognized by the metadata repository.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<Relationship> retrieveRelationships(String userId, String entityTypeName, String entityGUID, String relationshipTypeGUID, int startingElement, int pageSize) throws InvalidParameterException, UnrecognizedGUIDException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.entityTypeName - type of entity that these relationships are connected to.entityGUID - the unique id for the starting entity within the property server.startingElement - starting element to return (may be so many elements that paging is needed).pageSize - Maximum number of elements to return (may be so many elements that paging is needed).InvalidParameterException - one of the parameters is null or invalid.UnrecognizedGUIDException - the supplied GUID is not recognized by the metadata repository.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.