|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
com.starteam.ViewMember
com.starteam.Item
com.starteam.Folder
com.starteam.viewcomparemerge.VCMFolder
public final class VCMFolder
A folder belonging to the Merge Preview It has all the characteristics of a regular StarTeam Folder, and describes the Preview State of its constituent Items and/or Sub-Folders
VCMFolder.PreviewState| Nested Class Summary | |
|---|---|
static class |
VCMFolder.PreviewState
The preview state represents a highest precedence summary of all contained items and sub-folders and their contents. |
| Nested classes/interfaces inherited from class com.starteam.Folder |
|---|
Folder.ExcludeFlags, Folder.Status, Folder.Type, Folder.WebCacheFolder |
| Nested classes/interfaces inherited from class com.starteam.Item |
|---|
Item.WebCacheItem |
| Nested classes/interfaces inherited from class com.starteam.ViewMember |
|---|
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember |
| Nested classes/interfaces inherited from class com.starteam.VersionedObject |
|---|
VersionedObject.WebCacheVersionedObject |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
long |
countItems(Item.Type type,
int depth)
Returns a count of the number of items (of a given type) reachable from this folder to the given depth |
void |
discardItems(Item.Type type,
int depth)
Discards cached items of the specified type in this folder. |
ViewMemberCollection |
getItems(Item.Type type)
Returns the list of items of the specified type getItems() does not retrieve any item properties. |
java.lang.String |
getPathFragment()
Return the path fragment to use for this folder. |
VCMFolder.PreviewState |
getPreviewState(Item.Type type)
Returns the preview state of this folder, which is an aggregate of the states of the constituent elements (items & sub-folders) of this folder |
Folder[] |
getSubFolders()
Returns the subfolders of this folder. |
boolean |
isPopulated(Item.Type type)
Returns whether or not the target items have been populated. |
boolean |
isRefreshItemsRequired(Item.Type type,
PropertyCollection properties,
int depth)
Determines whether or not the items of the given type need to be refreshed. |
void |
populate(Item.Type type,
int depth)
Ensures that the items of the specified type have been retrieved from the server and cached locally. |
void |
populate(Item.Type type,
PropertyCollection properties,
int depth)
Ensures that the items of the specified type have been retrieved from the server and cached locally. |
void |
refreshItems(Item.Type type,
PropertyCollection pc,
int depth)
Ensures that the latest list of items of the specified type for this folder has been retrieved from the server and cached locally. |
| Methods inherited from class com.starteam.VersionedObject |
|---|
getBranchRevision, getRevisionNumber, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurableContainer |
|---|
getID, getServer, isDeleted |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getServer, getType |
| Method Detail |
|---|
public ViewMemberCollection getItems(Item.Type type)
getItems in class Foldertype - The type of the items to be retrieved.
DisembodiedException - if the Folder is disembodied.VCMFolder.isPopulated(com.starteam.Item.Type),
ViewMember.refresh(),
ViewMember.isDisembodied()public java.lang.String getPathFragment()
getPathFragment in class FolderFolder.getDefaultPathFragment(),
Folder.getAlternatePathFragment()public Folder[] getSubFolders()
getSubFolders in class FolderDisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()public boolean isPopulated(Item.Type type)
isPopulated in class Foldertype - The type of the items to be tested.
VCMFolder.getItems(com.starteam.Item.Type)
public void populate(Item.Type type,
PropertyCollection properties,
int depth)
populate() does not retrieve any items or properties that have already been cached. Therefore, the item and property information may or may not be up-to-date with respect to the latest information on the server. To ensure that the item and property information is up-to-date, use refresh().
When an application attempts to access the value of a given property of an item, and that property has not yet been retrieved from the server, a command is issued to the server to retrieve all the properties of that item and cache them locally. For applications that examine many items, it is much more efficient to populate all the required properties up front, using populate().
It is sometimes difficult to determine exactly which item properties are used by a given application. If performance problems cause you to suspect that there is a property that has not been populated correctly, you can use NetMonitor to help diagnose the problem. If accessing a specific item property results in a fetch from the server, NetMonitor will display a message indicating which property caused the fetch.
populate in class Foldertype - The type of the items to be retrieved.properties - The properties whose values are to be retrieved. Specifying
null causes all properties to be retrieved. Specifying a
client-calculated property causes all dependent properties to
be included.depth - The number of levels deep in the folder tree that child
folders should also be populated. A value of 0
causes only this folder to be populated. A positive value
n will cause this folder and all subfolders up to
n levels deeper to be populated. A negative value
causes this folder and all subfolders to be populated.
DisembodiedException - if the Folder is disembodied.VCMFolder.getItems(com.starteam.Item.Type),
ViewMember.refresh(),
ViewMember.isDisembodied()
public void populate(Item.Type type,
int depth)
populate() does not retrieve any items or properties that have already been cached. Therefore, the item and property information may or may not be up-to-date with respect to the latest information on the server. To ensure that the item and property information is up-to-date, use refresh().
When an application attempts to access the value of a given property of an item, and that property has not yet been retrieved from the server, a command is issued to the server to retrieve all the properties of that item and cache them locally. For applications that examine many items, it is much more efficient to populate all the required properties up front, using populate().
It is sometimes difficult to determine exactly which item properties are used by a given application. If performance problems cause you to suspect that there is a property that has not been populated correctly, you can use NetMonitor to help diagnose the problem. If accessing a specific item property results in a fetch from the server, NetMonitor will display a message indicating which property caused the fetch.
populate in class Foldertype - The type of the items to be retrieved.depth - The number of levels deep in the folder tree that child
folders should also be populated. A value of 0
causes only this folder to be populated. A positive value
n will cause this folder and all subfolders up to
n levels deeper to be populated. A negative value
causes this folder and all subfolders to be populated.
DisembodiedException - if the Folder is disembodied.VCMFolder.getItems(com.starteam.Item.Type),
ViewMember.refresh(),
ViewMember.isDisembodied()
public boolean isRefreshItemsRequired(Item.Type type,
PropertyCollection properties,
int depth)
isRefreshItemsRequired in class Foldertype - The type of the items to be examined.properties - The names of the properties whose values are to be examined.
Specifying null causes all properties to be examined.
Specifying a client-calculated property causes all dependent
properties to be examined.depth - The number of levels deep in the folder tree that child
folders should also be examined. A value of 0
causes only this folder to be examined. A positive value
n will cause this folder and all subfolders up to
n levels deeper to be examined. A negative value
causes this folder and all subfolders to be examined.
DisembodiedException - if the Folder is disembodied.VCMFolder.refreshItems(com.starteam.Item.Type, com.starteam.PropertyCollection, int),
ViewMember.isDisembodied(),
Server.enableMPX()
public void refreshItems(Item.Type type,
PropertyCollection pc,
int depth)
refreshItems() is similar to populateNow(). However, refreshItems() ensures that the list of items and the properties of each item are up-to-date with respect to the latest information on the server.
refreshItems() re-uses existing Item objects whenever possible, changing cached property values as necessary to bring older Items up-to-date.
When MPX is enabled, refreshItems() is optimized to avoid unnecessary server commands.
refreshItems in class Foldertype - The type name of the items to be refreshed.pc - The names of the properties whose values are to be refreshed.
Specifying null causes all properties to be refreshed.
Specifying a client-calculated property causes all dependent
properties to be refreshed.depth - The number of levels deep in the folder tree that child
folders should also be refreshed. A value of 0
causes only this folder to be refreshed. A positive value
n will cause this folder and all subfolders up to
n levels deeper to be refreshed. A negative value
causes this folder and all subfolders to be refreshed.
DisembodiedException - if the Folder is disembodied.VCMFolder.getItems(com.starteam.Item.Type),
VCMFolder.isRefreshItemsRequired(com.starteam.Item.Type, com.starteam.PropertyCollection, int),
VCMFolder.discardItems(Item.Type, int),
ViewMember.isDisembodied(),
Server.enableMPX()
public void discardItems(Item.Type type,
int depth)
getItems will re-fetch the items from the server
(even when MPX is enabled).
discardItems in class Foldertype - The type of the items to be discarded.depth - The number of levels deep in the folder tree that items should
also be discarded. A value of 0 causes only the
items in this folder to be discarded. A positive value
n will cause the items in this folder and in all
subfolders up to n levels deeper to be discarded.
A negative value causes the items in this folder and in all
subfolders to be discarded.
DisembodiedException - if the Folder is disembodied.VCMFolder.populate(Item.Type, PropertyCollection, int),
VCMFolder.refreshItems(Item.Type, PropertyCollection, int),
ViewMember.isDisembodied(),
Server.enableMPX()
public long countItems(Item.Type type,
int depth)
countItems in class Foldertype - Type the type of Item for which the count is to be retrieved
If verbosePreview is set to true, then the returned count
includes all unchanged items of the specified typedepth - int The number of levels deep in the folder tree that child
folders should also be populated. A value of 0
causes only this folder to be populated. A positive value
n will cause this folder and all subfolders up to
n levels deeper to be populated. A negative value
causes this folder and all subfolders to be populated.
Session.isVerbosePreviewpublic VCMFolder.PreviewState getPreviewState(Item.Type type)
type - Type the type for which to request the state (use null for all
types).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||