public class ProtocolCleaner extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProtocolCleaner.ProtocolCleanerFactory |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_OLDER_THAN_DAYS |
| Modifier and Type | Method and Description |
|---|---|
int |
execute(IEntityContext ec)
Deletes all protocol entries for the set configuration
|
Mandant |
getClient() |
Date |
getOlderThanDate() |
Duration |
getOlderThanDuration() |
EProtocolType |
getProtocolType() |
ProtocolCleaner |
keepFormRecordHistory(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.
|
ProtocolCleaner |
withClient(Mandant client)
Sets the client for which protocol entries should be deleted
|
ProtocolCleaner |
withOlderThanDate(Date olderThanDate)
Sets the cut off date.
|
ProtocolCleaner |
withOlderThanDays(long days)
Sets the cut off duration.
|
ProtocolCleaner |
withOlderThanDaysAndHours(long days,
long hours)
Sets the cut off duration.
|
ProtocolCleaner |
withOlderThanDuration(Duration olderThanDuration)
Sets the cut off duration.
|
public static final int DEFAULT_OLDER_THAN_DAYS
public EProtocolType getProtocolType()
EProtocolType for which protocol entries should be deletedpublic ProtocolCleaner withClient(Mandant client)
client - Mandant for which protocol entries should be deletedProtocolCleaner for chaining.public Date getOlderThanDate()
Date cut off date. Only protocol entries older than this date will be deletedpublic ProtocolCleaner withOlderThanDate(Date olderThanDate)
olderThanDate - Date cut off dateProtocolCleaner for chaining.public Duration getOlderThanDuration()
Duration cut off duration. Only protocol entries older than this duration will be deletedpublic ProtocolCleaner withOlderThanDuration(Duration olderThanDuration)
olderThanDuration - Duration cut off durationProtocolCleaner for chaining.public ProtocolCleaner withOlderThanDays(long days)
days - Long number of daysProtocolCleaner for chaining.public ProtocolCleaner keepFormRecordHistory(boolean keepFormRecordHistory)
keepFormRecordHistory - true to keep protocol entries of existing form records, false to
delete them anyway.ProtocolCleaner for chaining.public ProtocolCleaner withOlderThanDaysAndHours(long days, long hours)
days - Long number of dayshours - Long number of hoursProtocolCleanerpublic int execute(IEntityContext ec)
ec - IEntityContext contains the user that is executing the taskCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.