public interface OMRSRepositoryHelper
| Modifier and Type | Method and Description |
|---|---|
InstanceProperties |
addBooleanPropertyToInstance(String sourceName,
InstanceProperties properties,
String propertyName,
boolean propertyValue,
String methodName)
Add the supplied property to an instance properties object.
|
EntityDetail |
addClassificationToEntity(String sourceName,
EntityDetail entity,
Classification newClassification,
String methodName)
Add a classification to an existing entity.
|
InstanceProperties |
addEnumPropertyToInstance(String sourceName,
InstanceProperties properties,
String propertyName,
int ordinal,
String symbolicName,
String description,
String methodName)
Add the supplied property to an instance properties object.
|
InstanceProperties |
addIntPropertyToInstance(String sourceName,
InstanceProperties properties,
String propertyName,
int propertyValue,
String methodName)
Add the supplied property to an instance properties object.
|
InstanceProperties |
addMapPropertyToInstance(String sourceName,
InstanceProperties properties,
String propertyName,
Map<String,Object> mapValues,
String methodName)
Add the supplied property to an instance properties object.
|
InstanceProperties |
addStringPropertyToInstance(String sourceName,
InstanceProperties properties,
String propertyName,
String propertyValue,
String methodName)
Add the supplied property to an instance properties object.
|
TypeDef |
applyPatch(String sourceName,
TypeDef originalTypeDef,
TypeDefPatch typeDefPatch)
Returns an updated TypeDef that has had the supplied patch applied.
|
EntityDetail |
deleteClassificationFromEntity(String sourceName,
EntityDetail entity,
String oldClassificationName,
String methodName)
Return a oldClassification with the header and type information filled out.
|
TypeDefGallery |
getActiveTypeDefGallery()
Return the list of typedefs active in the local repository.
|
TypeDefGallery |
getActiveTypesByWildCardName(String sourceName,
String typeDefName)
Return the TypeDefs identified by the name supplied by the caller.
|
AttributeTypeDef |
getAttributeTypeDef(String sourceName,
String attributeTypeDefGUID,
String methodName)
Return the AttributeTypeDef identified by the guid and name supplied by the caller.
|
AttributeTypeDef |
getAttributeTypeDef(String sourceName,
String attributeTypeDefGUID,
String attributeTypeDefName,
String methodName)
Return the AttributeTypeDef identified by the guid and name supplied by the caller.
|
AttributeTypeDef |
getAttributeTypeDefByName(String sourceName,
String attributeTypeDefName)
Return the AttributeTypeDef identified by the name supplied by the caller.
|
boolean |
getBooleanProperty(String sourceName,
String propertyName,
InstanceProperties properties,
String methodName)
Return the requested property or false if property is not found.
|
Classification |
getClassificationFromEntity(String sourceName,
EntityDetail entity,
String classificationName,
String methodName)
Return the names classification from an existing entity.
|
String |
getEnd1EntityGUID(Relationship relationship)
Return the guid of an entity linked to end 1 of the relationship.
|
String |
getEnd2EntityGUID(Relationship relationship)
Return the guid of an entity linked to end 2 of the relationship.
|
int |
getIntProperty(String sourceName,
String propertyName,
InstanceProperties properties,
String methodName)
Return the requested property or 0 if property is not found.
|
TypeDefGallery |
getKnownTypeDefGallery()
Return the list of typedefs known by the local repository.
|
Map<String,Object> |
getMapFromProperty(String sourceName,
String propertyName,
InstanceProperties properties,
String methodName)
Return the requested property or null if property is not found.
|
InstanceProperties |
getMapProperty(String sourceName,
String propertyName,
InstanceProperties properties,
String methodName)
Return the requested property or null if property is not found.
|
List<TypeDef> |
getMatchingActiveTypes(String sourceName,
String standard,
String organization,
String identifier,
String methodName)
Validate that the type's name is not null.
|
Classification |
getNewClassification(String sourceName,
String userName,
String typeName,
String entityTypeName,
ClassificationOrigin classificationOrigin,
String classificationOriginGUID,
InstanceProperties properties)
Return a classification with the header and type information filled out.
|
EntityDetail |
getNewEntity(String sourceName,
String metadataCollectionId,
InstanceProvenanceType provenanceType,
String userName,
String typeName,
InstanceProperties properties,
List<Classification> classifications)
Return a filled out entity.
|
EntityProxy |
getNewEntityProxy(String sourceName,
EntityDetail entity)
Generate an entity proxy from an entity and its TypeDef.
|
EntityProxy |
getNewEntityProxy(String sourceName,
String metadataCollectionId,
InstanceProvenanceType provenanceType,
String userName,
String typeName,
InstanceProperties properties,
List<Classification> classifications)
Return a filled out entity.
|
InstanceType |
getNewInstanceType(String sourceName,
TypeDefSummary typeDefSummary)
Return a relationship with the header and type information filled out.
|
Relationship |
getNewRelationship(String sourceName,
String metadataCollectionId,
InstanceProvenanceType provenanceType,
String userName,
String typeName,
InstanceProperties properties)
Return a filled out relationship which just needs the entity proxies added.
|
Classification |
getSkeletonClassification(String sourceName,
String userName,
String classificationTypeName,
String entityTypeName)
Return a classification with the header and type information filled out.
|
EntityDetail |
getSkeletonEntity(String sourceName,
String metadataCollectionId,
InstanceProvenanceType provenanceType,
String userName,
String typeName)
Return an entity with the header and type information filled out.
|
Relationship |
getSkeletonRelationship(String sourceName,
String metadataCollectionId,
InstanceProvenanceType provenanceType,
String userName,
String typeName)
Return a relationship with the header and type information filled out.
|
String |
getStringProperty(String sourceName,
String propertyName,
InstanceProperties properties,
String methodName)
Return the requested property or null if property is not found.
|
TypeDef |
getTypeDef(String sourceName,
String parameterName,
String typeDefGUID,
String methodName)
Return the TypeDef identified by the guid supplied by the caller.
|
TypeDef |
getTypeDef(String sourceName,
String guidParameterName,
String nameParameterName,
String typeDefGUID,
String typeDefName,
String methodName)
Return the TypeDef identified by the guid and name supplied by the caller.
|
TypeDef |
getTypeDefByName(String sourceName,
String typeDefName)
Return the TypeDef identified by the name supplied by the caller.
|
String |
getTypeName(InstanceAuditHeader instance)
Returns the type name from an instance (entity, relationship or classification).
|
Classification |
incrementVersion(String userId,
InstanceAuditHeader originalInstance,
Classification updatedInstance)
Changes the control information to reflect an update in an instance.
|
EntityDetail |
incrementVersion(String userId,
InstanceAuditHeader originalInstance,
EntityDetail updatedInstance)
Changes the control information to reflect an update in an instance.
|
Relationship |
incrementVersion(String userId,
InstanceAuditHeader originalInstance,
Relationship updatedInstance)
Changes the control information to reflect an update in an instance.
|
InstanceProperties |
mergeInstanceProperties(String sourceName,
InstanceProperties existingProperties,
InstanceProperties newProperties)
Merge two sets of instance properties.
|
boolean |
relatedEntity(String sourceName,
String entityGUID,
Relationship relationship)
Return boolean true if entity is linked by this relationship.
|
EntityDetail |
updateClassificationInEntity(String sourceName,
String userName,
EntityDetail entity,
Classification newClassification,
String methodName)
Replace an existing classification with a new one
|
TypeDefGallery getActiveTypeDefGallery()
TypeDefGallery getKnownTypeDefGallery()
TypeDef getTypeDefByName(String sourceName, String typeDefName)
sourceName - source of the request (used for logging)typeDefName - unique name for the TypeDefAttributeTypeDef getAttributeTypeDefByName(String sourceName, String attributeTypeDefName)
sourceName - source of the request (used for logging)attributeTypeDefName - unique name for the TypeDefTypeDefGallery getActiveTypesByWildCardName(String sourceName, String typeDefName)
sourceName - source of the request (used for logging)typeDefName - unique name for the TypeDefTypeDef getTypeDef(String sourceName, String parameterName, String typeDefGUID, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)parameterName - name of guid parametertypeDefGUID - unique identifier for the TypeDefmethodName - calling methodTypeErrorException - unknown or invalid typeAttributeTypeDef getAttributeTypeDef(String sourceName, String attributeTypeDefGUID, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)attributeTypeDefGUID - unique identifier for the AttributeTypeDefmethodName - calling methodTypeErrorException - unknown or invalid typeTypeDef getTypeDef(String sourceName, String guidParameterName, String nameParameterName, String typeDefGUID, String typeDefName, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)guidParameterName - name of guid parameternameParameterName - name of type name parametertypeDefGUID - unique identifier for the TypeDeftypeDefName - unique name for the TypeDefmethodName - calling methodTypeErrorException - unknown or invalid typeAttributeTypeDef getAttributeTypeDef(String sourceName, String attributeTypeDefGUID, String attributeTypeDefName, String methodName) throws TypeErrorException
sourceName - source of the request (used for logging)attributeTypeDefGUID - unique identifier for the AttributeTypeDefattributeTypeDefName - unique name for the AttributeTypeDefmethodName - calling methodTypeErrorException - unknown or invalid typeTypeDef applyPatch(String sourceName, TypeDef originalTypeDef, TypeDefPatch typeDefPatch) throws PatchErrorException, InvalidParameterException
sourceName - source of the TypeDef (used for logging)typeDefPatch - patch to applyoriginalTypeDef - typeDef to patchPatchErrorException - the patch is either badly formatted, or does not apply to the supplied TypeDefInvalidParameterException - the TypeDefPatch is null.List<TypeDef> getMatchingActiveTypes(String sourceName, String standard, String organization, String identifier, String methodName)
sourceName - source of the request (used for logging)standard - name of the standard, null means any.organization - name of the organization, null means any.identifier - identifier of the element in the standard, null means any.methodName - method receiving the callEntityDetail getSkeletonEntity(String sourceName, String metadataCollectionId, InstanceProvenanceType provenanceType, String userName, String typeName) throws TypeErrorException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the home metadata collectionprovenanceType - origin of the entityuserName - name of the creatortypeName - name of the typeTypeErrorException - the type name is not recognized.Classification getSkeletonClassification(String sourceName, String userName, String classificationTypeName, String entityTypeName) throws TypeErrorException
sourceName - source of the request (used for logging)userName - name of the creatorclassificationTypeName - name of the classification typeentityTypeName - name of the type for the entity that this classification is to be attached to.TypeErrorException - the type name is not recognized as a classification type.Relationship getSkeletonRelationship(String sourceName, String metadataCollectionId, InstanceProvenanceType provenanceType, String userName, String typeName) throws TypeErrorException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the home metadata collectionprovenanceType - origin type of the relationshipuserName - name of the creatortypeName - name of the relationship's typeTypeErrorException - the type name is not recognized as a relationship type.InstanceType getNewInstanceType(String sourceName, TypeDefSummary typeDefSummary) throws TypeErrorException
sourceName - source of the request (used for logging)typeDefSummary - details of the new typeTypeErrorException - the type name is not recognized as a relationship type.EntityDetail getNewEntity(String sourceName, String metadataCollectionId, InstanceProvenanceType provenanceType, String userName, String typeName, InstanceProperties properties, List<Classification> classifications) throws TypeErrorException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the home metadata collectionprovenanceType - origin of the entityuserName - name of the creatortypeName - name of the typeproperties - properties for the entityclassifications - list of classifications for the entityTypeErrorException - the type name is not recognized as an entity typeRelationship getNewRelationship(String sourceName, String metadataCollectionId, InstanceProvenanceType provenanceType, String userName, String typeName, InstanceProperties properties) throws TypeErrorException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the home metadata collectionprovenanceType - origin of the relationshipuserName - name of the creatortypeName - name of the typeproperties - properties for the relationshipTypeErrorException - the type name is not recognized as a relationship typeClassification getNewClassification(String sourceName, String userName, String typeName, String entityTypeName, ClassificationOrigin classificationOrigin, String classificationOriginGUID, InstanceProperties properties) throws TypeErrorException
sourceName - source of the request (used for logging)userName - name of the creatortypeName - name of the typeentityTypeName - name of the type for the entity that this classification is to be attached to.classificationOrigin - is this explicitly assigned or propagatedclassificationOriginGUID - if propagated this the GUID of the originproperties - properties for the classificationTypeErrorException - the type name is not recognized as a classification type.EntityDetail addClassificationToEntity(String sourceName, EntityDetail entity, Classification newClassification, String methodName)
sourceName - source of the request (used for logging)entity - entity to updatenewClassification - classification to updatemethodName - calling methodClassification getClassificationFromEntity(String sourceName, EntityDetail entity, String classificationName, String methodName) throws ClassificationErrorException
sourceName - source of the request (used for logging)entity - entity to updateclassificationName - classification to retrievemethodName - calling methodClassificationErrorException - the classification is not attached to the entityEntityDetail updateClassificationInEntity(String sourceName, String userName, EntityDetail entity, Classification newClassification, String methodName)
sourceName - source of the request (used for logging)userName - name of the editorentity - entity to updatenewClassification - classification to updatemethodName - calling methodEntityDetail deleteClassificationFromEntity(String sourceName, EntityDetail entity, String oldClassificationName, String methodName) throws ClassificationErrorException
sourceName - source of the request (used for logging)entity - entity to updateoldClassificationName - classification to removemethodName - calling methodClassificationErrorException - the entity was not classified with this classificationInstanceProperties mergeInstanceProperties(String sourceName, InstanceProperties existingProperties, InstanceProperties newProperties)
sourceName - source of the request (used for logging)existingProperties - current set of propertiesnewProperties - properties to add/updateRelationship incrementVersion(String userId, InstanceAuditHeader originalInstance, Relationship updatedInstance)
userId - user making the change.originalInstance - original instance before the changeupdatedInstance - new version of the instance that needs updatingClassification incrementVersion(String userId, InstanceAuditHeader originalInstance, Classification updatedInstance)
userId - user making the change.originalInstance - original instance before the changeupdatedInstance - new version of the instance that needs updatingEntityDetail incrementVersion(String userId, InstanceAuditHeader originalInstance, EntityDetail updatedInstance)
userId - user making the change.originalInstance - original instance before the changeupdatedInstance - new version of the instance that needs updatingEntityProxy getNewEntityProxy(String sourceName, EntityDetail entity) throws RepositoryErrorException
sourceName - source of the request (used for logging)entity - entity instanceRepositoryErrorException - logic error in the repository corrupted entityEntityProxy getNewEntityProxy(String sourceName, String metadataCollectionId, InstanceProvenanceType provenanceType, String userName, String typeName, InstanceProperties properties, List<Classification> classifications) throws TypeErrorException
sourceName - source of the request (used for logging)metadataCollectionId - unique identifier for the home metadata collectionprovenanceType - origin of the entityuserName - name of the creatortypeName - name of the typeproperties - properties for the entityclassifications - list of classifications for the entityTypeErrorException - the type name is not recognized as an entity typeboolean relatedEntity(String sourceName, String entityGUID, Relationship relationship)
sourceName - name of source requesting helpentityGUID - unique identifier of entityrelationship - relationship to testString getStringProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName)
sourceName - source of callpropertyName - name of requested propertyproperties - properties from the instance.methodName - method of callerInstanceProperties getMapProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName)
sourceName - source of callpropertyName - name of requested propertyproperties - properties from the instance.methodName - method of callerMap<String,Object> getMapFromProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName)
sourceName - source of callpropertyName - name of requested propertyproperties - properties from the instance.methodName - method of callerint getIntProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName)
sourceName - source of callpropertyName - name of requested propertyproperties - properties from the instance.methodName - method of callerboolean getBooleanProperty(String sourceName, String propertyName, InstanceProperties properties, String methodName)
sourceName - source of callpropertyName - name of requested propertyproperties - properties from the instance.methodName - method of callerInstanceProperties addStringPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, String propertyValue, String methodName)
sourceName - name of callerproperties - properties object to add property to may be null.propertyName - name of propertypropertyValue - value of propertymethodName - calling method nameInstanceProperties addIntPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, int propertyValue, String methodName)
sourceName - name of callerproperties - properties object to add property to may be null.propertyName - name of propertypropertyValue - value of propertymethodName - calling method nameInstanceProperties addBooleanPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, boolean propertyValue, String methodName)
sourceName - name of callerproperties - properties object to add property to may be null.propertyName - name of propertypropertyValue - value of propertymethodName - calling method nameInstanceProperties addEnumPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, int ordinal, String symbolicName, String description, String methodName)
sourceName - name of callerproperties - properties object to add property to may be null.propertyName - name of propertyordinal - numeric value of propertysymbolicName - String value of propertydescription - String description of property valuemethodName - calling method nameInstanceProperties addMapPropertyToInstance(String sourceName, InstanceProperties properties, String propertyName, Map<String,Object> mapValues, String methodName)
sourceName - name of callerproperties - properties object to add property to, may be null.propertyName - name of propertymapValues - contents of the mapmethodName - calling method nameString getTypeName(InstanceAuditHeader instance) throws RepositoryErrorException, InvalidParameterException
instance - instance to readInvalidParameterException - if the parameters are null or invalidRepositoryErrorException - if the instance does not have a type nameString getEnd1EntityGUID(Relationship relationship) throws RepositoryErrorException, InvalidParameterException
relationship - relationship to parseRepositoryErrorExceptionInvalidParameterExceptionString getEnd2EntityGUID(Relationship relationship) throws RepositoryErrorException, InvalidParameterException
relationship - relationship to parseRepositoryErrorExceptionInvalidParameterExceptionCopyright © 2018 ODPi. All rights reserved.