Class TrashRetentionRule
- java.lang.Object
-
- com.atlassian.confluence.api.model.retention.TrashRetentionRule
-
@ExperimentalApi public class TrashRetentionRule extends Object
- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description TrashRetentionRule()
TrashRetentionRule(int maxDeletedAge, AgeUnit ageUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
calculateMaxDate(OffsetDateTime now)
boolean
equals(Object other)
AgeUnit
getDeletedAgeUnit()
boolean
getKeepAll()
Integer
getMaxDeletedAge()
boolean
hasDeletedAgeLimit()
int
hashCode()
void
setDeletedAgeUnit(AgeUnit deletedAgeUnit)
void
setKeepAll(boolean keepAll)
void
setMaxDeletedAge(Integer maxDeletedAge)
String
toString()
List<String>
validate()
-
-
-
Constructor Detail
-
TrashRetentionRule
public TrashRetentionRule()
-
TrashRetentionRule
public TrashRetentionRule(int maxDeletedAge, AgeUnit ageUnit)
-
-
Method Detail
-
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()
-
calculateMaxDate
public OffsetDateTime calculateMaxDate(OffsetDateTime now)
-
-