Package de.xima.fc.protocol
Class ProtocolCleaner
java.lang.Object
de.xima.fc.protocol.ProtocolCleaner
Deletes protocol entries for clients
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint
Deletes all protocol entries for the set configurationkeepFormRecordHistory
(boolean keepFormRecordHistory) Sets whether process protocol entries should be preserved (not deleted) when there are still form records in the inbox that reference these protocol entries.withClient
(Mandant client) Sets the client for which protocol entries should be deletedwithOlderThanDate
(Date olderThanDate) Sets the cut off date.withOlderThanDays
(long days) Sets the cut off duration.withOlderThanDaysAndHours
(long days, long hours) Sets the cut off duration.withOlderThanDuration
(Duration olderThanDuration) Sets the cut off duration.
-
Field Details
-
DEFAULT_OLDER_THAN_DAYS
public static final int DEFAULT_OLDER_THAN_DAYS- See Also:
-
-
Method Details
-
getProtocolType
- Returns:
EProtocolType
for which protocol entries should be deleted
-
getClient
- Returns:
Mandant
for which protocol entries should be deleted
-
withClient
Sets the client for which protocol entries should be deleted- Parameters:
client
-Mandant
for which protocol entries should be deleted- Returns:
ProtocolCleaner
for chaining.
-
getOlderThanDate
- Returns:
Date
cut off date. Only protocol entries older than this date will be deleted
-
withOlderThanDate
Sets the cut off date. Only protocol entries older than this date will be deleted- Parameters:
olderThanDate
-Date
cut off date- Returns:
ProtocolCleaner
for chaining.
-
getOlderThanDuration
- Returns:
Duration
cut off duration. Only protocol entries older than this duration will be deleted
-
withOlderThanDuration
Sets the cut off duration. Only protocol entries older than this duration will be deleted- Parameters:
olderThanDuration
-Duration
cut off duration- Returns:
ProtocolCleaner
for chaining.
-
withOlderThanDays
Sets the cut off duration. Only protocol entries older than this duration will be deleted- Parameters:
days
-Long
number of days- Returns:
ProtocolCleaner
for chaining.
-
keepFormRecordHistory
Sets whether process protocol entries should be preserved (not deleted) when there are still form records in the inbox that reference these protocol entries.- Parameters:
keepFormRecordHistory
-true
to keep protocol entries of existing form records,false
to delete them anyway.- Returns:
ProtocolCleaner
for chaining.
-
withOlderThanDaysAndHours
Sets the cut off duration. Only protocol entries older than this duration will be deleted- Parameters:
days
-Long
number of dayshours
-Long
number of hours- Returns:
ProtocolCleaner
-
execute
Deletes all protocol entries for the set configuration- Parameters:
ec
-IEntityContext
contains the user that is executing the task- Returns:
- the number of protocol entries that have bee deleted
-