Package de.xima.fc.update
Class UpdateManager
java.lang.Object
de.xima.fc.update.UpdateManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckForNeededUpdates(IUser user) Checks whether updates are required.static voidexecuteNecessaryUpdates(IUser user) static voidexecuteNecessaryUpdates(IUser user, ISystemUpdateProgressObserver observer) static voidexecuteUpdate(IUser user, ISystemUpdate update) Deprecated.static List<ISystemUpdate>static List<ISystemUpdate>static booleanisHasSystemUpdateLock(IUser user) static booleanstatic booleanstatic voidstatic voidremoveSystemUpdateLock(IUser user)
-
Constructor Details
-
UpdateManager
public UpdateManager()
-
-
Method Details
-
checkForNeededUpdates
Checks whether updates are required.- Parameters:
user- Use who initiated the check.- Returns:
truewhen the no system updates need to be run,falseotherwise.
-
executeNecessaryUpdates
- Throws:
SystemUpdateException
-
executeNecessaryUpdates
public static void executeNecessaryUpdates(IUser user, ISystemUpdateProgressObserver observer) throws SystemUpdateException - Throws:
SystemUpdateException
-
executeUpdate
@Deprecated public static void executeUpdate(IUser user, ISystemUpdate update) throws SystemUpdateException Deprecated.- Parameters:
user- User who started the update.update- The update to execute.- Throws:
SystemUpdateException- When the update could not be run due to any reason, such as when an update is already in progress.
-
getAllUpdates
Deprecated.- Returns:
- An ordered list of all system updates.
- Throws:
SystemUpdateException- When the check could not be performed.
-
getUnrunnedUpdates
Deprecated.- Returns:
- A list of all updates that need to be run.
- Throws:
SystemUpdateException- When the check could not be performed.
-
isHasSystemUpdateLock
-
isRunning
public static boolean isRunning() -
isUpToDate
public static boolean isUpToDate() -
registerUpdatedListener
-
removeSystemUpdateLock
- Throws:
SystemUpdateException
-
executeNecessaryUpdates(IUser)orexecuteNecessaryUpdates(IUser, ISystemUpdateProgressObserver).