Ignore:
Timestamp:
2008-02-12T16:13:13+13:00 (16 years ago)
Author:
davidb
Message:

Changes to GLI to support export into Fedora. New utility called flisvn diff gems/MetadataSetManager.java

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java

    r14601 r14974  
    3737import org.greenstone.gatherer.DebugStream;
    3838import org.greenstone.gatherer.Dictionary;
     39import org.greenstone.gatherer.FedoraInfo;
    3940import org.greenstone.gatherer.GAuthenticator;
    4041import org.greenstone.gatherer.Gatherer;
     
    854855    public void run()
    855856    {
    856         remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication();
     857
     858        if (Configuration.fedora_info.isActive()) {
     859
     860        FedoraInfo fedora_info = Configuration.fedora_info;
     861       
     862        String username = fedora_info.getUsername();
     863        String password = fedora_info.getPassword();
     864
     865        //remote_greenstone_server_authentication.setUsername(fedora_info.getUsername());
     866        //remote_greenstone_server_authentication.setPassword(fedora_info.getPassword());
     867
     868        remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication(username,password);
     869       
     870
     871        }
     872        else {
     873        remote_greenstone_server_authentication = new RemoteGreenstoneServerAuthenticator().getAuthentication();
     874
     875        }
    857876    }
    858877
     
    861880        extends GAuthenticator
    862881    {
     882        public PasswordAuthentication getAuthentication(String username, String password)
     883        {
     884        return getPasswordAuthentication(username,password);
     885        }
     886
    863887        public PasswordAuthentication getAuthentication()
    864888        {
Note: See TracChangeset for help on using the changeset viewer.