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 blank location
is specified, the location
defaults to root which assumes no privileges and, similarly, only the current user's items will be 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 location of 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()
Gets the boolean value that 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 of 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)
Sets the boolean value that 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 in which to query.location
- the location in which to query.deletedBy
- the identifier of the user who deleted the item.fromDate
- the starting deleted date in which to query.toDate
- the ending deleted date in which to query.public RecycleBinQuery(String location, boolean recurse, String name, String deletedBy, Date fromDate, Date toDate)
name
- the name of the source in which to query.location
- the location in which 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 in which to query.toDate
- the ending deleted date in which to query.public String getName()
public String getLocation()
public void setLocation(String location)
location
- The location of the item to query in the recycle bin. Null specifies all paths are queried.public boolean isRecurse()
public void setRecurse(boolean recurse)
recurse
- The boolean value that indicates whether recycle bin searches the specified location and below.
location.public void setName(String name)
name
- The name of the item to query in the recycle bin. Null specifies 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 will result in the current
user's items. Specifying * will query 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 will be 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 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 all dates are
queried.Copyright (c) 2019, SAS Institute Inc., Cary, NC, USA