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 Details

  • Constructor Details

    • RetentionPolicy

      public RetentionPolicy()
  • Method Details

    • compareTo

      public int compareTo(RetentionPolicy other)
      Specified by:
      compareTo in interface Comparable<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 class com.logicaldoc.core.PersistentObject
    • getEnabled

      public int getEnabled()
    • setEnabled

      public void setEnabled(int enabled)
    • getFolderId

      public Long getFolderId()
    • setFolderId

      public void setFolderId(Long folderId)