Package de.xima.fc.update.updates.v8_6
Class UserPortalContent_DeleteUnusedContents
- java.lang.Object
-
- de.xima.fc.update.updates.v8_6.UserPortalContent_DeleteUnusedContents
-
- All Implemented Interfaces:
IOrderable,ISystemUpdate,Comparable<IOrderable>
public class UserPortalContent_DeleteUnusedContents extends Object implements ISystemUpdate
Update to delete unused user portal contents, i.e. contents that are inactive and have no associated tags.- Since:
- 8.6.0
-
-
Constructor Summary
Constructors Constructor Description UserPortalContent_DeleteUnusedContents()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexec()Deletes all unusedUserPortalContententities.StringgetDescription(Locale loc)Gets a description of the update which should be shown in the UI.StringgetUUID()Gets a string for identifying the update.SystemUpdateVersiongetVersion()Gets the formcycle version where the update was introduced.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.listener.IOrderable
compareTo, shouldBeAfter
-
Methods inherited from interface de.xima.fc.update.interfaces.ISystemUpdate
needsToRun
-
-
-
-
Method Detail
-
exec
public void exec()
Deletes all unusedUserPortalContententities. An unused content is defined as one that is inactive and has no associated tags. Logs and ignores any exceptions that occur during the deletion.- Specified by:
execin interfaceISystemUpdate
-
getDescription
public String getDescription(Locale loc)
Description copied from interface:ISystemUpdateGets a description of the update which should be shown in the UI. The description will also be stored in the database with a maximum of 1020 chars and the localeCmnConst.DFLT_LOCALE- Specified by:
getDescriptionin interfaceISystemUpdate- Parameters:
loc-Localethe current ui locale- Returns:
String
-
getUUID
public String getUUID()
Description copied from interface:ISystemUpdateGets a string for identifying the update. This string should not be longer than 36 chars and should not be changed, otherwise the update may run multiple times!- Specified by:
getUUIDin interfaceISystemUpdate- Returns:
StringUUID of the update
-
getVersion
public SystemUpdateVersion getVersion()
Description copied from interface:ISystemUpdateGets the formcycle version where the update was introduced. System updates are run in order of their version. Updates with the same version do not have any order by default, but can be ordered by placing aSequenceOrderannotation at the class level.- Specified by:
getVersionin interfaceISystemUpdate- Returns:
- The formcycle version of this update.
-
-