Class TrashRetentionRule

java.lang.Object
com.atlassian.confluence.api.model.retention.TrashRetentionRule

public class TrashRetentionRule extends Object
Since:
7.14
  • Constructor Details

    • TrashRetentionRule

      public TrashRetentionRule(Integer maxDeletedAge, AgeUnit deletedAgeUnit, boolean keepAll)
    • TrashRetentionRule

      public TrashRetentionRule()
    • TrashRetentionRule

      public TrashRetentionRule(int maxDeletedAge, AgeUnit ageUnit)
  • Method Details

    • getMaxDeletedAge

      public Integer getMaxDeletedAge()
    • setMaxDeletedAge

      public void setMaxDeletedAge(Integer maxDeletedAge)
    • getDeletedAgeUnit

      public AgeUnit getDeletedAgeUnit()
    • setDeletedAgeUnit

      public void setDeletedAgeUnit(AgeUnit deletedAgeUnit)
    • getKeepAll

      public boolean getKeepAll()
    • setKeepAll

      public void setKeepAll(boolean keepAll)
    • hasDeletedAgeLimit

      public boolean hasDeletedAgeLimit()
    • validate

      public List<String> validate()
    • calculateMaxDate

      public OffsetDateTime calculateMaxDate(OffsetDateTime now)
    • builder

    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object