net.sf.taverna.raven.profile
Class ProfileHandler

java.lang.Object
  extended by net.sf.taverna.raven.profile.ProfileHandler

Deprecated.

@Deprecated
public class ProfileHandler
extends java.lang.Object

Handler to detect for new profile versions, and update local copy of the profile to the new one if requested dependencies This class is now deprecated. You should use ProfileUpdateHandler instead.

Author:
Stuart Owen

Constructor Summary
ProfileHandler(java.lang.String remoteProfileLocation)
          Deprecated. Constructs the handler, using the removeProfileLocation to generate the name of the local profile name which becomes the same name with the path stripped away.
ProfileHandler(java.lang.String remoteProfileLocation, java.lang.String localProfileName)
          Deprecated. Constructs the handler, in this case using the provided local profile name to determine the name that the profile will be written to locally.
 
Method Summary
 boolean isNewVersionAvailable()
          Deprecated. Indicates whether a newer version of the profile is available
 void updateLocalProfile()
          Deprecated.  
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileHandler

public ProfileHandler(java.lang.String remoteProfileLocation)
               throws java.lang.Exception
Deprecated. 
Constructs the handler, using the removeProfileLocation to generate the name of the local profile name which becomes the same name with the path stripped away.

Parameters:
remoteProfileLocation -
Throws:
java.lang.Exception

ProfileHandler

public ProfileHandler(java.lang.String remoteProfileLocation,
                      java.lang.String localProfileName)
               throws java.lang.Exception
Deprecated. 
Constructs the handler, in this case using the provided local profile name to determine the name that the profile will be written to locally. This overides deriving this name from the remote profile name for cases that the two may differ.

Parameters:
remoteProfileLocation - the location of the remote profile
localProfileName - the name of the file that the profile should be written to locally (note, just the name and note the full path - the path is automatically adjusted to place this file in Tavernas conf directory).
Throws:
java.lang.Exception
Method Detail

isNewVersionAvailable

public boolean isNewVersionAvailable()
Deprecated. 
Indicates whether a newer version of the profile is available

Returns:
true if a newer version is available.

updateLocalProfile

public void updateLocalProfile()
                        throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception