|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IUpdateManager
An update manager specification.
Method Summary | |
---|---|
void |
addUpdatableListener(UpdatableListener listener)
Add an updatable listener. |
void |
displayVersionWhenLoaded(java.lang.Object object,
javax.swing.JLabel label)
Display the version of the object when we've loaded the version's file. |
java.util.List<org.jtheque.utils.bean.Version> |
getKernelVersions()
Return the list of availables versions on internet. |
java.util.List<Updatable> |
getUpdatables()
Return all the updatables. |
java.util.List<? extends org.jtheque.utils.bean.Version> |
getVersions(java.lang.Object object)
Return all the versions of the object. |
InstallationResult |
install(java.lang.String versionFileURL)
Install a module from a versions file. |
boolean |
isCurrentVersionUpToDate()
Indicate if the currrent version is the last version. |
boolean |
isUpToDate(java.lang.Object object)
Test if a object is up to date or if there is a most recent version on update site. |
void |
registerUpdatable(Updatable updatable)
Register a new updatable. |
void |
removeUpdatableListener(UpdatableListener listener)
Remove an updatable listener. |
void |
update(ModuleContainer module,
org.jtheque.utils.bean.Version version)
Update the module. |
void |
update(Updatable updatable,
org.jtheque.utils.bean.Version versionToDownload)
Update the updatable with specific version. |
void |
update(org.jtheque.utils.bean.Version versionToDownload)
Update JTheque. |
void |
updateToMostRecentVersion(ModuleContainer module)
Update the module to the most recent available version. |
void |
verifyingUpdate()
Verify if there is a new update available and if the user want to update the application. |
Method Detail |
---|
void update(org.jtheque.utils.bean.Version versionToDownload)
versionToDownload
- The version we want to downloadvoid update(ModuleContainer module, org.jtheque.utils.bean.Version version)
module
- The module to update.version
- The current version.java.util.List<org.jtheque.utils.bean.Version> getKernelVersions()
void verifyingUpdate()
boolean isCurrentVersionUpToDate()
void displayVersionWhenLoaded(java.lang.Object object, javax.swing.JLabel label)
object
- The object to get the versions.label
- The label to display the version to.boolean isUpToDate(java.lang.Object object)
object
- The object to test.
java.util.List<? extends org.jtheque.utils.bean.Version> getVersions(java.lang.Object object)
object
- The object to get the versions for.
InstallationResult install(java.lang.String versionFileURL)
versionFileURL
- The URL to the version file.
void registerUpdatable(Updatable updatable)
updatable
- The updatable to register.void update(Updatable updatable, org.jtheque.utils.bean.Version versionToDownload)
updatable
- The updatable to update.versionToDownload
- The version to apply.java.util.List<Updatable> getUpdatables()
void addUpdatableListener(UpdatableListener listener)
listener
- The listener to add.void removeUpdatableListener(UpdatableListener listener)
listener
- The updatatable listener to remove.void updateToMostRecentVersion(ModuleContainer module)
module
- The module to update.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |