|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.StarTeamCollection
com.starteam.ViewMemberCollection
public class ViewMemberCollection
A Collection of ViewMembers. The collection can be built up from different types of ViewMembers, or all instances of the same type.
| Nested Class Summary | |
|---|---|
static class |
ViewMemberCollection.BehaviorContainer
A BehaviorContainer can be used to query for ViewMemberBehavior on the underlying collection of ViewMembers. |
static class |
ViewMemberCollection.HistoryContainer
a query for History on the underlying collection of ViewMembers returns a collection of ViewMemberCollections. |
static class |
ViewMemberCollection.WebCacheViewMemberCollection
A collection to perform transacted operations on web cache view members. |
| Constructor Summary | |
|---|---|
ViewMemberCollection()
Construct an empty ViewMemberCollection |
|
ViewMemberCollection(ViewMember viewMember)
Construct a ViewMemberCollection with one contained ViewMember |
|
ViewMemberCollection(ViewMember[] viewMembers)
Construct a ViewMemberCollection from an array of ViewMember |
|
ViewMemberCollection(ViewMemberCollection viewMembers)
Construct a ViewMemberCollection from another collection |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all of the elements from this collection. |
boolean |
contains(java.lang.Object o)
Returns true if the specified object is a member of this collection overloaded to check for the key of an object, e.g. |
ViewMember |
find(int ID)
find an element by its ID |
ViewMember |
find(java.lang.String name)
find an element by its primary descriptor. |
ViewMember |
find(java.lang.String name,
boolean ignoreCase)
find an element by its primary descriptor. |
ViewMember |
getAt(int index)
Returns the ViewMember at the given index into the virtual array, or null. |
CacheService |
getCache()
Gets a cache service that can be used to populate, refresh or discard all of the view members in this collection, in bulk. |
ViewMemberCollection |
getFromHistory(DateTime dt)
Returns an equivalent set of historical revisions of the ViewMembers from this collection, at the versions at which they are attached to this DateTime Note that the returned set may be smaller than the set in this collection since some of these items may not have been attached to the label |
ViewMemberCollection |
getFromHistory(Label lbl)
Returns an equivalent set of historical revisions of the ViewMembers from this collection, at the versions at which they are attached to this Label Note that the returned set may be smaller than the set in this collection since some of these items may not have been attached to the label |
ViewMemberCollection |
getFromHistory(PromotionState ps)
Returns an equivalent set of historical revisions of the ViewMembers from this collection, at the versions at which they are attached to this PromotionState Note that the returned set may be smaller than the set in this collection since some of these items may not have been attached to the label attached to the PromotionState |
ViewMemberCollection.HistoryContainer |
getHistory()
Returns a collection of History collections |
ViewMember |
getViewMember(int ID)
return an element by ID |
ViewMember |
getViewMember(java.lang.String name)
return an element by name. |
ViewMemberCollection.BehaviorContainer |
getViewMemberBehavior()
returns the ViewMemberBehavior for a set of ViewMembers |
void |
lockExclusive()
Obtains an exclusive lock on each member of this collection, without attempting to break an existing lock. |
void |
lockExclusive(boolean breakLock)
Obtains an exclusive lock on each member of this collection If breakLock is true, and other users have some of these resources locked, then an attempt will be made to break those locks. |
void |
lockNonExclusive()
Obtains a non-exclusive lock on each member of this collection. |
void |
modifyBookmark(boolean setFlagged)
Modifies this list of member's book mark for the logged-in user. |
void |
modifyReadStatus(boolean markAsRead)
Modifies this list of members's read status for the logged-in user. |
ViewMemberCollection |
reverse()
returns a collection whose elements are in the reverse order of this one i.e. |
static void |
setViewMemberBehavior(ViewMemberCollection.BehaviorContainer cntnr)
Sets the behavior for the view members in the container The behavior is assigned in bulk, i.e. |
ViewMember[] |
sort()
sort the collection by VMID |
ViewMember[] |
sort(boolean ignoreCase)
sort the collection by name |
ViewMember[] |
sort(SortCompare sc)
returns an array of ViewMembers whose elements are sorted using the provided comparer. |
void |
unlock()
Removes the current user's lock from each member of this collection. |
| Methods inherited from class com.starteam.StarTeamCollection |
|---|
add, addAll, addAll, addTo, attach, containsAll, detach, get, getSyncRoot, indexOf, insert, isEmpty, isFixedSize, isModified, isReadOnly, isSynchronized, iterator, positionOf, remove, removeAll, removeAt, resetCapacity, retainAll, set, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ViewMemberCollection()
public ViewMemberCollection(ViewMember viewMember)
viewMember - the view member to add to the collectionpublic ViewMemberCollection(ViewMember[] viewMembers)
viewMembers - the objects to add to the collectionpublic ViewMemberCollection(ViewMemberCollection viewMembers)
viewMembers - the objects to add to the collection| Method Detail |
|---|
public ViewMember getAt(int index)
index - The index into the virtual array of the desired ViewMember.
public CacheService getCache()
public void lockExclusive()
lockExclusive in interface Lockablepublic void lockExclusive(boolean breakLock)
lockExclusive in interface LockablebreakLock - true to break existing exclusive locks owned by other userspublic void lockNonExclusive()
lockNonExclusive in interface Lockablepublic void unlock()
unlock in interface Lockablepublic ViewMemberCollection.HistoryContainer getHistory()
public ViewMemberCollection.BehaviorContainer getViewMemberBehavior()
public static void setViewMemberBehavior(ViewMemberCollection.BehaviorContainer cntnr)
cntnr - a Behavior Container comprising ViewMemebrs and their
associated new behaviorpublic ViewMemberCollection getFromHistory(Label lbl)
lbl - the Label to base the historical revisions on
public ViewMemberCollection getFromHistory(DateTime dt)
dt - the DateTime to base the historical revisions on
public ViewMemberCollection getFromHistory(PromotionState ps)
ps - the PromotionState to base the historical revisions on
public ViewMemberCollection reverse()
public ViewMember[] sort(SortCompare sc)
sc - a comparer used for the sort
public ViewMember getViewMember(java.lang.String name)
name - the name
public ViewMember getViewMember(int ID)
ID - the ID
public ViewMember find(java.lang.String name,
boolean ignoreCase)
name - the primary descriptorignoreCase - true if case insensitive
ViewMemberCollection.find(String)public ViewMember find(java.lang.String name)
ViewMemberCollection.find(String, boolean) uses the Platform case sensitivity rules
name - the primary descriptor
ViewMemberCollection.find(String, boolean)public boolean contains(java.lang.Object o)
contains in interface java.util.Collectioncontains in class StarTeamCollectiono - the object to test for
public ViewMember find(int ID)
ID - the ID
public ViewMember[] sort(boolean ignoreCase)
ignoreCase - true if case insensitive sort is desired
public ViewMember[] sort()
public void modifyReadStatus(boolean markAsRead)
markAsRead - the new read status for the members of this collectionViewMember.isUnread()public void modifyBookmark(boolean setFlagged)
setFlagged - this items new book markViewMember.isBookmarked()public void clear()
clear in interface java.util.Collectionclear in class StarTeamCollection
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||