public class EntitiesCreatorHelper extends Object
| Constructor and Description |
|---|
EntitiesCreatorHelper(OMRSRepositoryConnector enterpriseConnector,
OMRSAuditLog auditLog) |
| Modifier and Type | Method and Description |
|---|---|
EntityDetail |
addEntity(String typeName,
String qualifiedName,
InstanceProperties properties)
Returns the entity of the given type with the specified qualified name; if it doesn't already exists, it is created with the provided instance properties
|
EntityDetail |
addEntity(String typeName,
String qualifiedName,
InstanceProperties properties,
List<Classification> classifications)
Returns the entity of the given type with the specified qualified name; if it doesn't already exists, it is created with the provided instance properties
|
Relationship |
addRelationship(String relationshipType,
String guid1,
String guid2,
String source,
InstanceProperties properties)
Returns the relationship of the given type with the specified qualified name; if it doesn't already exists, it is created with the provided instance properties
|
Classification |
buildClassification(String classificationTypeName,
String entityTypeName,
InstanceProperties classificationProperties) |
EntityDetail |
getEntity(String guid) |
EntityDetail |
getEntity(String typeName,
String qualifiedName)
Returns the entity of the specified type retrieved based on qualified name
|
List<Relationship> |
getRelationships(String relationshipType,
String guid2) |
public EntitiesCreatorHelper(OMRSRepositoryConnector enterpriseConnector, OMRSAuditLog auditLog)
public EntityDetail getEntity(String typeName, String qualifiedName) throws Exception
typeName - name of the type def for the entity to be retrievedqualifiedName - qualified name property of the entity to be retrievedExceptionpublic List<Relationship> getRelationships(String relationshipType, String guid2) throws InvalidParameterException, RepositoryErrorException, TypeDefNotKnownException, UserNotAuthorizedException, TypeErrorException, EntityNotKnownException, PropertyErrorException, PagingErrorException, FunctionNotSupportedException
public EntityDetail addEntity(String typeName, String qualifiedName, InstanceProperties properties) throws Exception
typeName - is the entity typequalifiedName - - qualified name property of the entity, unique for the same entity typeproperties - specific to the entity typeExceptionpublic EntityDetail addEntity(String typeName, String qualifiedName, InstanceProperties properties, List<Classification> classifications) throws Exception
typeName - is the entity typequalifiedName - - qualified name property of the entity, unique for the same entity typeproperties - specific to the entity typeclassifications - classifications to be added to entityExceptionpublic Relationship addRelationship(String relationshipType, String guid1, String guid2, String source, InstanceProperties properties) throws Exception
relationshipType - is the relationship type nameguid1 - first end of the relationshipguid2 - second end of the relationshipsource - name of the relationship creatorproperties - specific to the relationship typeExceptionpublic Classification buildClassification(String classificationTypeName, String entityTypeName, InstanceProperties classificationProperties) throws Exception
Exceptionpublic EntityDetail getEntity(String guid) throws RepositoryErrorException, UserNotAuthorizedException, EntityProxyOnlyException, InvalidParameterException, EntityNotKnownException
Copyright © 2018 ODPi. All rights reserved.