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(Benutzer user)
Checks whether updates are required.static void
executeNecessaryUpdates(Benutzer user)
static void
executeNecessaryUpdates(Benutzer user, ISystemUpdateProgressObserver observer)
static void
executeUpdate(Benutzer user, ISystemUpdate update)
static List<ISystemUpdate>
getAllUpdates()
static List<ISystemUpdate>
getUnrunnedUpdates()
static boolean
isHasSystemUpdateLock(Benutzer user)
static boolean
isRunning()
static boolean
isUpToDate()
static void
registerUpdatedListener(IBaseNotificationListener listener)
static void
removeSystemUpdateLock(Benutzer user)
-
-
-
Method Detail
-
checkForNeededUpdates
public static boolean checkForNeededUpdates(Benutzer 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(Benutzer user) throws SystemUpdateException
- Throws:
SystemUpdateException
-
executeNecessaryUpdates
public static void executeNecessaryUpdates(Benutzer user, ISystemUpdateProgressObserver observer) throws SystemUpdateException
- Throws:
SystemUpdateException
-
executeUpdate
@Deprecated public static void executeUpdate(Benutzer 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:
- A list of all 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(Benutzer user)
-
isRunning
public static boolean isRunning()
-
isUpToDate
public static boolean isUpToDate()
-
registerUpdatedListener
public static void registerUpdatedListener(IBaseNotificationListener listener)
-
removeSystemUpdateLock
public static void removeSystemUpdateLock(Benutzer user) throws SystemUpdateException
- Throws:
SystemUpdateException
-
-