|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.taverna.raven.profile.ProfileUpdateHandler
public class ProfileUpdateHandler
Handles checking if a new version of of a profile is available, and the copying of the remote profile version to the current if its is selected.
Constructor Summary | |
---|---|
ProfileUpdateHandler(java.net.URL profileListURL,
java.net.URL currentProfileURL)
Processes the profiles and profile list at the URLS and determines if an updated profile is available. |
Method Summary | |
---|---|
boolean |
isNewVersionAvailable()
|
void |
updateLocalProfile(java.io.File localFile)
Copies the latest profile to the local file |
void |
updateLocalProfile(ProfileVersion newVersion,
java.io.File localFile)
Updates the local profile to that specified by newVersion |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileUpdateHandler(java.net.URL profileListURL, java.net.URL currentProfileURL)
profileListURL
- - URL to the list of available profilescurrentProfileURL
- - URL to the local profile currently in useMethod Detail |
---|
public void updateLocalProfile(java.io.File localFile) throws java.lang.Exception
localFile
- - File for the local profile
java.lang.Exception
public void updateLocalProfile(ProfileVersion newVersion, java.io.File localFile) throws java.lang.Exception
newVersion
- localFile
-
java.lang.Exception
public boolean isNewVersionAvailable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |