Class ModelStorage

    • Constructor Detail

      • ModelStorage

        public ModelStorage()
    • Method Detail

      • connect

        public abstract void connect()
                              throws StorageException
        Connects to the storage destination, is supposed to be called before every other operation.
        Throws:
        StorageException - the storage exception
      • close

        public abstract void close()
        Closes the connector and cleans things up
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • storeModel

        public abstract URI storeModel​(Change modelChange)
                                throws StorageException
        Puts a model into the storage system and returns the URI.
        Parameters:
        modelChange - the model change
        Returns:
        the uri to the model
        Throws:
        StorageException - the storage exception
      • linkModelVersion

        public abstract URI linkModelVersion​(String fileId,
                                             String sourceVersionId,
                                             String targetVersionId)
                                      throws StorageException
        Links the source Version to the target Version (The target Version should exist already).
        Parameters:
        fileId - the file id
        sourceVersionId - the source version id
        targetVersionId - the target version id
        Returns:
        the uri
        Throws:
        StorageException - the storage exception
      • storeModelChangeSet

        public List<URI> storeModelChangeSet​(ChangeSet changeSet)
                                      throws StorageException
        Puts a whole ChangeSet of models into the storage system.
        Parameters:
        changeSet - the change set
        Returns:
        the list of stored changes
        Throws:
        StorageException - the storage exception