Interface SharedDataStore

    • Method Detail

      • addMetadataRecord

        void addMetadataRecord​(java.io.InputStream stream,
                               java.lang.String name)
                        throws DataStoreException
        Adds the root record.
        Parameters:
        stream - the stream
        name - the name of the root record
        Throws:
        DataStoreException - the data store exception
      • addMetadataRecord

        void addMetadataRecord​(java.io.File f,
                               java.lang.String name)
                        throws DataStoreException
        Adds the root record.
        Parameters:
        f - the file
        name - the name of the root record
        Throws:
        DataStoreException - the data store exception
      • getMetadataRecord

        DataRecord getMetadataRecord​(java.lang.String name)
        Retrieves the metadata record with the given name
        Parameters:
        name - the name of the record
        Returns:
      • metadataRecordExists

        boolean metadataRecordExists​(java.lang.String name)
        Checks if the metadata record with the name exists
        Parameters:
        name -
        Returns:
      • getAllMetadataRecords

        java.util.List<DataRecord> getAllMetadataRecords​(java.lang.String prefix)
        Gets the all root records.
        Returns:
        the all root records
      • deleteMetadataRecord

        boolean deleteMetadataRecord​(java.lang.String name)
        Deletes the root record represented by the given parameters.
        Parameters:
        name - the name of the root record
        Returns:
        success/failure
      • deleteAllMetadataRecords

        void deleteAllMetadataRecords​(java.lang.String prefix)
        Deletes all records matching the given prefix.
        Parameters:
        prefix - metadata type identifier
      • getRepositoryId

        @Nullable
        default @Nullable java.lang.String getRepositoryId()
        Returns the repository id (identifier for the repository in the DataStore)
        Returns:
        repository id
      • setRepositoryId

        default void setRepositoryId​(java.lang.String repositoryId)
                              throws DataStoreException
        Sets the repository id to identify repository in the DataStore
        Parameters:
        repositoryId -
        Throws:
        DataStoreException