Class EntityMappingSASCatalog2OMRS


  • public class EntityMappingSASCatalog2OMRS
    extends java.lang.Object
    Class that generically handles converting an sas EntityInstance object into an OMRS EntityDetail object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getDateFromISO8601String​(java.lang.String isoDate)  
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getEntityDetail()
      Retrieve the mapped OMRS EntityDetail from the sas EntityInstance used to construct this mapping object.
      org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntitySummary getEntitySummary()
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 repository
        typeDefStore - the store of mapped TypeDefs for the Sas repository
        attributeDefStore - the store of mapped AttributeTypeDefs for the Sas repository
        instance - the Sas entity to be mapped
        prefix - the prefix indicating a generated type (and GUID), or null if not generated
        userId - 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.RepositoryErrorException
        Retrieve 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.RepositoryErrorException
        Retrieve 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 relationships
        relationshipTypeGUID - the OMRS GUID of the relationship TypeDef to which to limit the results
        fromRelationshipElement - the starting element for multiple pages of relationships
        sequencingProperty - the property by which to order results (or null)
        sequencingOrder - the ordering sequence to use for ordering results
        pageSize - 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)