Class FunctionalBackupService


  • public class FunctionalBackupService
    extends java.lang.Object
    Functional backupService
    • Method Detail

      • saveCollectionAndSequence

        public void saveCollectionAndSequence​(GUID eipMaster,
                                              java.lang.String eventCode,
                                              FunctionalAdminCollections collection,
                                              java.lang.String objectIdentifier)
                                       throws VitamException
        Parameters:
        objectIdentifier -
        eipMaster - logbookMaster
        eventCode - logbook evType
        collection - collection
        Throws:
        VitamException - vitamException
      • getBackupFileName

        public static java.lang.String getBackupFileName​(FunctionalAdminCollections functionalAdminCollections,
                                                         int tenant,
                                                         java.lang.Integer sequence)
      • saveFile

        public void saveFile​(java.io.InputStream inputStream,
                             GUID eipMaster,
                             java.lang.String eventCode,
                             DataCategory dataCategory,
                             java.lang.String fileName)
                      throws VitamException
        save file and log in logbook
        Parameters:
        inputStream -
        eipMaster -
        eventCode -
        dataCategory -
        fileName -
        Throws:
        VitamException
      • getName

        public java.lang.String getName​(DataCategory dataCategory,
                                        int tenant,
                                        java.lang.String fileName)
        Parameters:
        dataCategory -
        tenant -
        fileName -
        Returns:
      • getCurrentCollection

        public com.mongodb.client.MongoCursor getCurrentCollection​(FunctionalAdminCollections collections,
                                                                   int tenant)
        get the documents from functional admin collections
        Parameters:
        collections -
        tenant -
        Returns:
        MongoCursor