|
||||||||||
| 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
Represents a StarTeam View.
| Constructor Summary | |
View(View parent,
boolean bIsVariantView,
boolean bIsROView,
java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
A constructor used to create a new view. |
|
View(View parent,
java.lang.String name,
java.lang.String description,
java.lang.String defaultWorkingFolder)
A constructor used to create a blank view. |
|
View(View view,
ViewConfiguration configuration)
A view "copy" constructor that allows the specification of an arbitrary configuration. |
|
| Method Summary | |
void |
acquireOwnership()
Sets ownership of this securable object to the logged in user. |
void |
addFolderListener(IFolderListener listener)
Adds a listener for Folder-related events. |
void |
addFolderUpdateListener(FolderUpdateListener listener)
Listens for updates to this view's folder tree. |
void |
addItemListener(IItemListener listener,
Type type)
Adds a listener for Item-related events. |
void |
addItemListener(IItemListener listener,
Type type,
java.lang.String[] propertyNames)
Adds a listener for Item-related events. |
void |
addItemUpdateListener(ItemUpdateListener listener,
Type type)
Listens for updates to the items of a given type in this view. |
void |
addLabelListener(LabelListener listener)
Adds a listener for Label events. |
void |
addViewListener(ViewListener listener)
Adds a listener for View events. |
Label |
cloneRevisionLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean frozen)
Clones the specified "Revision" label. |
Label |
cloneViewLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean buildLabel,
boolean frozen)
Clones the specified "View" label. |
void |
close()
Frees all cached resources associated with this view, and closes the associated view session. |
View |
copy()
Creates a copy of this View object, with view properties fully populated. |
CheckinManager |
createCheckinManager()
Constructs a CheckinManager with default options for this view. |
CheckinManager |
createCheckinManager(CheckinOptions options)
Constructs a CheckinManager using a specific set of options. |
CheckoutManager |
createCheckoutManager()
Constructs a CheckoutManager with default options for this view. |
CheckoutManager |
createCheckoutManager(CheckoutOptions options)
Constructs a CheckoutManager using a specific set of options. |
View |
createChildViewShareAllItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
Create a new variant view as a child of this view, that initially shares items of all item types supported on this server. |
View |
createChildViewShareDefaultItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
Create a new variant view as a child of this view, that initially shares items of the default set of item types defined for this view's Project. |
View |
createChildViewShareNoItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
Create a new variant view as a child of this view, that initially shares no items. |
View |
createChildViewShareTheseItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched,
Type[] itemTypes)
Create a new variant view as a child of this view, that initially shares items based on the set of item Types provided. |
Label |
createRevisionLabel(java.lang.String name,
java.lang.String description,
boolean frozen)
Create a new "Revision" label with the specified properties. |
Label |
createViewLabel(java.lang.String name,
java.lang.String description,
OLEDate time,
boolean buildLabel,
boolean frozen)
Create a new "View" label with the specified properties. |
void |
discard()
Discards all of the cached properties for this view. |
void |
discardActiveLabels()
Discard any cached active (non-deleted) labels. |
void |
discardFolders()
Discards all cached Folder information. |
void |
discardLabels()
Discards cached Label information. |
boolean |
equals(java.lang.Object another)
Returns true if the specified object identifies the same view as this one. |
Label[] |
fetchAllLabels()
Returns all the active (non-deleted) labels for this view. |
Label[] |
fetchAllLabelsFromView(int projectID,
int viewID)
Returns all the active (non-deleted) labels for the given project and view. |
Folder |
findFolder(int itemID)
Returns a Folder in the View, given its Item ID, or NULL if none found. |
Item |
findItem(Type type,
int itemID)
Returns an Item in the View, given its Type and Item ID, or NULL if none found. |
java.lang.Object |
get(java.lang.String propertyName)
Return the value for the specified property. |
AclEntry[] |
getACL()
Returns the Access Control List for this view. |
Label[] |
getActiveLabels()
Returns all the active (non-deleted) labels for this view. |
java.lang.String |
getAlternatePath()
Returns the alternate working file path to be used for this view. |
ViewConfiguration |
getBaseConfiguration()
Returns the ViewConfiguration from which this View was derived. |
ViewConfiguration |
getConfiguration()
Returns this view's configuration. |
AclEntry[] |
getContainerLevelACL(java.lang.String typeName)
Returns the Access Control List for items of the specified type for this view. |
int |
getCreatedBy()
Returns the user ID of the user that created the view. |
OLEDate |
getCreatedTime()
Returns the time at which the view was created. |
java.lang.String |
getDefaultPath()
Returns the default working file path to be used for this view. |
View[] |
getDerivedViews()
Returns the set of views derived from this one. |
java.lang.String |
getDescription()
Returns the description of this view. |
Item |
getDisembodiedItem(int itemID,
Type type)
Retrieves an Item by Item ID. |
FileBasedStatusManager |
getFileStatusManager()
Get the FileBasedStatusManager that manages file status information for this View. |
java.lang.String |
getFullName()
Returns the full hierarchical name of this view--that is, the concatentation of the root view and each descendent to this view. |
boolean |
getHaveAccessRights()
Indicates whether or not the logged on user has rights to access this view. |
Item[] |
getHistoryForItemID(int itemID,
Type type)
Returns "disembodied" Items from the item history |
int |
getID()
Returns the unique integer identifier for this view. |
Label[] |
getLabels()
Returns the labels that exist in this view, including both active and deleted labels. |
java.lang.String |
getName()
Returns the name of this view. |
NotificationItem[] |
getNewNotificationItems(java.lang.String typeName)
Return the list of "notification" items for the specified type. |
int |
getOwner()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
ISecurableContainer |
getParentContainer()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
View |
getParentView()
Returns the parent of this view. |
java.lang.String |
getPath()
Returns the working file path being used for this view. |
Project |
getProject()
Returns the project to which this view belongs. |
PromotionModel |
getPromotionModel()
Returns the promotion model associated with this view. |
RecycleBin |
getRecycleBin()
Provides access to the items that have been deleted from a view. |
Folder |
getRootFolder()
Gets the root folder of this view. |
Server |
getServer()
Returns the server to which this view belongs. |
StatusMethod |
getStatusMethodOverride()
Returns the status method used to determine status for files in this view. |
int |
getViewID()
Returns the unique integer identifier for this view. |
int |
hashCode()
Returns a hash code for this view. |
boolean |
hasNewNotificationItems(java.lang.String typeName)
Return true if any new notification items are available in this view for the specified item type. |
boolean |
hasPermission(int permissions)
Returns true if desired permissions are granted for this view |
boolean |
hasPermission(int permissions,
java.lang.String typeName)
Returns true if desired permissions are granted for items of the specified type for this view |
boolean |
isBranch()
Return true if this view is a Branch view. |
boolean |
isBranchAll()
Return true if this view's original branching default was set "All". |
boolean |
isBranchNone()
Return true if this view's original branching default was set "None". |
boolean |
isBranchOnShare()
Returns true if this view is set to branch shared items. |
boolean |
isDeleted()
Determines whether or not this view has been deleted from the server. |
boolean |
isEqualTo(View view)
Compares the properties of two Views. |
boolean |
isNonDerived()
Return true if this view is a Non-Derived view. |
boolean |
isReadOnly()
Return true if this is a ReadOnly view, otherwise false. |
boolean |
isReference()
Return true if this is a reference view, otherwise false. |
boolean |
isRefreshActiveLabelsRequired()
Returns true if a refreshLabels() operation might have resulted in Label information for active (non-deleted) labels being updated; returns false if and only if it is known that the Labels had not been changed since the last refresh. |
boolean |
isRefreshFoldersRequired()
Returns true if a View.refreshFolders() operation might have resulted in Folder information being updated; returns false if and only if it is known that the folders had not been changed since the last refresh. |
boolean |
isRefreshLabelsRequired()
Returns true if a refreshLabels() operation might have resulted in Label information being updated; returns false if and only if it is known that the Labels had not been changed since the last refresh. |
boolean |
isRefreshRequired()
Returns true if a refresh() operation might have resulted in view properties being updated; returns false if and only if it is known that the view properties had not been changed since the last refresh. |
boolean |
isRoot()
Return true if this view is a Root view. |
void |
modifyItemsFlagForUser(int[] itemIDs,
Type type,
boolean setFlagged)
Modifies this items flag for the logged-in user. |
void |
modifyItemsReadStatusForUser(int[] itemIDs,
Type type,
boolean bSetAsRead)
Modifies this list of item's read status for the logged-in user. |
void |
populate()
Populates project properties, if they have not already been populated. |
java.lang.Object |
put(java.lang.String propertyName,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
java.lang.Object |
putByPropertyID(int propertyID,
java.lang.Object value)
Set the value of the property specified by its property ID and return the old value. |
void |
refresh()
Updates cached properties to reflect recent changes made on the server. |
void |
refreshActiveLabels()
Refreshes cached Label information for active (non-deleted) labels to reflect recent changes to the repository. |
void |
refreshFolders()
Updates cached Folder information to reflect recent changes to the server. |
void |
refreshLabels()
Refreshes cached Label information to reflect recent changes to the repository. |
void |
refreshPromotionModel()
Refreshes the local cached information about this view's promotion model. |
void |
remove()
Removes the view from the server. |
void |
removeFolderListener(IFolderListener listener)
Removes a listener for Folder-related events. |
void |
removeFolderUpdateListener(FolderUpdateListener listener)
Removes a listener for folder update events. |
void |
removeItemListener(IItemListener listener,
Type type)
Removes a listener for Item-related events. |
void |
removeItemUpdateListener(ItemUpdateListener listener,
Type type)
Removes a listener for item update events. |
void |
removeLabelListener(LabelListener listener)
Removes a listener for Label events. |
void |
removeViewListener(ViewListener listener)
Removes a listener for View events. |
Item |
resolveLinkEndpoint(LinkEndpoint endpoint)
Returns the item in this view referred to by the LinkEndpoint. |
void |
setACL(AclEntry[] acl)
Modify the Access Control List for this view. |
void |
setAlternatePath(java.lang.String path)
Sets the alternate working file path to be used for this view. |
void |
setBranchOnShare(boolean branchOnShare)
Sets the Branch On Share behavior for this view (only on servers that support it). |
void |
setContainerLevelACL(AclEntry[] acl,
java.lang.String typeName)
Modifies the Access Control List for items of the specified type for this view. |
void |
setDefaultPath(java.lang.String path)
Sets the default working file path to be used for this view. |
void |
setDescription(java.lang.String description)
Sets the description for this view. |
void |
setName(java.lang.String name)
|
void |
setStatusMethodOverride(StatusMethod method)
Changes the status method to use for files in this view. |
java.lang.String |
toString()
Returns a string representation of this view and its properties. |
void |
update()
Persists this view's properties to its Server. |
| 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 |
| Constructor Detail |
public View(View parent,
boolean bIsVariantView,
boolean bIsROView,
java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
parent - the new view's parent view.bIsVariantView - true for a variant view, false for a reference view.bIsROView - true for a read-only view, false for a normal view.name - the new view's name.description - the new view's description.rootFolder - the root folder for the view. This must be a valid folder from the specified configuration of the parent view.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.baseConfig - the ViewConfiguration for the view. For a derived view, specify the parent view's configuration. For a floating view, specify a "current" configuration.bIsBranched - true for branch on change. Sets initial branching behavior in derived variant views for all items shared during the view creation from the active view. Specify true for default branching, false for default floating.ViewConfiguration
public View(View parent,
java.lang.String name,
java.lang.String description,
java.lang.String defaultWorkingFolder)
parent - the new view's parent view.name - the new view's name.description - the new view's description.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.
public View(View view,
ViewConfiguration configuration)
view - the view being configuredconfiguration - the desired configuration of the specified view.| Method Detail |
public View createChildViewShareAllItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
rootFolder - may not be nullname - the new view's name.description - the new view's description.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.baseConfig - the ViewConfiguration for the view. Specify the configuration of this view that is used as a starting point for the new variant view.bIsBranched - true for branch on change. Sets initial branching behavior for all items shared from this view during view creation. Specify true for default branching, false for default floating.
ViewConfiguration
public View createChildViewShareDefaultItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
rootFolder - may not be nullname - the new view's name.description - the new view's description.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.baseConfig - the ViewConfiguration for the view. Specify the configuration of this view that is used as a starting point for the new variant view.bIsBranched - true for branch on change. Sets initial branching behavior for all items shared from this view during view creation. Specify true for default branching, false for default floating.
ViewConfiguration
public View createChildViewShareNoItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
rootFolder - may not be nullname - the new view's name.description - the new view's description.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.baseConfig - the ViewConfiguration for the view. Specify the configuration of this view that is used as a starting point for the new variant view.bIsBranched - true for branch on change. Sets initial branching behavior for all items shared from this view during view creation. Specify true for default branching, false for default floating.
ViewConfiguration
public View createChildViewShareTheseItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched,
Type[] itemTypes)
rootFolder - may not be nullname - the new view's name.description - the new view's description.defaultWorkingFolder - the default working folder path for the view. This can be overridden on each workstation as needed.baseConfig - the ViewConfiguration for the view. Specify the configuration of this view that is used as a starting point for the new variant view.bIsBranched - true for branch on change. Sets initial branching behavior for all items shared from this view during view creation. Specify true for default branching, false for default floating.itemTypes - an array containing the set of Types of the items that will initially be shared from this view during view creation.
ViewConfiguration,
Type
public java.lang.Object get(java.lang.String propertyName)
throws NoSuchPropertyException
get in class SimpleTypedResourcepropertyName - the name of property to be retreived
NoSuchPropertyException - if the named property does not exist
public java.lang.Object put(java.lang.String propertyName,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
put in class SimpleTypedResourcepropertyName - the name of the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified property
public java.lang.Object putByPropertyID(int propertyID,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
putByPropertyID in class SimpleTypedResourcepropertyID - the ID of the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified propertyProperty.getID()public void populate()
View.refresh()public java.lang.String getPath()
public boolean isRefreshRequired()
View.refresh(),
Server.enableMPX()public void refresh()
View.isRefreshRequired(),
View.populate(),
Server.enableMPX()public View copy()
View.isEqualTo(com.starbase.starteam.View)public boolean isEqualTo(View view)
view - The view to be compared to this one.
View.copy()public boolean isReference()
public boolean isReadOnly()
public boolean isRoot()
public boolean isBranch()
public boolean isNonDerived()
public boolean isBranchAll()
public boolean isBranchNone()
public boolean isBranchOnShare()
public void setBranchOnShare(boolean branchOnShare)
throws NoSuchPropertyException
branchOnShare - true = branch shared items.
NoSuchPropertyExceptionpublic boolean getHaveAccessRights()
public int getViewID()
public int getID()
getID in class SimpleTypedResourcegetViewID.public Label[] getLabels()
View.refreshLabels(),
View.getActiveLabels()public Label[] getActiveLabels()
View.refreshActiveLabels(),
View.getLabels()public void discardActiveLabels()
View.getActiveLabels(),
View.refreshActiveLabels(),
Server.enableMPX()public boolean isRefreshActiveLabelsRequired()
View.refreshActiveLabels(),
Server.enableMPX()public void refreshActiveLabels()
View.isRefreshActiveLabelsRequired(),
View.getActiveLabels(),
View.discardActiveLabels(),
View.refreshLabels(),
Server.enableMPX()public Label[] fetchAllLabels()
The labels are not cached in the View object. Each call to fetchAllLabels() returns an up-to-date list consisting of newly allocated Label objects.
If MPX is enabled, fetchAllLabels() is optimized to avoid unnecessary server commands.
public Label[] fetchAllLabelsFromView(int projectID,
int viewID)
The labels are not cached. Each call to fetchAllLabels() returns an up-to-date list consisting of newly allocated Label objects.
fetchAllLabelsFromView() is not MPX-enabled; the labels are always retrieved directly from the repository.
public Label createViewLabel(java.lang.String name,
java.lang.String description,
OLEDate time,
boolean buildLabel,
boolean frozen)
name - the label name (may not be null)description - the label description (may not be null)time - the view configuration time (may not be null)buildLabel - true if the label is to be a "Build Label"frozen - true if the label is "frozen" (a frozen label can not be moved from one revision to another)
public Label createRevisionLabel(java.lang.String name,
java.lang.String description,
boolean frozen)
name - the label name (may not be null)description - the label description (may not be null)frozen - true if the label is "frozen" (a frozen label can not be moved from one revision to another)
public Label cloneViewLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean buildLabel,
boolean frozen)
source - the label to be cloned (it must be from the active view)name - the label name (may not be null)description - the label description (may not be null)buildLabel - true if the label is to be a "Build Label"frozen - true if the label is "frozen" (a frozen label can not be moved from one revision to another)
public Label cloneRevisionLabel(Label source,
java.lang.String name,
java.lang.String description,
boolean frozen)
source - the label to be cloned (it must be from the active view)name - the label name (may not be null)description - the label description (may not be null)frozen - true if the label is "frozen" (a frozen label can not be moved from one revision to another)public PromotionModel getPromotionModel()
public java.lang.String getDefaultPath()
public void setDefaultPath(java.lang.String path)
path - the new default pathpublic java.lang.String getAlternatePath()
public void setAlternatePath(java.lang.String path)
path - the new alternate pathpublic void setStatusMethodOverride(StatusMethod method)
method - the new status method to use, may not be null.public StatusMethod getStatusMethodOverride()
public FileBasedStatusManager getFileStatusManager()
SupportedFeatures.hasClientManagedFileStatus(),
StatusMethod.getStatusManagerForView(com.starbase.starteam.View)public Folder getRootFolder()
View.refreshFolders(),
View.discardFolders()public ViewConfiguration getConfiguration()
public ViewConfiguration getBaseConfiguration()
ViewConfigurationpublic OLEDate getCreatedTime()
public int getCreatedBy()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description for this viewpublic java.lang.String getFullName()
public Server getServer()
public java.lang.String getName()
PropertyNames.VIEW_NAMEpublic void setName(java.lang.String name)
public Project getProject()
public View getParentView()
public View[] getDerivedViews()
public CheckinManager createCheckinManager()
public CheckinManager createCheckinManager(CheckinOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckinListener, and changing options as necessary in the onStartFile event handler.
options - The specific CheckinOtions to be used.CheckinOptions,
#addCheckinListener,
CheckinListener.onStartFile(com.starbase.starteam.CheckinEvent)public CheckoutManager createCheckoutManager()
public CheckoutManager createCheckoutManager(CheckoutOptions options)
Note that individual options can be overridden on a file-by-file basis by registering a CheckoutListener, and changing options as necessary in the onStartFile event handler.
options - The specific CheckoutOtions to be used.CheckoutOptions,
#addCheckoutListener,
CheckoutListener.onStartFile(com.starbase.starteam.CheckoutEvent)public boolean hasPermission(int permissions)
hasPermission in interface ISecurablepermissions - the desired permissions
Permission
public boolean hasPermission(int permissions,
java.lang.String typeName)
hasPermission in interface ISecurableContainerpermissions - the desired permissionstypeName - the name of the type for access to be tested on
Permission,
TypeNamespublic AclEntry[] getACL()
getACL in interface ISecurableAclEntrypublic void setACL(AclEntry[] acl)
setACL in interface ISecurableacl - the new access control list or null if to be dropped.AclEntrypublic AclEntry[] getContainerLevelACL(java.lang.String typeName)
getContainerLevelACL in interface ISecurableContainertypeName - the name of the type being controlled by the returned ACL
TypeNames
public void setContainerLevelACL(AclEntry[] acl,
java.lang.String typeName)
setContainerLevelACL in interface ISecurableContaineracl - the new access control list or null if to be droppedtypeName - the name of the type being controlled by the returned ACLTypeNamespublic Folder findFolder(int itemID)
itemID - the Item ID of the Folder to be retrieved.
public Item findItem(Type type,
int itemID)
type - the Type of the Item to be retrieved.itemID - the Item ID of the Item to be retrieved.
public void remove()
public boolean isDeleted()
public void discard()
If the properties of a view are changed, and discard() is called without first calling update(), the changes will be lost.
View.refresh()public void update()
Server.
public void discardLabels()
View.getLabels(),
View.refreshLabels()public boolean isRefreshLabelsRequired()
View.refreshLabels(),
Server.enableMPX()public void refreshLabels()
View.isRefreshLabelsRequired(),
View.getLabels(),
View.discardLabels(),
Server.enableMPX()public void refreshPromotionModel()
public void refreshFolders()
If MPX is enabled, refreshFolders() is optimized to avoid unnecessary server commands.
In all cases, refreshFolders() has the side effect of clearing any Item lists that have already been populated. Thus, the next attempt to retrieve the Items will return an up-to-date list consisting of newly allocated Item objects. If MPX is enabled, the process of re-populating the Item lists is optimized to avoid unnecessary server commands.
View.isRefreshFoldersRequired(),
View.getRootFolder(),
View.discardFolders(),
Server.enableMPX()public boolean isRefreshFoldersRequired()
View.refreshFolders(),
Server.enableMPX()public void discardFolders()
View.getRootFolder(),
View.refreshFolders()public Item resolveLinkEndpoint(LinkEndpoint endpoint)
LinkEndpoint. If the reference is pinned to a
historical (non-tip) version, that version is returned from the
history of the tip item in this view.
endpoint - the endpoint to be resolved
LinkEndpoint or null
if the reference does not refer to a valid item in this view.
public void modifyItemsReadStatusForUser(int[] itemIDs,
Type type,
boolean bSetAsRead)
itemIDs - the collection of Item IDs to modify (may not be null)type - the Type of the Items represented by the Item IDs (may not be null)bSetAsRead - this items new read statusItem.getReadStatus()
public void modifyItemsFlagForUser(int[] itemIDs,
Type type,
boolean setFlagged)
itemIDs - the collection of Item IDs to modify (may not be null)type - the Type of the Items represented by the Item IDs (may not be null)setFlagged - this items new flag valueItem.getFlag(),
Item.getPossibleFlag(),
Item.getFlagDisplayName(int),
PropertyNames.FLAG
public Item getDisembodiedItem(int itemID,
Type type)
Disembodied Items are useful for resolving LinkEndpoints, which can cross project and view boundaries. However, many normal Item operations are not supported for disembodied items.
getDisembodiedItem() is not MPX-enabled; each call to getDisembodiedItem() retrieves data directly from the server.
Item.isDisembodied(),
LinkEndpoint.getItem()
public Item[] getHistoryForItemID(int itemID,
Type type)
Item.isDisembodied()public boolean equals(java.lang.Object another)
equals in class SimpleTypedResourceanother - the object being tested for equality
public int hashCode()
hashCode in class SimpleTypedResourcepublic boolean hasNewNotificationItems(java.lang.String typeName)
typeName - the desired item typepublic NotificationItem[] getNewNotificationItems(java.lang.String typeName)
typeName - the desired item type
public java.lang.String toString()
toString in class TypedResourcepublic void close()
Many view-related resources, such as the folder tree, item lists and so on, can be discarded separately. Others, however, are freed only by an explicit call to close().
After a view is closed, the view object is still useful. The view session is automatically re-opened when needed, and data is re-fetched from the server on demand.
View.discard(),
View.discardFolders(),
View.discardLabels(),
Folder.discardItems(java.lang.String, int),
Server.disconnect()public RecycleBin getRecycleBin()
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());
}
Note that this method is supported by StarTeam Server versions 9.0 and later.
RecycleBinpublic void addViewListener(ViewListener listener)
Event handlers will be tiggered when this View is changed or deleted.
In order to handle events, an application must enable MPX. The logged-in user must have access permissions for this View.
listener - Application-specific event handler for View events.ViewListener,
ViewAdapter,
View.removeViewListener(com.starbase.starteam.ViewListener),
Server.enableMPX()public void removeViewListener(ViewListener listener)
listener - Previously-registered event handler for View events.ViewListener,
View.addViewListener(com.starbase.starteam.ViewListener)public void addLabelListener(LabelListener listener)
Event handlers will be tiggered whenever a Label is added, changed, or deleted in this View.
In order to handle events, an application must enable MPX. The logged-in user must have access permissions for this View.
listener - Application-specific event handler for Label events.LabelListener,
LabelAdapter,
View.removeLabelListener(com.starbase.starteam.LabelListener),
Server.enableMPX()public void removeLabelListener(LabelListener listener)
listener - Previously-registered event handler for Label events.LabelListener,
View.addLabelListener(com.starbase.starteam.LabelListener)public void addFolderListener(IFolderListener listener)
In order to handle events, an application must enable MPX.
listener - Application-specific event handler for Folder-related
events. Any class that implements the FolderListener or
FolderTreeListener interface (or both) is supported.IFolderListener,
FolderListener,
FolderAdapter,
FolderTreeListener,
FolderTreeAdapter,
View.removeFolderListener(com.starbase.starteam.IFolderListener),
Server.enableMPX()public void removeFolderListener(IFolderListener listener)
listener - Previously-registered event handlers for Folder-related events.IFolderListener,
View.addFolderListener(com.starbase.starteam.IFolderListener)public void addFolderUpdateListener(FolderUpdateListener listener)
Similar to addFolderListener(), except that events are triggered by explicit operations performed by the client application. For example, calling View.refreshFolders(), Folder.update() or Folder.remove() might each trigger update events.
MPX is not required to receive folder update events.
listener - Application-specific event handler for folder update
events.FolderUpdateListener,
View.removeFolderUpdateListener(com.starbase.starteam.FolderUpdateListener),
View.addFolderListener(com.starbase.starteam.IFolderListener)public void removeFolderUpdateListener(FolderUpdateListener listener)
listener - Previously-registered event handler for folder update events.FolderUpdateListener,
View.addFolderUpdateListener(com.starbase.starteam.FolderUpdateListener)
public void addItemListener(IItemListener listener,
Type type)
If listener is an ItemListener, then Item objects passed to application event handlers may not have fully-populated properties. The only properties that are guaranteed to be populated in all cases are the Item's descriptors.
In order to handle events, an application must enable MPX.
listener - Application-specific event handler for Item-related
events. Any class that implements one (or more) of the IItemListener
interfaces is supported.type - The Type of the items of interest.IItemListener,
ItemListener,
ItemIDListener,
ItemListListener,
NotificationListener,
View.addItemListener(IItemListener,Type,String[]),
View.removeItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type),
Server.enableMPX()
public void addItemListener(IItemListener listener,
Type type,
java.lang.String[] propertyNames)
In order to handle events, an application must enable MPX.
listener - Application-specific event handler for Item-related
events. Any class that implements one (or more) of the IItemListener
interfaces is supported.type - The Type of the items of interest.propertyNames - Names of properties that must always be populated
whenever an Item object is passed to an application event-handler.
Relevant only when listener is an ItemListener.IItemListener,
ItemListener,
ItemIDListener,
ItemListListener,
NotificationListener,
View.addItemListener(IItemListener,Type),
View.removeItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type),
Server.enableMPX()
public void removeItemListener(IItemListener listener,
Type type)
listener - Previously-registered event handlers for Item-related events.type - The Type of the items of interest.IItemListener,
View.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type)
public void addItemUpdateListener(ItemUpdateListener listener,
Type type)
Similar to addItemListener(), except that events are triggered by explicit operations performed by the client application. For example, calling Folder.refreshItems(), Item.update() or Item.remove() might each trigger update events.
MPX is not required to receive item update events.
listener - Application-specific event handler for item update
events.type - The Type of the items of interest.ItemUpdateListener,
View.removeItemUpdateListener(com.starbase.starteam.ItemUpdateListener, com.starbase.starteam.Type),
View.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type)
public void removeItemUpdateListener(ItemUpdateListener listener,
Type type)
listener - Previously-registered event handler for item update events.type - The Type of the items of interest.ItemUpdateListener,
View.addItemUpdateListener(com.starbase.starteam.ItemUpdateListener, com.starbase.starteam.Type)public int getOwner()
getOwner in interface ISecurableObjectSystemPolicy.getSkipOwnershipCheck()public void acquireOwnership()
acquireOwnership in interface ISecurableObjectpublic ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableISecurableContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||