Package de.xima.fc.update
Class UpdateManager
java.lang.Object
de.xima.fc.update.UpdateManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkForNeededUpdates
(IUser user) Checks whether updates are required.static void
executeNecessaryUpdates
(IUser user) static void
executeNecessaryUpdates
(IUser user, ISystemUpdateProgressObserver observer) static void
executeUpdate
(IUser user, ISystemUpdate update) Deprecated.static List<ISystemUpdate>
static List<ISystemUpdate>
static boolean
isHasSystemUpdateLock
(IUser user) static boolean
static boolean
static void
static void
removeSystemUpdateLock
(IUser user)
-
Constructor Details
-
UpdateManager
public UpdateManager()
-
-
Method Details
-
checkForNeededUpdates
Checks whether updates are required.- Parameters:
user
- Use who initiated the check.- Returns:
true
when the no system updates need to be run,false
otherwise.
-
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)
.