public class RetentionDetails
extends java.lang.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
|
java.lang.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 - longpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.