Package de.xima.fc.update
Class UpdateManager
- java.lang.Object
-
- de.xima.fc.update.UpdateManager
-
public final class UpdateManager extends Object
-
-
Constructor Summary
Constructors Constructor Description UpdateManager()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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)
static List<ISystemUpdate>
getAllUpdates()
static List<ISystemUpdate>
getUnrunnedUpdates()
static boolean
isHasSystemUpdateLock(IUser user)
static boolean
isRunning()
static boolean
isUpToDate()
static void
registerUpdatedListener(IBaseNotificationListener listener)
static void
removeSystemUpdateLock(IUser user)
-
-
-
Method Detail
-
checkForNeededUpdates
public static boolean checkForNeededUpdates(IUser user)
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
public static void executeNecessaryUpdates(IUser user) throws SystemUpdateException
- 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 public static List<ISystemUpdate> getAllUpdates() throws SystemUpdateException
Deprecated.- Returns:
- An ordered list of all system updates.
- Throws:
SystemUpdateException
- When the check could not be performed.
-
getUnrunnedUpdates
@Deprecated public static List<ISystemUpdate> getUnrunnedUpdates() throws SystemUpdateException
Deprecated.- Returns:
- A list of all updates that need to be run.
- Throws:
SystemUpdateException
- When the check could not be performed.
-
isHasSystemUpdateLock
public static boolean isHasSystemUpdateLock(IUser user)
-
isRunning
public static boolean isRunning()
-
isUpToDate
public static boolean isUpToDate()
-
registerUpdatedListener
public static void registerUpdatedListener(IBaseNotificationListener listener)
-
removeSystemUpdateLock
public static void removeSystemUpdateLock(IUser user) throws SystemUpdateException
- Throws:
SystemUpdateException
-
-