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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ACTION_ARCHIVE
static int
ACTION_DELETE
static int
ACTION_UNPUBLISH
static int
DATE_OPT_ARCHIVED
static int
DATE_OPT_CREATION
static int
DATE_OPT_PUBLISHED
static int
DATE_OPT_STOPPUBLISHING
-
Constructor Summary
Constructors Constructor Description RetentionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(RetentionPolicy other)
int
getAction()
int
getDateOption()
int
getEnabled()
Long
getFolderId()
String
getName()
int
getPosition()
int
getRetentionDays()
Long
getTemplateId()
void
setAction(int action)
void
setDateOption(int dateOption)
void
setEnabled(int enabled)
void
setFolderId(Long folderId)
void
setName(String name)
void
setPosition(int position)
void
setRetentionDays(int retentionDays)
void
setTemplateId(Long templateId)
String
toString()
-
-
-
Field Detail
-
DATE_OPT_CREATION
public static final int DATE_OPT_CREATION
- See Also:
- Constant Field Values
-
DATE_OPT_PUBLISHED
public static final int DATE_OPT_PUBLISHED
- See Also:
- Constant Field Values
-
DATE_OPT_STOPPUBLISHING
public static final int DATE_OPT_STOPPUBLISHING
- See Also:
- Constant Field Values
-
DATE_OPT_ARCHIVED
public static final int DATE_OPT_ARCHIVED
- See Also:
- Constant Field Values
-
ACTION_ARCHIVE
public static final int ACTION_ARCHIVE
- See Also:
- Constant Field Values
-
ACTION_UNPUBLISH
public static final int ACTION_UNPUBLISH
- See Also:
- Constant Field Values
-
ACTION_DELETE
public static final int ACTION_DELETE
- See Also:
- Constant Field Values
-
-
Method Detail
-
compareTo
public int compareTo(RetentionPolicy other)
- Specified by:
compareTo
in interfaceComparable<RetentionPolicy>
-
getName
public String getName()
-
setName
public void setName(String name)
-
getPosition
public int getPosition()
-
setPosition
public void setPosition(int position)
-
getTemplateId
public Long getTemplateId()
-
setTemplateId
public void setTemplateId(Long templateId)
-
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
public String toString()
- Overrides:
toString
in classcom.logicaldoc.core.PersistentObject
-
getEnabled
public int getEnabled()
-
setEnabled
public void setEnabled(int enabled)
-
getFolderId
public Long getFolderId()
-
setFolderId
public void setFolderId(Long folderId)
-
-