Changeset 10380


Ignore:
Timestamp:
2005-08-01T15:06:39+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now uploads and deletes metadata sets on the server when metadata sets are added/removed to a collection (using remote building).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r10379 r10380  
    701701        try {
    702702        Gatherer.f_man.getQueue().copyFile(external_metadata_set_file, metadata_set_file, null);
     703
     704        // If we're using a remote Greenstone server, upload the metadata file
     705        if (Gatherer.isGsdlRemote) {
     706            RemoteGreenstoneServer.uploadCollectionFile(metadata_set_file);
     707        }
    703708        }
    704709        catch (Exception ex) {
     
    10831088        // Unload it from the MetadataSetManager
    10841089        MetadataSetManager.unloadMetadataSet(metadata_set);
     1090
     1091        // If we're using a remote Greenstone server, delete the metadata file on the server
     1092        if (Gatherer.isGsdlRemote) {
     1093        String relative_metadata_set_file_path = RemoteGreenstoneServer.getPathRelativeToDirectory(metadata_set_file.getAbsolutePath(), Gatherer.getGLIUserDirectoryPath());
     1094        RemoteGreenstoneServer.sendDeleteFileCommand(relative_metadata_set_file_path);
     1095        }
    10851096    }
    10861097    }
Note: See TracChangeset for help on using the changeset viewer.