Class EntityProxyMapping
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.crux.mapping.AbstractMapping
-
- org.odpi.egeria.connectors.juxt.crux.mapping.InstanceAuditHeaderMapping
-
- org.odpi.egeria.connectors.juxt.crux.mapping.InstanceHeaderMapping
-
- org.odpi.egeria.connectors.juxt.crux.mapping.EntitySummaryMapping
-
- org.odpi.egeria.connectors.juxt.crux.mapping.EntityProxyMapping
-
public class EntityProxyMapping extends EntitySummaryMapping
Maps the properties of EntityProxies between persistence and objects.
-
-
Field Summary
Fields Modifier and Type Field Description static StringENTITY_PROXY_ONLY_MARKER-
Fields inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.EntitySummaryMapping
INSTANCE_REF_PREFIX, N_CLASSIFICATIONS
-
Fields inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.InstanceHeaderMapping
cruxDoc, instanceHeader
-
Fields inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.InstanceAuditHeaderMapping
CREATE_TIME, CURRENT_STATUS, METADATA_COLLECTION_ID, TYPE_DEF_CATEGORY, TYPE_DEF_GUIDS, UPDATE_TIME, VERSION
-
Fields inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.AbstractMapping
cruxConnector, mapper
-
-
Constructor Summary
Constructors Constructor Description EntityProxyMapping(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument cruxDoc)Construct a mapping from a Crux map (to map to an Egeria representation).EntityProxyMapping(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy)Construct a mapping from an EntityDetail (to map to a Crux representation).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfromDoc()Translate the provided Crux representation into an Egeria representation.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxygetFromDoc(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument doc)Translate the provided Crux representation of an entity into an EntityProxy.static StringgetReference(String guid)Retrieve the canonical reference to the entity summary with the specified GUID.static booleanisOnlyAProxy(crux.api.CruxDocument doc)Indicates whether the provided map represents only an EntityProxy (true) or a full EntityDetail (false).protected crux.api.CruxDocument.BuildertoDoc()Translate the provided Egeria representation into a Crux map.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxytoEgeria()Map from Crux to Egeria.-
Methods inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.InstanceHeaderMapping
getGuidReference, getReference, toCrux, trimGuidFromReference
-
Methods inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.InstanceAuditHeaderMapping
buildDoc, buildDoc, fromDoc, fromDoc, isKnownBaseProperty
-
Methods inherited from class org.odpi.egeria.connectors.juxt.crux.mapping.AbstractMapping
getDeserializedValue, getEmbeddedSerializedForm, getKeyword, getKeyword
-
-
-
-
Field Detail
-
ENTITY_PROXY_ONLY_MARKER
public static final String ENTITY_PROXY_ONLY_MARKER
-
-
Constructor Detail
-
EntityProxyMapping
public EntityProxyMapping(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy entityProxy)
Construct a mapping from an EntityDetail (to map to a Crux representation).- Parameters:
cruxConnector- connectivity to CruxentityProxy- from which to map
-
EntityProxyMapping
public EntityProxyMapping(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument cruxDoc)
Construct a mapping from a Crux map (to map to an Egeria representation).- Parameters:
cruxConnector- connectivity to CruxcruxDoc- from which to map
-
-
Method Detail
-
toEgeria
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy toEgeria()
Map from Crux to Egeria.- Overrides:
toEgeriain classEntitySummaryMapping- Returns:
- EntityProxy
- See Also:
EntityProxyMapping(CruxOMRSRepositoryConnector, CruxDocument)
-
toDoc
protected crux.api.CruxDocument.Builder toDoc()
Translate the provided Egeria representation into a Crux map.- Overrides:
toDocin classEntitySummaryMapping- Returns:
- CruxDocument.Builder from which to build the document
-
fromDoc
protected void fromDoc()
Translate the provided Crux representation into an Egeria representation.- Overrides:
fromDocin classEntitySummaryMapping
-
getFromDoc
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityProxy getFromDoc(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument doc)
Translate the provided Crux representation of an entity into an EntityProxy.- Parameters:
cruxConnector- connectivity to the Crux environmentdoc- containing the Crux representation of the entity- Returns:
- EntityProxy
-
getReference
public static String getReference(String guid)
Retrieve the canonical reference to the entity summary with the specified GUID.- Parameters:
guid- of the entity summary to reference- Returns:
- String giving the Crux reference to this entity summary document
-
isOnlyAProxy
public static boolean isOnlyAProxy(crux.api.CruxDocument doc)
Indicates whether the provided map represents only an EntityProxy (true) or a full EntityDetail (false).- Parameters:
doc- containing the Crux representation- Returns:
- boolean
-
-