Package com.logicaldoc.retention
Class RetentionPolicy
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.retention.RetentionPolicy
- All Implemented Interfaces:
Serializable
,Comparable<RetentionPolicy>
public class RetentionPolicy
extends com.logicaldoc.core.PersistentObject
implements Serializable, Comparable<RetentionPolicy>
Represents a rule to process a class of document in order to take the proper
action on it depending on how old it is.
- Since:
- 7.2
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(RetentionPolicy other) boolean
int
int
int
getName()
int
int
int
hashCode()
void
setAction
(int action) void
setDateOption
(int dateOption) void
setEnabled
(int enabled) void
setFolderId
(Long folderId) void
void
setPosition
(int position) void
setRetentionDays
(int retentionDays) void
setTemplateId
(Long templateId) toString()
Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Field Details
-
DATE_OPT_CREATION
public static final int DATE_OPT_CREATION- See Also:
-
DATE_OPT_PUBLISHED
public static final int DATE_OPT_PUBLISHED- See Also:
-
DATE_OPT_STOPPUBLISHING
public static final int DATE_OPT_STOPPUBLISHING- See Also:
-
DATE_OPT_ARCHIVED
public static final int DATE_OPT_ARCHIVED- See Also:
-
ACTION_ARCHIVE
public static final int ACTION_ARCHIVE- See Also:
-
ACTION_UNPUBLISH
public static final int ACTION_UNPUBLISH- See Also:
-
ACTION_DELETE
public static final int ACTION_DELETE- See Also:
-
-
Constructor Details
-
RetentionPolicy
public RetentionPolicy()
-
-
Method Details
-
getName
-
setName
-
getPosition
public int getPosition() -
setPosition
public void setPosition(int position) -
getTemplateId
-
setTemplateId
-
getDateOption
public int getDateOption() -
setDateOption
public void setDateOption(int dateOption) -
getRetentionDays
public int getRetentionDays() -
setRetentionDays
public void setRetentionDays(int retentionDays) -
getAction
public int getAction() -
setAction
public void setAction(int action) -
toString
- Overrides:
toString
in classcom.logicaldoc.core.PersistentObject
-
getEnabled
public int getEnabled() -
setEnabled
public void setEnabled(int enabled) -
getFolderId
-
setFolderId
-
compareTo
- Specified by:
compareTo
in interfaceComparable<RetentionPolicy>
-
equals
- Overrides:
equals
in classcom.logicaldoc.core.PersistentObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.logicaldoc.core.PersistentObject
-