public class EntityMappingStore extends Object
| Constructor and Description |
|---|
EntityMappingStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMapping(TypeDef omrsTypeDef,
Class mappingClass,
IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String userId)
Adds an entity mapping for the provided TypeDef, using the provided EntityMapping Java class and repository details.
|
List<EntityMapping> |
getAllMappings()
Retrieves all entity mappings that are implemented for this repository.
|
EntityMapping |
getDefaultEntityMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String userId)
Retrieves the entity mapping that can be applied by default to any entity.
|
EntityMapping |
getMappingByIgcAssetDisplayName(String assetDisplayName)
Retrieves the entity mapping that applies to the provided IGC asset type, by its display name.
|
EntityMapping |
getMappingByIgcAssetTypeAndPrefix(String assetType,
String prefix)
Retrieves the entity mapping that applies to the provided IGC asset type and prefix (if any).
|
EntityMapping |
getMappingByOmrsTypeGUID(String guid)
Retrieves the entity mapping by GUID of the OMRS TypeDef.
|
EntityMapping |
getMappingByOmrsTypeName(String name)
Retrieves the entity mapping that applies to the provided OMRS entity type name.
|
List<EntityMapping> |
getMappingsByIgcAssetType(String assetType)
Retrieves all entity mappings that could be applied to the provided IGC asset type.
|
List<TypeDef> |
getTypeDefs()
Retrieves a listing of all TypeDefs for which entity mappings have been implemented.
|
public List<TypeDef> getTypeDefs()
List<TypeDef>public boolean addMapping(TypeDef omrsTypeDef, Class mappingClass, IGCOMRSRepositoryConnector igcomrsRepositoryConnector, String userId)
omrsTypeDef - the OMRS TypeDef for which the entity mapping is implementedmappingClass - the Java class providing the EntityMappingigcomrsRepositoryConnector - connectivity via an IGC OMRS Repository ConnectoruserId - the userId through which to apply the mappingpublic EntityMapping getMappingByOmrsTypeGUID(String guid)
guid - of the OMRS TypeDefpublic List<EntityMapping> getMappingsByIgcAssetType(String assetType)
assetType - IGC asset typeList<EntityMapping>public EntityMapping getMappingByIgcAssetDisplayName(String assetDisplayName)
assetDisplayName - IGC asset type's display namepublic EntityMapping getMappingByIgcAssetTypeAndPrefix(String assetType, String prefix)
assetType - IGC asset typeprefix - the prefix for the entity, or null if no prefixpublic EntityMapping getMappingByOmrsTypeName(String name)
name - of the OMRS entity typepublic List<EntityMapping> getAllMappings()
List<EntityMapping>public EntityMapping getDefaultEntityMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector, String userId)
igcomrsRepositoryConnector - connectivity through an IGC OMRS Repository ConnectoruserId - userId through which to retrieve the mappingCopyright © 2018–2019 ODPi. All rights reserved.