|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ViewMemberCollection.WebCacheViewMemberCollection
public static class ViewMemberCollection.WebCacheViewMemberCollection
A collection to perform transacted operations on web cache view members. Add web cache view members in various states for creation, update, removal, etc in the repository. Call save to actually perform the operations in explicit (or implicit) transactions, as the case may be.
| Nested Class Summary | |
|---|---|
static class |
ViewMemberCollection.WebCacheViewMemberCollection.WebCacheHistoryContainer
a query for History on an array of WebCacheViewMembers returns a collection of WebCacheViewMember[]'s. |
| Constructor Summary | |
|---|---|
ViewMemberCollection.WebCacheViewMemberCollection(ArtifactCacheManager.Context c)
Constructs this wrapper collection. |
|
| Method Summary | |
|---|---|
ViewMemberCollection.WebCacheViewMemberCollection |
create(ViewMember.WebCacheViewMember vm)
Set up a WebCacheViewMember to be created |
ViewMember.WebCacheViewMember |
find(int vmid)
return the ViewMember with this id or NULL The Viewmember will have had to have been placed in this collection for it to be found subsequently |
static ViewMemberCollection.WebCacheViewMemberCollection.WebCacheHistoryContainer |
getHistory(ArtifactCacheManager.Context c,
ViewMember.WebCacheViewMember[] vms)
Executes a query to fetch the history of all specified view members in the array. |
ViewMemberCollection.WebCacheViewMemberCollection |
lock(ViewMember.WebCacheViewMember vm)
Set up a WebCacheViewMember to be exclusively locked and break anyone else's lock if necessary |
ViewMemberCollection.WebCacheViewMemberCollection |
move(Item.WebCacheItem itm,
Folder.WebCacheFolder destination)
Set up a WebCacheItem to be moved to the specified destination |
ViewMemberCollection.WebCacheViewMemberCollection |
move(Item.WebCacheItem itm,
View.WebCacheView destination)
Set up a WebCacheItem to be moved to the specified destination |
ViewMemberCollection.WebCacheViewMemberCollection |
move(TreeItem.WebCacheTreeItem itm,
TreeItem.WebCacheTreeItem destination)
Set up a WebCacheTreeItem to be moved to a new WebCacheTreeItem parent |
ViewMemberCollection.WebCacheViewMemberCollection |
remove(ViewMember.WebCacheViewMember vm)
Set up a WebCacheViewMember to be removed |
ViewMember.WebCacheViewMember[] |
save()
Save the entire set of underlying web cache view members in the collection to the repository All operations are performed in a transaction, i.e. |
int |
size()
return the size of this collection |
ViewMemberCollection.WebCacheViewMemberCollection |
unlock(ViewMember.WebCacheViewMember vm)
Set up a WebCacheViewMember to be unlocked |
ViewMemberCollection.WebCacheViewMemberCollection |
update(ViewMember.WebCacheViewMember vm)
Set up a WebCacheViewMember to be updated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewMemberCollection.WebCacheViewMemberCollection(ArtifactCacheManager.Context c)
c - The ArtifactCacheManager.Context pointing at the underlying resources| Method Detail |
|---|
public static ViewMemberCollection.WebCacheViewMemberCollection.WebCacheHistoryContainer getHistory(ArtifactCacheManager.Context c,
ViewMember.WebCacheViewMember[] vms)
c - the user context for executing the queryvms - a collection of web cache view members
public int size()
public ViewMember.WebCacheViewMember find(int vmid)
vmid - the id
public ViewMemberCollection.WebCacheViewMemberCollection remove(ViewMember.WebCacheViewMember vm)
vm - the view member to remove
ViewMemberCollection.WebCacheViewMemberCollection.save()
public ViewMemberCollection.WebCacheViewMemberCollection move(Item.WebCacheItem itm,
View.WebCacheView destination)
itm - the item to movedestination - the destination view
ViewMemberCollection.WebCacheViewMemberCollection.save()
public ViewMemberCollection.WebCacheViewMemberCollection move(Item.WebCacheItem itm,
Folder.WebCacheFolder destination)
itm - the item to movedestination - the destination folder
ViewMemberCollection.WebCacheViewMemberCollection.save()
public ViewMemberCollection.WebCacheViewMemberCollection move(TreeItem.WebCacheTreeItem itm,
TreeItem.WebCacheTreeItem destination)
itm - the tree item to movedestination - the destination tree item parent
ViewMemberCollection.WebCacheViewMemberCollection.save()public ViewMemberCollection.WebCacheViewMemberCollection update(ViewMember.WebCacheViewMember vm)
vm - the view member to update
ViewMemberCollection.WebCacheViewMemberCollection.save()public ViewMemberCollection.WebCacheViewMemberCollection create(ViewMember.WebCacheViewMember vm)
vm - the view member to create
public ViewMemberCollection.WebCacheViewMemberCollection lock(ViewMember.WebCacheViewMember vm)
vm - the view member to lock
ViewMemberCollection.WebCacheViewMemberCollection.save()public ViewMemberCollection.WebCacheViewMemberCollection unlock(ViewMember.WebCacheViewMember vm)
vm - the view member to unlock
public ViewMember.WebCacheViewMember[] save()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||