public class RetentionDetails extends Object
Contains the start and end date/times that a file/folder is to be retained. During the retention period the file/folder may not be deleted or modified.
Constructor and Description |
---|
RetentionDetails(int fid,
long endTime)
Class constructor
|
RetentionDetails(int fid,
long startTime,
long endTime)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getEndTime()
Return the end of retention date/time
|
int |
getFileId()
Return the file id
|
long |
getStartTime()
Return the start of retention date/time
|
boolean |
hasStartTime()
Check if a start date/time is set
|
boolean |
isWithinRetentionPeriod(long timeNow)
Check if the file is within the retention period
|
String |
toString()
Return the retention period as a string
|
public RetentionDetails(int fid, long endTime)
fid
- intendTime
- longpublic RetentionDetails(int fid, long startTime, long endTime)
fid
- intstartTime
- longendTime
- longpublic final int getFileId()
public final boolean hasStartTime()
public final long getStartTime()
public final long getEndTime()
public final boolean isWithinRetentionPeriod(long timeNow)
timeNow
- longCopyright © 2005–2017 Alfresco Software. All rights reserved.