Changeset 19230 for gli/trunk


Ignore:
Timestamp:
2009-04-23T15:14:38+12:00 (15 years ago)
Author:
ak19
Message:

For remote GS server actions, calls getLoadedGroupQualifiedCollectionName() instead of getLoadedCollectionName()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/file/FileManager.java

    r17612 r19230  
    171171        file_queue.addJob(id, source, source_nodes, target, target_node, type);
    172172        if (Gatherer.isGsdlRemote) {
    173             String collection_name = CollectionManager.getLoadedCollectionName();
     173            String collection_name = CollectionManager.getLoadedGroupQualifiedCollectionName(true);
    174174
    175175            // Perform the appropriate action based on the job type (RemoteGreenstoneServer will queue)
     
    274274        if (file.getAbsolutePath().startsWith(Gatherer.getCollectDirectoryPath()) && file.length() == 0) {
    275275            if (Gatherer.remoteGreenstoneServer.downloadCollectionFile(
    276                                  CollectionManager.getLoadedCollectionName(), file).equals("")) {
     276                                 CollectionManager.getLoadedGroupQualifiedCollectionName(true), file).equals("")) {
    277277            // Something has gone wrong downloading the file
    278278            return;
     
    350350                if (Gatherer.isGsdlRemote) {
    351351                Gatherer.remoteGreenstoneServer.uploadCollectionFile(
    352                                          CollectionManager.getLoadedCollectionName(), folder_file);
     352                                         CollectionManager.getLoadedGroupQualifiedCollectionName(true), folder_file);
    353353                }
    354354            }
     
    357357                if (Gatherer.isGsdlRemote) {
    358358                Gatherer.remoteGreenstoneServer.newCollectionDirectory(
    359                                          CollectionManager.getLoadedCollectionName(), folder_file);
     359                                         CollectionManager.getLoadedGroupQualifiedCollectionName(true), folder_file);
    360360                }
    361361            }
     
    418418        if (Gatherer.isGsdlRemote) {
    419419            Gatherer.remoteGreenstoneServer.moveCollectionFile(
    420                              CollectionManager.getLoadedCollectionName(), collection_file, new_collection_file);
     420                             CollectionManager.getLoadedGroupQualifiedCollectionName(true), collection_file, new_collection_file);
    421421        }
    422422        }
     
    468468        if (Gatherer.isGsdlRemote) {
    469469        Gatherer.remoteGreenstoneServer.uploadFilesIntoCollection(
    470                          CollectionManager.getLoadedCollectionName(), new File[] { new_file }, target_directory);
     470                         CollectionManager.getLoadedGroupQualifiedCollectionName(true), new File[] { new_file }, target_directory);
    471471        }
    472472        // do a replace of old file with new file
Note: See TracChangeset for help on using the changeset viewer.