public class RecycleBinQuery extends Object implements Serializable
deletedBy
, and the current user does not have the
Permanently Delete Items or Restore Items Deleted by Others privilege at the query location
specified,
only the current user's items are returned. If null or a blank location
is specified, the location
defaults to the root, which assumes no privileges and, similarly, only the current user's items are returned.Constructor and Description |
---|
RecycleBinQuery()
The zero-argument constructor.
|
RecycleBinQuery(String location,
boolean recurse,
String name,
String deletedBy,
Date fromDate,
Date toDate)
The constructor.
|
RecycleBinQuery(String location,
String name,
String deletedBy,
Date fromDate,
Date toDate)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDeletedBy()
Gets the identifier of the user whose deleted files are queried.
|
Date |
getFromDate()
Gets the from deleted date of the item to query in the recycle bin.
|
String |
getLocation()
Gets the path to the item to query in the recycle bin.
|
String |
getName()
Gets the name of the item to query in the recycle bin.
|
Date |
getToDate()
Gets the ending deleted date of the item to query in the recycle bin.
|
int |
hashCode() |
boolean |
isRecurse()
Indicates whether the recycle bin searches the specified location and below.
|
void |
setDeletedBy(String deletedBy)
Sets the identifier of the user whose deleted files are queried.
|
void |
setFromDate(Date fromDate)
Sets the starting deleted date of the item to query in the recycle bin.
|
void |
setLocation(String location)
Sets the path to the item to query in the recycle bin.
|
void |
setName(String name)
Sets the name of the item to query in the recycle bin.
|
void |
setRecurse(boolean recurse)
Indicates whether recycle bin searches the specified location and below.
|
void |
setToDate(Date toDate)
Sets the ending deleted date of the item to query in the recycle bin.
|
String |
toString() |
public RecycleBinQuery()
public RecycleBinQuery(String location, String name, String deletedBy, Date fromDate, Date toDate)
name
- The name of the source to query.location
- The location to query.deletedBy
- The identifier of the user who deleted the item.fromDate
- The starting deleted date to query.toDate
- The ending deleted date to query.public RecycleBinQuery(String location, boolean recurse, String name, String deletedBy, Date fromDate, Date toDate)
name
- The name of the source to query.location
- The location to query.recurse
- the boolean value that indicates whether the recycle bin searches the specified location and
below.deletedBy
- The identifier of the user who deleted the item.fromDate
- The starting deleted date to query.toDate
- The ending deleted date to query.public String getName()
public String getLocation()
public void setLocation(String location)
location
- The path to the item to query in the recycle bin. Null specifies that all paths are queried.public boolean isRecurse()
public void setRecurse(boolean recurse)
recurse
- The boolean value that indicates whether the recycle bin searches the specified location and below.public void setName(String name)
name
- The name of the item to query in the recycle bin. Null specifies that all names are queried.public String getDeletedBy()
public void setDeletedBy(String deletedBy)
deletedBy
- The identifier of the user who deleted the items. Null or blank results in the current user's
items. Specifying * queries all users' items. If you do not have the Permanently Delete Items or
Restore Items Deleted by Others privilege, only the current user's items are returned.public Date getFromDate()
public void setFromDate(Date fromDate)
fromDate
- The starting deleted date of the item to query in the recycle bin. Null specifies that all dates
are queried.public Date getToDate()
public void setToDate(Date toDate)
toDate
- The ending deleted date of the item to query in the recycle bin. Null specifies that all dates are
queried.<i>Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA</i>