|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.NamedCacheRef
|
+--com.starbase.starteam.TypedResource
|
+--com.starbase.starteam.SimpleTypedResource
|
+--com.starbase.starteam.View
|
+--com.starbase.starteam.RecycleBin
Provides access to the items that have been deleted from a view.
For example:
RecycleBin bin = view.getRecycleBin();
Folder root = bin.getRootFolder();
Item[] files = root.getItems(TypeNames.FILE);
for (int i = 0; i < files.length; i++) {
assertTrue(files[i].isDeleted());
}
The RecycleBin has properties that may be used to control which items
are included. For example, IncludeDeletedFolders determines whether or
not deleted folders are included in the folder tree; IncludeActiveItems
determines whether or not active items are included along with deleted ones.
For example:
// Include both active and deleted items.
bin.setIncludeActiveItems(true);
bin.setIncludeDeletedItems(true);
root.refreshItems(TypeNames.FILE);
Item[] files = root.getItems(TypeNames.FILE);
for (int i = 0; i < files.length; i++) {
if (files[i].isDeleted()) {
// ...
}
}
Note that the recycle bin for a View with a rolled back ViewConfiguration
(that is, a configuration other than the tip) reflects the state of
deleted items as of the configuration time. If an item was active at the
configuration time and deleted afterwards, it does not appear deleted
in the recycle bin.
View.getRecycleBin(),
Item.isDeleted(),
SupportedFeatures.hasDeletedItems()| Method Summary | |
OLEDate |
getDeletedAsOf()
Used to limit deleted folders and items to those that were after a given time. |
boolean |
getIncludeActiveItems()
Determines whether or not the resulting folders may contain active items. |
boolean |
getIncludeDeletedFolders()
Determines whether or not deleted child folders will be inserted into the copy of the folder tree. |
boolean |
getIncludeDeletedItems()
Determines whether or not the resulting folders may contain deleted items. |
void |
setDeletedAsOf(OLEDate deletedAsOf)
Used to limit deleted folders and items to those that were after a given time. |
void |
setIncludeActiveItems(boolean isIncluded)
Sets whether or not the resulting folders may contain active items. |
void |
setIncludeDeletedFolders(boolean isIncluded)
Sets whether or not deleted folders will be inserted into the copy of the folder tree. |
void |
setIncludeDeletedItems(boolean isIncluded)
Sets whether or not the resulting folders may contain deleted items. |
| Methods inherited from class com.starbase.starteam.SimpleTypedResource |
getByteArray, getDouble, getEnumDisplayName, getInt, getIntArray, getOLEDate, getPossibleValues, getPropertyNames, getString, getType, getTypeNames |
| Methods inherited from class com.starbase.starteam.TypedResource |
addToIntArray, removeFromIntArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starbase.starteam.ISecurable |
getType |
| Method Detail |
public boolean getIncludeDeletedFolders()
public void setIncludeDeletedFolders(boolean isIncluded)
isIncluded - true to include deleted folders in the folder tree; false to include only active folders.
Default value is true.public boolean getIncludeDeletedItems()
public void setIncludeDeletedItems(boolean isIncluded)
isIncluded - if the resulting folders may contain deleted items; false if they may contain only active items.
Default value is true. At least one of IncludeDeletedItems and IncludeActiveItems is always set.public boolean getIncludeActiveItems()
public void setIncludeActiveItems(boolean isIncluded)
isIncluded - if the resulting folders may contain active items; false if they may contain only deleted items.
Default value is false. At least one of IncludeDeletedItems and IncludeActiveItems is always set.public OLEDate getDeletedAsOf()
public void setDeletedAsOf(OLEDate deletedAsOf)
deletedAsOf - The deletion time. Only folders and/or item deleted after this time are included.
Default value is null, indicating that all deleted folders and/or items are included.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||