Changeset 10511


Ignore:
Timestamp:
2005-08-15T16:59:44+12:00 (19 years ago)
Author:
mdewsnip
Message:

Changed the names of some functions in RemoteGreenstoneServer and made almost all of the functions take the collection name as an argument (needed for authentication).

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r10374 r10511  
    506506                // If we're using a remote Greenstone server, upload the image
    507507                if (Gatherer.isGsdlRemote) {
    508                     RemoteGreenstoneServer.uploadCollectionFile(collection_image_file);
     508                    RemoteGreenstoneServer.uploadCollectionFile(Gatherer.c_man.getCollection().getName(), collection_image_file);
    509509                }
    510510                }
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r10460 r10511  
    721721        // If we're using a remote Greenstone server, upload the metadata file
    722722        if (Gatherer.isGsdlRemote) {
    723             RemoteGreenstoneServer.uploadCollectionFile(metadata_set_file);
     723            RemoteGreenstoneServer.uploadCollectionFile(collection.getName(), metadata_set_file);
    724724        }
    725725        }
     
    11091109        if (Gatherer.isGsdlRemote) {
    11101110        String relative_metadata_set_file_path = RemoteGreenstoneServer.getPathRelativeToDirectory(metadata_set_file.getAbsolutePath(), Gatherer.getGLIUserDirectoryPath());
    1111         RemoteGreenstoneServer.sendDeleteFileCommand(relative_metadata_set_file_path);
     1111        RemoteGreenstoneServer.deleteCollectionFile(collection.getName(), relative_metadata_set_file_path);
    11121112        }
    11131113    }
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r10376 r10511  
    149149        // ... but only if it is inside the collection and we haven't already downloaded it
    150150        if (file.getAbsolutePath().startsWith(Gatherer.getCollectDirectoryPath()) && file.length() == 0) {
    151         RemoteGreenstoneServer.downloadCollectionFile(file);
     151        RemoteGreenstoneServer.downloadCollectionFile(Gatherer.c_man.getCollection().getName(), file);
    152152        }
    153153    }
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataXMLFileManager.java

    r10480 r10511  
    384384
    385385        // Upload the files modified since last time, then reset the list
    386         RemoteGreenstoneServer.uploadCollectionFiles((File[]) modified_metadata_xml_files.toArray(new File[0]));
     386        RemoteGreenstoneServer.uploadCollectionFiles(Gatherer.c_man.getCollection().getName(), (File[]) modified_metadata_xml_files.toArray(new File[0]));
    387387        modified_metadata_xml_files.clear();
    388388    }
Note: See TracChangeset for help on using the changeset viewer.