|
|||||||||
| 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.View
public class View
Represents a StarTeam View.
| Nested Class Summary | |
|---|---|
static class |
View.Type
Type for view |
static class |
View.ViewType
Defines the Types of a View This property is new to 12.0+ servers |
static class |
View.WebCacheView
View accessor for cached SDK views contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| 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 |
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,
Item.Type type)
Adds a listener for Item-related events. |
void |
addItemListener(IItemListener listener,
Item.Type type,
PropertyCollection properties)
Adds a listener for Item-related events. |
void |
addItemUpdateListener(ItemUpdateListener listener,
Item.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. |
void |
addViewMemberListener(ViewMemberListener listener,
ViewMember.Type type)
Adds a listener for non-Item ViewMember-related events. |
void |
addViewMemberListener(ViewMemberListener listener,
ViewMember.Type type,
PropertyCollection properties)
Adds a listener for non-Item ViewMember-related events. |
void |
addViewMemberUpdateListener(ViewMemberUpdateListener listener,
ViewMember.Type type)
Listens for updates to the view members of a given type in this view. |
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,
TypeCollection types)
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,
DateTime 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[] |
fetchAllLabels(View view)
Returns all the active (non-deleted) labels for any given View |
View |
findDerivedView(java.lang.String name)
Return an immediate derived view with the specified name or NULL if none exist |
Folder |
findFolder(int itemID)
Returns a Folder in the View, given its Item ID, or NULL if none found. |
Item |
findItem(Item.Type type,
int itemID)
Returns an Item in the View, given its Type and Item ID, or NULL if none found. |
Label |
findLabel(int labelID)
find and return a Label given it's label ID |
Label |
findLabel(java.lang.String labelName)
find and return a label given its name |
ViewMember |
findViewMember(ViewMember.Type type,
int VMID)
Returns a ViewMember in the View, given its Type and VMID, or NULL if none found. |
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. |
ChangePackageCollection |
getChangePackages()
Gets the change packages contained in this view. |
ViewConfiguration |
getConfiguration()
Returns this view's configuration. |
DateTime |
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(Item.Type type,
int itemID)
Retrieves an Item by Item ID. |
ViewMember |
getDisembodiedViewMember(ViewMember.Type type,
int vmID)
Retrieves a ViewMember by VMID. |
DateTime |
getEndDate()
Gets the end date of this view. |
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 concatenation of the root view and each descendant to this view. |
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. |
ViewMemberCollection |
getNewNotificationItems(Item.Type type)
Return the list of "notification" items for the specified type. |
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. |
int |
getPresentationID()
Returns the unique integer identifier for this view. |
Project |
getProject()
Returns the project to which this view belongs. |
PromotionModel |
getPromotionModel()
Returns the promotion model associated with this view. |
View.Type.PropertyCollection |
getProperties()
|
RecycleBin |
getRecycleBin()
Provides access to the items that have been deleted from a view. |
ACE[] |
getRights()
Returns the Access Control List for this view. |
ACE[] |
getRights(Type type)
Returns the Access Control List for items of the specified type for this view. |
Folder |
getRootFolder()
Gets the root folder of this view. |
Server |
getServer()
Returns the server to which this view belongs. |
DateTime |
getStartDate()
Gets the start date of this view. |
StatusMethod |
getStatusMethodOverride()
Returns the status method used to determine status for files in this view. |
TraceCollection |
getTraces()
Gets the traces which exists in this view. |
java.lang.Object |
getValue(Property property)
Return the value for the specified property. |
int |
getViewID()
Returns the unique integer identifier for this view. |
ViewMemberCollection |
getViewMembers(ViewMember.Type type)
Gets the view members of the given type contained in this view. |
View.ViewType |
getViewType()
Gets the type (Unknown, Main, Sandbox, Release) of this View. |
Workflow |
getWorkflow(ViewMember.Type typ)
Returns the type specific workflow definition for this view, if any If a workflow has not been defined for the view, but a project wide workflow has been defined for the type, the project workflow is returned If a project wide workflow has not been defined then the server wide workflow for the type is returned. |
int |
hashCode()
Returns a hash code for this view. |
boolean |
hasNewNotificationItems(Item.Type type)
Return true if any new notification items are available in this view for the specified item type. |
boolean |
hasPermissions(PermissionCollection permissions)
Returns true if desired permissions are granted for this view |
boolean |
hasPermissions(PermissionCollection permissions,
Type type)
Returns true if desired permissions are granted for items of the specified type for this view |
boolean |
isAccessible()
Determines whether or not the logged on user has access to 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 |
populate()
Populates view properties, if they have not already been populated. |
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,
Item.Type type)
Removes a listener for Item-related events. |
void |
removeItemUpdateListener(ItemUpdateListener listener,
Item.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. |
void |
removeViewMemberListener(ViewMemberListener listener,
ViewMember.Type type)
Removes a listener for non-Item ViewMember-related events. |
void |
removeViewMemberUpdateListener(ViewMemberUpdateListener listener,
ViewMember.Type type)
Removes a listener for view member update events. |
Item |
resolveLinkEndpoint(Link.Endpoint endpoint)
Returns the item in this view referred to by the LinkEndpoint. |
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 |
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 |
setEndDate(DateTime endDate)
Sets the end date of this view. |
void |
setName(java.lang.String name)
Set the name of this view. |
void |
setRights(ACE[] acl)
Modify the Access Control List for this view. |
void |
setRights(Type type,
ACE[] acl)
Modifies the Access Control List for items of the specified type for this view. |
void |
setStartDate(DateTime startDate)
Sets the start date of this view. |
void |
setStatusMethodOverride(StatusMethod method)
Changes the status method to use for files in this view. |
java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
void |
setViewType(View.ViewType type)
Sets the type of this View. |
java.lang.String |
toString()
Returns the name of this view. |
void |
update()
Persists this view's properties to its Server. |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.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.Type.PropertyCollection getProperties()
public View createChildViewShareAllItems(java.lang.String name,
java.lang.String description,
Folder rootFolder,
java.lang.String defaultWorkingFolder,
ViewConfiguration baseConfig,
boolean bIsBranched)
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. 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)
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. 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)
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. 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,
TypeCollection types)
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. 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.types - an array containing the set of Types of the items that will
initially be shared from this view during view creation.
ViewConfiguration,
View.ViewType
public java.lang.Object getValue(Property property)
throws NoSuchPropertyException
getValue in class TypedResourceproperty - the property to be retrieved
NoSuchPropertyException - if the named property does not exist
public java.lang.Object setValue(Property property,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
setValue in class TypedResourceproperty - 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 propertypublic void populate()
View.refresh()public boolean isRefreshRequired()
View.refresh(),
Server.enableMPX()public void refresh()
View.isRefreshRequired(),
View.populate(),
Server.enableMPX()public View copy()
View.isEqualTo(com.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 isAccessible()
Project.getAccessibleViews()public int getViewID()
java.lang.RuntimeException - if the user does not have the right to access the viewView.getID(),
View.isAccessible()public int getID()
getID in interface ISecurablegetID in interface ISecurableContainergetID in class TypedResourcegetViewID.View.getViewID()public int getPresentationID()
public Label[] getLabels()
View.refreshLabels(),
View.getActiveLabels()public Label[] getActiveLabels()
View.refreshActiveLabels(),
View.getLabels()public Label findLabel(java.lang.String labelName)
labelName - the name to query for
public Label findLabel(int labelID)
labelID - the ID to query for
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[] fetchAllLabels(View view)
The labels are not cached. Each call to fetchAllLabels() returns an up-to-date list consisting of newly allocated Label objects.
fetchAllLabels() is not MPX-enabled; the labels are always retrieved directly from the repository.
view - the view whose labels are to be fetched
public Label createViewLabel(java.lang.String name,
java.lang.String description,
DateTime 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()
StatusMethod.getStatusManager(View)public java.lang.String getPath()
public Folder getRootFolder()
View.refreshFolders(),
View.discardFolders()public ViewConfiguration getConfiguration()
public ViewConfiguration getBaseConfiguration()
ViewConfigurationpublic DateTime getCreatedTime()
getCreatedTime in class LiveObjectpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description for this viewpublic void setViewType(View.ViewType type)
type - The new type value for this viewpublic View.ViewType getViewType()
View.ViewType,
View.Type.TypeProperty,
View.Type.PropertyCollection.TYPEpublic void setStartDate(DateTime startDate)
startDate - start date for this view.View.Type.StartDatePropertypublic DateTime getStartDate()
View.Type.StartDatePropertypublic void setEndDate(DateTime endDate)
endDate - end date for this viewView.Type.EndDatePropertypublic DateTime getEndDate()
View.Type.EndDatePropertypublic java.lang.String getFullName()
public Server getServer()
getServer in interface ISecurablegetServer in interface ISecurableContainergetServer in class TypedResourcepublic java.lang.String getName()
public void setName(java.lang.String name)
name - - the name of this view.public Project getProject()
public View getParentView()
public View[] getDerivedViews()
public View findDerivedView(java.lang.String name)
name - the name of an immediate derived view
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 CheckinOptions to be used.
CheckinOptions,
CheckinManager.addCheckinListener(com.starteam.events.CheckinListener),
CheckinManager.onStartFile(com.starteam.events.CheckinListener, com.starteam.events.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,
CheckoutManager.addCheckoutListener(com.starteam.events.CheckoutListener),
CheckoutManager.onStartFile(CheckoutListener, CheckoutEvent)public boolean hasPermissions(PermissionCollection permissions)
hasPermissions in interface ISecurablepermissions - the desired permissions
Permission
public boolean hasPermissions(PermissionCollection permissions,
Type type)
hasPermissions in interface ISecurableContainerpermissions - the desired permissionstype - the type for access to be tested on
Permissionpublic ACE[] getRights()
getRights in interface ISecurableAccessRightsManager.getRights(com.starteam.ISecurable)public void setRights(ACE[] acl)
setRights in interface ISecurableacl - the new access control list or null if to be dropped.ACEpublic ACE[] getRights(Type type)
getRights in interface ISecurableContainertype - the name of the type being controlled by the returned ACL
ACE,
Type
public void setRights(Type type,
ACE[] acl)
setRights in interface ISecurableContainertype - the type being controlled by the returned ACLacl - the new access control list or null if to be droppedACE,
Typepublic Folder findFolder(int itemID)
itemID - the Item ID of the Folder to be retrieved.
public Item findItem(Item.Type type,
int itemID)
type - the Type of the Item to be retrieved.itemID - the Item ID of the Item to be retrieved.
public ViewMember findViewMember(ViewMember.Type type,
int VMID)
type - the Type of the ViewMember to be retrieved.VMID - the VMID of the ViewMember to be retrieved.
public void remove()
public boolean isDeleted()
isDeleted in interface ISecurableisDeleted in interface ISecurableContainerpublic 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(Link.Endpoint 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 ViewMember getDisembodiedViewMember(ViewMember.Type type,
int vmID)
type - the type of the disembodied view membervmID - the id of the disembodied view member
ViewMember.isDisembodied()
public Item getDisembodiedItem(Item.Type type,
int itemID)
type - the type of disembodied itemitemID - the id of the disembodied item
ViewMember.isDisembodied()public ChangePackageCollection getChangePackages()
Note that the resulting collection is a read-only collection; that is, you cannot explicitly add or remove members. Instead, the members reflect the actual set of change packages available for this view on the server. Members may come and go as a side effect of refreshing the collection.
TypeNotFoundException - if change packages are not supported by this version of the
StarTeam server.View.getViewMembers(com.starteam.ViewMember.Type),
ChangePackageCollection.getCache()public TraceCollection getTraces()
Note that the resulting collection is a read-only collection; that is, you cannot explicitly add or remove members. Instead, the members reflect the actual set of traces available for this view on the server. Members may come and go as a side effect of refreshing the collection.
ViewMemberCollection.getCache()public ViewMemberCollection getViewMembers(ViewMember.Type type)
Note that the resulting collection is a read-only collection; that is, you cannot explicitly add or remove members. Instead, the members reflect the actual set of view members of this type available for this view on the server. Members may come and go as a side effect of refreshing the collection.
type - the type of the view members in the returned collection
java.lang.UnsupportedOperationException - if the given type is not a view member type.View.getViewMembers(com.starteam.ViewMember.Type),
ChangePackageCollection.getCache()public Workflow getWorkflow(ViewMember.Type typ)
typ - the type for which a specific workflow may have been defined
public boolean equals(java.lang.Object another)
equals in class java.lang.Objectanother - the object being tested for equality
public int hashCode()
hashCode in class java.lang.Objectpublic boolean hasNewNotificationItems(Item.Type type)
type - the desired item type
public ViewMemberCollection getNewNotificationItems(Item.Type type)
type - 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(com.starteam.Item.Type, int),
Server.disconnect()public RecycleBin getRecycleBin()
For example:
RecycleBin bin = view.getRecycleBin();
Folder root = bin.getRootFolder();
Item[] files = root.getItems(File.Type.NAME);
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 triggered 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,
View.removeViewListener(com.starteam.events.ViewListener),
Server.enableMPX()public void removeViewListener(ViewListener listener)
listener - Previously-registered event handler for View events.ViewListener,
View.addViewListener(com.starteam.events.ViewListener)public void addLabelListener(LabelListener listener)
Event handlers will be triggered 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,
View.removeLabelListener(com.starteam.events.LabelListener),
Server.enableMPX()public void removeLabelListener(LabelListener listener)
listener - Previously-registered event handler for Label events.LabelListener,
View.addLabelListener(com.starteam.events.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,
FolderTreeListener,
View.removeFolderListener(com.starteam.events.IFolderListener),
Server.enableMPX()public void removeFolderListener(IFolderListener listener)
listener - Previously-registered event handlers for Folder-related
events.IFolderListener,
View.addFolderListener(com.starteam.events.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.starteam.events.FolderUpdateListener),
View.addFolderListener(com.starteam.events.IFolderListener)public void removeFolderUpdateListener(FolderUpdateListener listener)
listener - Previously-registered event handler for folder update events.FolderUpdateListener,
View.addFolderUpdateListener(com.starteam.events.FolderUpdateListener)
public void addViewMemberListener(ViewMemberListener listener,
ViewMember.Type type)
ViewMember 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 descriptors.
In order to handle events, an application must enable MPX.
listener - Application-specific event handler for non-Item
ViewMember-related events.type - The Type of the viewMembers of interest.ViewMemberListener,
View.addViewMemberListener(ViewMemberListener,ViewMember.Type,PropertyCollection),
View.removeViewMemberListener(com.starteam.events.ViewMemberListener, com.starteam.ViewMember.Type),
Server.enableMPX()
public void addViewMemberListener(ViewMemberListener listener,
ViewMember.Type type,
PropertyCollection properties)
In order to handle events, an application must enable MPX.
listener - Application-specific event handler for non-Item
ViewMember-related events.type - The Type of the viewMembers of interest.properties - properties that must always be populated whenever a ViewMember
object is passed to an application event-handler.ViewMemberListener,
View.addViewMemberListener(ViewMemberListener,ViewMember.Type),
View.removeViewMemberListener(com.starteam.events.ViewMemberListener, com.starteam.ViewMember.Type),
Server.enableMPX()
public void removeViewMemberListener(ViewMemberListener listener,
ViewMember.Type type)
listener - Previously registered event handlers for non-Item
ViewMember-related events.type - The Type of the viewMembers of interest.ViewMemberListener,
View.addViewMemberListener(com.starteam.events.ViewMemberListener, com.starteam.ViewMember.Type)
public void addItemListener(IItemListener listener,
Item.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,Item.Type,PropertyCollection),
View.removeItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type),
Server.enableMPX()
public void addItemListener(IItemListener listener,
Item.Type type,
PropertyCollection properties)
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.properties - 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,Item.Type),
View.removeItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type),
Server.enableMPX()
public void removeItemListener(IItemListener listener,
Item.Type type)
listener - Previously-registered event handlers for Item-related events.type - The Type of the items of interest.IItemListener,
View.addItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type)
public void addItemUpdateListener(ItemUpdateListener listener,
Item.Type type)
Similar to addItemListener(), except that events are triggered by explicit operations performed by the client application. For example, calling File.refreshItems(), Item.update() or Item.remove() might each trigger update events.
MPX is not required to receive item update events. Applications intending
to receive Folder update events must use
View.addFolderUpdateListener(FolderUpdateListener)
listener - Application-specific event handler for item update events.type - The Type of the items of interest.ItemUpdateListener,
View.removeItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type),
View.addItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type)
public void addViewMemberUpdateListener(ViewMemberUpdateListener listener,
ViewMember.Type type)
Events are triggered by explicit operations performed by the client application. For example, calling Trace.update(), or Trace.remove() might each trigger update events.
MPX is not required to receive view member update events. Applications
intending to receive Item update events must use
View.addItemUpdateListener(ItemUpdateListener, Item.Type)
listener - Application-specific event handler for view member update
events.type - The Type of the view members of interest.ViewMemberUpdateListener,
View.removeViewMemberUpdateListener(com.starteam.events.ViewMemberUpdateListener, com.starteam.ViewMember.Type)
public void removeViewMemberUpdateListener(ViewMemberUpdateListener listener,
ViewMember.Type type)
listener - Previously-registered event handler for view member update
events.type - The Type of the view members of interest.ViewMemberUpdateListener,
View.addViewMemberUpdateListener(com.starteam.events.ViewMemberUpdateListener, com.starteam.ViewMember.Type)
public void removeItemUpdateListener(ItemUpdateListener listener,
Item.Type type)
listener - Previously-registered event handler for item update events.type - The Type of the items of interest.ItemUpdateListener,
View.addItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type)public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurablegetParentContainer in interface ISecurableContainerISecurableContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||