Class EntityMappingSASCatalog2OMRS
- java.lang.Object
-
- org.odpi.openmetadata.connector.sas.repository.connector.mapping.EntityMappingSASCatalog2OMRS
-
public class EntityMappingSASCatalog2OMRS extends java.lang.ObjectClass that generically handles converting an sas EntityInstance object into an OMRS EntityDetail object.
-
-
Constructor Summary
Constructors Constructor Description EntityMappingSASCatalog2OMRS(RepositoryConnector sasRepositoryConnector, TypeDefStore typeDefStore, java.lang.Object attributeDefStore, SASCatalogObject instance, java.lang.String prefix, java.lang.String userId)Mapping itself must be initialized with various objects.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetDateFromISO8601String(java.lang.String isoDate)org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailgetEntityDetail()Retrieve the mapped OMRS EntityDetail from the sas EntityInstance used to construct this mapping object.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummarygetEntitySummary()Retrieve the mapped OMRS EntitySummary from the sas EntityInstance used to construct this mapping object.java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship>getRelationships(java.util.List<SASCatalogObject> relationships, java.lang.String relationshipTypeGUID, int fromRelationshipElement, java.lang.String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize)Retrieves relationships for this entity based on the provided criteria.
-
-
-
Constructor Detail
-
EntityMappingSASCatalog2OMRS
public EntityMappingSASCatalog2OMRS(RepositoryConnector sasRepositoryConnector, TypeDefStore typeDefStore, java.lang.Object attributeDefStore, SASCatalogObject instance, java.lang.String prefix, java.lang.String userId)
Mapping itself must be initialized with various objects.- Parameters:
sasRepositoryConnector- connectivity to an sas repositorytypeDefStore- the store of mapped TypeDefs for the Sas repositoryattributeDefStore- the store of mapped AttributeTypeDefs for the Sas repositoryinstance- the Sas entity to be mappedprefix- the prefix indicating a generated type (and GUID), or null if not generateduserId- the user through which to do the mapping
-
-
Method Detail
-
getEntitySummary
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary getEntitySummary() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve the mapped OMRS EntitySummary from the sas EntityInstance used to construct this mapping object.- Returns:
- EntitySummary
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- when unable to retrieve the EntitySummary
-
getEntityDetail
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getEntityDetail() throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorExceptionRetrieve the mapped OMRS EntityDetail from the sas EntityInstance used to construct this mapping object.- Returns:
- EntityDetail
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- when unable to retrieve the EntityDetail
-
getRelationships
public java.util.List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship> getRelationships(java.util.List<SASCatalogObject> relationships, java.lang.String relationshipTypeGUID, int fromRelationshipElement, java.lang.String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
Retrieves relationships for this entity based on the provided criteria.- Parameters:
relationships- the Catalog objects for which we wish to return relationshipsrelationshipTypeGUID- the OMRS GUID of the relationship TypeDef to which to limit the resultsfromRelationshipElement- the starting element for multiple pages of relationshipssequencingProperty- the property by which to order results (or null)sequencingOrder- the ordering sequence to use for ordering resultspageSize- the number of results to include per page- Returns:
List<Relationship>- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- when unable to retrieve the mapped Relationships
-
getDateFromISO8601String
public java.util.Date getDateFromISO8601String(java.lang.String isoDate)
-
-