|
|||||||||
| 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
public class Folder
Represents a StarTeam Folder. A folder is an Item, i.e. it does not have a parent id property However, (sub)folders reside within folders, which makes a folder a type of hierarchy tree Folders are also containers, in that, other items reside in folders
| Nested Class Summary | |
|---|---|
static class |
Folder.ExcludeFlags
Criteria used to exclude folders from the display |
static class |
Folder.Status
The status of this folder; a value of the Status Property |
static class |
Folder.Type
The Type for Folder |
static class |
Folder.WebCacheFolder
Item accessor for cached SDK Items contained objects are obtained from the artifact cache |
| 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 |
| Constructor Summary | |
|---|---|
Folder(Folder parent)
Creates a new folder specifying in which folder it is to reside. |
|
Folder(Folder parent,
java.lang.String name,
java.lang.String workingFolder)
Creates a new folder specifying in which folder it is to reside, its name and its working path relative to the working path of its parent folder. |
|
Folder(Server server)
Special constructor for the root folder of a view, to be used during the creation of a project. |
|
| Method Summary | |
|---|---|
void |
addFolderListener(IFolderListener listener,
int depth)
Adds a listener for Folder-related events. |
void |
addFolderUpdateListener(FolderUpdateListener listener,
int depth)
Listens for updates to this view's folder tree. |
void |
addItemListener(IItemListener listener,
Item.Type type,
int depth)
Adds a listener for Item-related events. |
void |
addItemListener(IItemListener listener,
Item.Type type,
PropertyCollection properties,
int depth)
Adds a listener for Item-related events. |
void |
addItemUpdateListener(ItemUpdateListener listener,
Item.Type type,
int depth)
Listens for updates to the items of a given type in this folder. |
ViewMember |
copy()
Creates a copy of the Folder and all of its properties. |
Folder |
copyFolderTree()
Copies a folder tree. |
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. |
Folder |
findSubFolder(java.lang.String name)
Find an immediate sub folder with the given name |
java.lang.String |
getAlternatePathFragment()
Returns the alternate working file path to be used for this view. |
boolean |
getCaseSensitiveFileNames()
Returns true if the names of files in this folder are case sensitive. |
java.lang.String |
getDefaultPathFragment()
Returns this folder's specified default working path. |
java.lang.String |
getDescription()
Returns the description of this folder. |
java.lang.String |
getEffectiveExcludeList()
Returns the fully resolved exclude list. |
boolean |
getEffectiveUserVisible()
Returns false if this folder or any parent is set to be not visible. |
Folder.ExcludeFlags |
getExcludeFlags()
Returns the ExcludeFlags representing the method by which
the exclude list is determined. |
java.lang.String |
getExcludeList()
Returns the portion of the exclude list that this folder contributes. |
java.lang.String |
getFileEOL()
Returns the end-of-line character sequence to be used for text files in this folder. |
java.lang.String |
getFilePath(java.lang.String fileName)
For a given file name, this method returns the concatenation of the file name and the working directory path of this folder. |
java.lang.String |
getFolderHierarchy()
Gets the fully-qualified name of this folder. |
Folder |
getFolderTree(Filter.Context context,
int depth)
Retrieves a copy of this Folder object in the specified context and depth. |
boolean |
getHasParentFolder()
Returns true if this folder has a parent folder. |
ViewMemberCollection |
getHistory()
Returns the past versions of this item. |
ViewMemberCollection |
getItems(Item.Type type)
Ensures that the list of items of the specified type for this folder have been retrieved from the server and cached locally. |
java.lang.String |
getName()
Returns the name of the folder. |
File[] |
getNotInViewFiles()
Returns an array of "not in view" File objects in this Folder, applying exclusions as appropriate. |
ISecurableContainer |
getParentContainer()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
Folder |
getParentFolder()
Returns the folder that contains this folder, or null if
this is the root folder. |
java.lang.String |
getPath()
Returns the local working folder path being used for this folder. |
java.lang.String |
getPathFragment()
Return the path fragment to use for this folder. |
Folder.Type.PropertyCollection |
getProperties()
Returns the properties for the folder type |
java.lang.String |
getQualifiedName()
Gets the fully-qualified name of this folder. |
ACE[] |
getRights(Type type)
Returns the Access Control List for items of the specified type for this folder. |
Folder.Status |
getStatus()
Gets the status of the default working folder relative to the latest version of this folder in the repository. |
Folder[] |
getSubFolders()
Returns the sub-folders of this folder. |
boolean |
getUserVisible()
Returns true if items in this folder should be visible to the user. |
boolean |
hasPermissions(PermissionCollection permissions,
Type type)
Returns true if desired permissions are granted for items of the specified type for this Folder |
boolean |
isExcluded(java.lang.String filename)
Determines if the given file name is one that will be excluded (Matches the exclude list criteria) from operations in the working directory. |
boolean |
isPopulated(Item.Type type)
Determines whether or not this folder's 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 properties,
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. |
void |
remove()
Removes this item from its current folder. |
void |
removeFolderListener(IFolderListener listener,
int depth)
Removes a listener for Folder-related events. |
void |
removeFolderUpdateListener(FolderUpdateListener listener,
int depth)
Removes a listener for folder update events. |
void |
removeItemListener(IItemListener listener,
Item.Type type,
int depth)
Removes a listener for Item-related events. |
void |
removeItemUpdateListener(ItemUpdateListener listener,
Item.Type type,
int depth)
Removes a listener for item update events. |
Folder |
reverseShareTo(Folder toFolder,
boolean bThisFolderOnly)
Reverse shares this folder to a new parent folder. |
void |
setAlternatePathFragment(java.lang.String path)
Sets the alternate working file path to be used for this view. |
void |
setDefaultPathFragment(java.lang.String path)
Sets this folder's working path. |
void |
setDescription(java.lang.String description)
Sets this folder's description. |
void |
setExcludeFlags(Folder.ExcludeFlags flags)
Sets the exclude flag for this folder. |
void |
setExcludeList(java.lang.String excludeList)
Sets this folder's local exclude list. |
void |
setName(java.lang.String name)
Sets the name of this folder. |
void |
setRights(Type type,
ACE[] acl)
Modifies the Access Control List for items of the specified type for this folder. |
void |
setUserVisible(boolean visible)
Change whether or not items in this folder should be visible to the user. |
java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
Item |
shareTo(Folder toFolder)
Shares this folder to a new parent folder. |
Folder |
shareTo(Folder toFolder,
boolean bThisFolderOnly)
Shares this folder to a new parent folder. |
java.lang.String |
toString()
Returns the name of this folder. |
void |
update()
Stores the underlying entity in the server. |
void |
update(boolean bRecursive)
Stores the underlying entity in the server. |
void |
updateFolderTree(int depth)
Calls update() on itself, and recursively calls Folder.updateFolderTree() on Folders returned from getSubFolders(). |
| 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 |
| Constructor Detail |
|---|
public Folder(Server server)
server - the server on which the root folder of this view is being
constructedpublic Folder(Folder parent)
parent - the parent folder in which this new folder will reside.
public Folder(Folder parent,
java.lang.String name,
java.lang.String workingFolder)
parent - the parent folder in which this new folder will reside.name - the name of this folder.workingFolder - the working path for this folder, relative to its parent's
working path.| Method Detail |
|---|
public Folder.Type.PropertyCollection getProperties()
public ViewMember copy()
copy in class ItemItem.isEqualTo(com.starteam.Item)
public java.lang.Object setValue(Property property,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
setValue in class ViewMemberproperty - 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 Folder findSubFolder(java.lang.String name)
name - the name of the subfolder
public Folder[] getSubFolders()
DisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()public java.lang.String getDescription()
LiveObject.Type.DescriptionProperty,
Folder.Type.PropertyCollection.DESCRIPTIONpublic void setDescription(java.lang.String description)
description - the new description for this folder.LiveObject.Type.DescriptionProperty,
Folder.Type.PropertyCollection.DESCRIPTIONpublic java.lang.String getDefaultPathFragment()
FOLDER_WORKING_FOLDER property associated with this folder.
The folder's fully resolved location on disk may use this value along
with the values for all of its parent folders.
Folder.Type.WorkingFolderPathProperty.NAME,
Folder.Type.WorkingFolderPathProperty.NAME,
Folder.getPathFragment(),
Folder.getAlternatePathFragment()public void setDefaultPathFragment(java.lang.String path)
path - the new working path for this folder.LiveObject.Type.WorkingFolderProperty,
Folder.getPathFragment(),
Folder.getAlternatePathFragment()public java.lang.String getAlternatePathFragment()
Folder.getPathFragment(),
Folder.getDefaultPathFragment()public void setAlternatePathFragment(java.lang.String path)
Folder
object and is not persisted in any way. If set, this value will override
the Folder's default path fragment.
path - the alternate working path to use for this folder.Folder.getPathFragment(),
Folder.getDefaultPathFragment()public java.lang.String getPathFragment()
Folder.getDefaultPathFragment(),
Folder.getAlternatePathFragment()public Folder.Status getStatus()
Folder.Statuspublic java.lang.String getPath()
DisembodiedException - if the Folder is disembodiedFolder.getPathFragment(),
Folder.getDefaultPathFragment(),
Folder.getAlternatePathFragment(),
ViewMember.isDisembodied()public Folder.ExcludeFlags getExcludeFlags()
ExcludeFlags representing the method by which
the exclude list is determined.
Folder.ExcludeFlags.NONE,
Folder.ExcludeFlags.LOCAL,
Folder.ExcludeFlags.INHERITpublic void setExcludeFlags(Folder.ExcludeFlags flags)
flags - the exclude type to be used for this folder's exclude listFolder.ExcludeFlags.NONE,
Folder.ExcludeFlags.LOCAL,
Folder.ExcludeFlags.INHERITpublic java.lang.String getExcludeList()
Folder.getEffectiveExcludeList()public void setExcludeList(java.lang.String excludeList)
excludeList - this folder's local exclude listFolder.getExcludeList(),
Folder.getEffectiveExcludeList(),
Folder.getExcludeFlags()public java.lang.String getFilePath(java.lang.String fileName)
fileName - the name of the local file.
public java.lang.String getFolderHierarchy()
DisembodiedException - if the Folder is disembodiedFolder.getName(),
Folder.getQualifiedName(),
ViewMember.isDisembodied()public java.lang.String getQualifiedName()
DisembodiedException - if the Folder is disembodiedFolder.getName(),
Folder.getFolderHierarchy(),
ViewMember.isDisembodied()public boolean isExcluded(java.lang.String filename)
filename - the name of the file to be checked for exclusion
Folder.getEffectiveExcludeList()public java.lang.String getEffectiveExcludeList()
DisembodiedException - if the Folder is disembodiedFolder.getExcludeFlags(),
ViewMember.isDisembodied()public java.lang.String getName()
Folder.Type.PropertyCollection.NAME,
LiveObject.Type.NamePropertypublic void setName(java.lang.String name)
name - the new folder name.Folder.Type.PropertyCollection.NAME,
LiveObject.Type.NamePropertypublic Folder getParentFolder()
null if
this is the root folder.
getParentFolder in class ItemDisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()public boolean getHasParentFolder()
DisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()public java.lang.String getFileEOL()
DisembodiedException - if the Folder is disembodiedViewMember.isDisembodied(),
Platform.EOL.CRLF,
Platform.EOL.CR,
Platform.EOL.LFpublic boolean getCaseSensitiveFileNames()
DisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()
public Folder getFolderTree(Filter.Context context,
int depth)
throws java.io.IOException
context - one of these values: Filter.Context.SERVER,
Filter.Context.LOCAL and Filter.Context.BOTH.depth - the depth of levels of Folders affected.
java.io.IOExceptionFilter.Context.SERVER,
Filter.Context.LOCAL,
Filter.Context.BOTH,
Folder.getSubFolders()public void updateFolderTree(int depth)
depth - the depth of levels of Folders that's affected.Folder.getSubFolders()
public File[] getNotInViewFiles()
throws java.io.IOException
java.io.IOExceptionpublic ViewMemberCollection getHistory()
getHistory in class ViewMemberpublic void remove()
remove in class Itempublic Item shareTo(Folder toFolder)
If this is a deleted folder, shareTo() will create a new folder with the same properties, but in the state it was in prior to being deleted. This provides a way to recover content from the recycle bin.
shareTo in class ItemtoFolder - The new parent folder.
DisembodiedException - if the target folder is disembodied.ViewMember.isDisembodied(),
Item.moveTo(com.starteam.Folder),
Item.reverseShareTo(com.starteam.Folder),
Folder.shareTo(Folder,boolean),
ViewMember.isDeleted(),
RecycleBin
public Folder shareTo(Folder toFolder,
boolean bThisFolderOnly)
If bThisFolderOnly is true, then this folder is shared without sharing any of its contained items. Such shares are supported by StarTeam server versions 9.0 and later. On older servers, this is simulated by first moving the contained items to a temporary folder, and moving them back after the share.
toFolder - The new parent folder.bThisFolderOnly - true to share this folder only; false to share this folder,
all of its children to any depth, and all of the items
contained within those folders.
DisembodiedException - if the target folder is disembodied.Folder.shareTo(Folder)
public Folder reverseShareTo(Folder toFolder,
boolean bThisFolderOnly)
If bThisFolderOnly is true, then this folder is shared without sharing any of its contained items. Such shares are supported by StarTeam server versions 9.0 and later. On older servers, this is simulated by first moving the contained items to a temporary folder, and moving them back after the share.
toFolder - The new parent folder.bThisFolderOnly - true to share this folder only; false to share this folder,
all of its children to any depth, and all of the items
contained within those folders.
DisembodiedException - if the target folder is disembodied.Item.reverseShareTo(Folder)public ViewMemberCollection getItems(Item.Type type)
type - The type of the items to be retrieved.
DisembodiedException - if the Folder is disembodied.CacheService.populate(),
Folder.isPopulated(com.starteam.Item.Type),
CacheService.refresh(),
ViewMember.isDisembodied()public boolean isPopulated(Item.Type type)
type - The type of the items to be tested.
Folder.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.
type - 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.Folder.getItems(com.starteam.Item.Type),
CacheService.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.
type - 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 sub-folders 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.Folder.getItems(com.starteam.Item.Type),
CacheService.refresh(),
ViewMember.isDisembodied()
public long countItems(Item.Type type,
int depth)
type - Type the type of Item for which the count is to be retrieveddepth - int The number of levels deep in the folder tree that items
should be counted. A value of 0 causes only items
in this folder to be counted. A positive value n
will cause this folder and all sub-folders up to
n levels deeper to be counted. A negative value
causes this folder and all subfolders to be counted.
public boolean isRefreshItemsRequired(Item.Type type,
PropertyCollection properties,
int depth)
type - The type of the items to be examined.properties - 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 sub-folders to be examined.
DisembodiedException - if the Folder is disembodied.Folder.refreshItems(com.starteam.Item.Type, com.starteam.PropertyCollection, int),
ViewMember.isDisembodied(),
Server.enableMPX()
public void refreshItems(Item.Type type,
PropertyCollection properties,
int depth)
refreshItems() is similar to populate(). 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.
type - The type name of the items to be refreshed.properties - 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.Folder.getItems(com.starteam.Item.Type),
CacheService.populate(),
Folder.isRefreshItemsRequired(com.starteam.Item.Type, com.starteam.PropertyCollection, int),
Folder.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).
type - 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.Folder.populate(Item.Type, PropertyCollection, int),
Folder.refreshItems(Item.Type, PropertyCollection, int),
ViewMember.isDisembodied(),
Server.enableMPX()
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(Type type)
getRights in interface ISecurableContainertype - the name of the type being controlled by the returned ACL
DisembodiedException - if the Folder is disembodiedAccessRightsManager.getRights(ISecurableContainer,Type),
ViewMember.isDisembodied(),
Type
public void setRights(Type type,
ACE[] acl)
setRights in interface ISecurableContainertype - the name of the type being controlled by the returned ACLacl - the new access control list for items of the specified type in
this folder
DisembodiedException - if the Folder is disembodiedViewMember.isDisembodied()public void update()
update in class ViewMemberjava.lang.IllegalStateException - if this item was obtained from historyVersionedObject.isFromHistory()public void update(boolean bRecursive)
bRecursive - if true, it will cause update() to trickle down to the
sub-folders
java.lang.IllegalStateException - if this item was obtained from historyVersionedObject.isFromHistory()public java.lang.String toString()
toString in class Itempublic boolean getUserVisible()
StarTeamClientOptions.getFolderUserVisible(com.starteam.Folder),
StarTeamClientOptions.setFolderUserVisible(com.starteam.util.GUID, int, boolean)public void setUserVisible(boolean visible)
visible - true if the items in this folder should be presented to the
user, false otherwiseStarTeamClientOptions.getFolderUserVisible(com.starteam.Folder),
StarTeamClientOptions.setFolderUserVisible(com.starteam.util.GUID, int, boolean)public boolean getEffectiveUserVisible()
Folder.getUserVisible(),
Folder.setUserVisible(boolean)public Folder copyFolderTree()
ViewMember.copy()
public void addFolderListener(IFolderListener listener,
int depth)
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.depth - Indicates how much of the folder tree will be monitored. Zero
indicates just this folder should be monitored; 1 indicates
that this folder and its immediate child folders should be
monitored; -1 indicates that this folder and all child folders
at any depth should be monitored.IFolderListener,
FolderListener,
FolderTreeListener,
Folder.removeFolderListener(com.starteam.events.IFolderListener, int),
Server.enableMPX()
public void removeFolderListener(IFolderListener listener,
int depth)
listener - Previously-registered event handlers for Folder-related
events.depth - The depth used when the event handlers were registered.IFolderListener,
Folder.addFolderListener(com.starteam.events.IFolderListener, int)
public void addFolderUpdateListener(FolderUpdateListener listener,
int depth)
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.depth - Indicates how much of the folder tree will be monitored. Zero
indicates just this folder should be monitored; 1 indicates
that this folder and its immediate child folders should be
monitored; -1 indicates that this folder and all child folders
at any depth should be monitored.FolderListener,
Folder.removeFolderUpdateListener(com.starteam.events.FolderUpdateListener, int),
Folder.addFolderListener(com.starteam.events.IFolderListener, int)
public void removeFolderUpdateListener(FolderUpdateListener listener,
int depth)
listener - Previously-registered event handler for folder update events.depth - The depth used when the event handlers were registered.FolderListener,
Folder.addFolderUpdateListener(com.starteam.events.FolderUpdateListener, int)
public void addItemListener(IItemListener listener,
Item.Type type,
int depth)
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.depth - Indicates how much of the folder tree will be monitored. Zero
indicates just this folder should be monitored; 1 indicates
that this folder and its immediate child folders should be
monitored; -1 indicates that this folder and all child folders
at any depth should be monitored.IItemListener,
ItemListener,
ItemIDListener,
ItemListListener,
NotificationListener,
Folder.addItemListener(IItemListener,Item.Type,PropertyCollection,int),
Folder.removeItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type, int),
Server.enableMPX()
public void addItemListener(IItemListener listener,
Item.Type type,
PropertyCollection properties,
int depth)
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.depth - Indicates how much of the folder tree will be monitored. Zero
indicates just this folder should be monitored; 1 indicates
that this folder and its immediate child folders should be
monitored; -1 indicates that this folder and all child folders
at any depth should be monitored.IItemListener,
ItemListener,
ItemIDListener,
ItemListListener,
NotificationListener,
Folder.addItemListener(IItemListener,Item.Type,int),
Folder.removeItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type, int),
Server.enableMPX()
public void removeItemListener(IItemListener listener,
Item.Type type,
int depth)
listener - Previously-registered event handlers for Item-related events.type - The Type of the items of interest.depth - Indicates how much of the folder tree will be monitored.IItemListener,
Folder.addItemListener(IItemListener,Item.Type,int)
public void addItemUpdateListener(ItemUpdateListener listener,
Item.Type type,
int depth)
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.depth - Indicates how much of the folder tree will be monitored. Zero
indicates just this folder should be monitored; 1 indicates
that this folder and its immediate child folders should be
monitored; -1 indicates that this folder and all child folders
at any depth should be monitored.ItemUpdateListener,
Folder.removeItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type, int),
View.addItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type),
Folder.addItemListener(com.starteam.events.IItemListener, com.starteam.Item.Type, int)
public void removeItemUpdateListener(ItemUpdateListener listener,
Item.Type type,
int depth)
listener - Previously-registered event handler for item update events.type - The Type of the items of interest.depth - Indicates how much of the folder tree will be monitored.ItemUpdateListener,
Folder.addItemUpdateListener(com.starteam.events.ItemUpdateListener, com.starteam.Item.Type, int)public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurablegetParentContainer in interface ISecurableContainergetParentContainer in class ItemISecurableContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||