|
||||||||||
| 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.Item
|
+--com.starbase.starteam.Folder
Represents a StarTeam Folder.
| Nested Class Summary |
| Nested classes inherited from class com.starbase.starteam.Item |
Item.LockType |
| Field Summary | |
static java.lang.String |
EOL_CR
Carriage-return end-of-line sequence (i.e., "\r"). |
static java.lang.String |
EOL_CRLF
Carriage-return + Line-feed end-of-line sequence (i.e., "\r\n"). |
static java.lang.String |
EOL_LF
Line-feed end-of-line sequence (i.e., "\n"). |
static int |
EXCLUDE_INHERIT
A flag that indcates that this folder inherits its exclude list from its parent folder and concatenates its own list if any. |
static int |
EXCLUDE_LOCAL
A flag that indicates that this folder is using an exclude list specifically designated for this folder. |
static int |
EXCLUDE_NONE
A flag that indicated this folder does not use any exclude list. |
| 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 | |
Item |
add(Item child)
Deprecated. Instead of folder.add(item), use item.shareTo(folder). Note that Folder.add() does not work correctly for TreeItems, because it does not share child items. |
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,
Type type,
int depth)
Adds a listener for Item-related events. |
void |
addItemListener(IItemListener listener,
Type type,
java.lang.String[] propertyNames,
int depth)
Adds a listener for Item-related events. |
void |
addItemUpdateListener(ItemUpdateListener listener,
Type type,
int depth)
Listens for updates to the items of a given type in this folder. |
Item |
copy()
Creates a copy of this Folder, with folder properties fully populated. |
Folder |
copyFolderTree()
Copies a folder tree. |
long |
countItems(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(java.lang.String typeName,
int depth)
Discards cached items of the specified type in this folder. |
java.util.Enumeration |
enumerateItems(java.lang.String typeName)
Returns an Enumeration of the items of the specified type
that exist in this folder. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
AclEntry[] |
getACL()
Returns the Access Control List for this folder. |
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. |
AclEntry[] |
getContainerLevelACL(java.lang.String typeName)
Returns the Access Control List for items of the specified type for this folder. |
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 |
getDotNotation()
Returns the dot notation identification of this version. |
int |
getExcludeFlags()
Returns an int 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(int context,
int depth)
Retrieves a copy of this Folder object in the specified context and depth. |
Item[] |
getHistory()
Returns the past versions of this item. |
Item[] |
getItems(java.lang.String typeName)
Ensures that the list of items of the specified type for this folder have been retrieved from the server and cached locally. |
ItemList |
getList(java.lang.String typeName)
Returns an ItemList of the specified item types in this
folder. |
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 file path being used for this folder. |
java.lang.String |
getPathFragment()
Return the path fragment to use for this folder. |
java.lang.String |
getQualifiedName()
Gets the fully-qualified name of this folder. |
int |
getSubFolderCount()
Returns the number of sub folders for this folder. |
Folder[] |
getSubFolders()
Returns the subfolders of this folder. |
boolean |
getUserVisible()
Returns true if items in this folder should be visible to the user. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
hasParentFolder()
Returns true if this folder has a parent folder. |
boolean |
hasPermission(int permissions,
java.lang.String typeName)
Returns true if desired permissions are granted for items of the specified type for this Folder |
boolean |
isEqualTo(Item item)
Compares the properties of two Folders. |
boolean |
isExcluded(java.lang.String filename)
Determines if the given file name is one that will be excluded (matcthes the exclude list criteria) from operations in the working directory. |
boolean |
isPopulated(java.lang.String typeName)
Determines whether or not this folder's items have been populated. |
boolean |
isRefreshItemsRequired(java.lang.String typeName,
java.lang.String[] propertyNames,
int depth)
Determines whether or not the items of the given type need to be refreshed. |
void |
move(Folder toFolder)
Deprecated. Use moveTo(). |
void |
moveTo(Folder toFolder)
Moves this folder to the specified folder. |
void |
populateAsNeeded(java.lang.String typeName,
java.lang.String[] propertyNames,
int chunkSize)
Deprecated. |
void |
populateInBackground(java.lang.String typeName,
java.lang.String[] propertyNames,
int chunkSize)
Similar to populateNow(). |
void |
populateNow(java.lang.String typeName,
java.lang.String[] propertyNames,
int depth)
Ensures that the items of the specified type have been retrieved from the server and cached locally. |
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. |
ForeignRefreshResult |
refreshForeignFiles(int depth)
Refresh the foreign files in this folder, and its child folders depending on the specified "depth." |
void |
refreshItems(java.lang.String typeName,
java.lang.String[] propertyNames,
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,
Type type,
int depth)
Removes a listener for Item-related events. |
void |
removeItemUpdateListener(ItemUpdateListener listener,
Type type,
int depth)
Removes a listener for item update events. |
java.lang.String |
resolveExcludeList()
Returns the fully resolved exclude list. |
boolean |
resolveUserVisible()
Returns false if this folder or any parent is set to be not visible. |
Folder |
reverseShareTo(Folder toFolder,
boolean bThisFolderOnly)
Reverse shares this folder to a new parent folder. |
void |
setACL(AclEntry[] acl)
Modify the Access Control List for this folder. |
void |
setAlternatePathFragment(java.lang.String path)
Sets the alternate working file path to be used for this view. |
void |
setContainerLevelACL(AclEntry[] acl,
java.lang.String typeName)
Modifies the Access Control List for items of the specified type for this folder. |
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(int flag)
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 |
setUserVisible(boolean visible)
Change whether or not items in this folder should be visible to the user. |
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 |
updateFolderTree(int depth)
Calls update() on itself, and recursively calls Folder.updateAllFolders() on Folders returned from getSubFolders(). |
| Methods inherited from class com.starbase.starteam.TypedResource |
addToIntArray, removeFromIntArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int EXCLUDE_NONE
public static final int EXCLUDE_LOCAL
public static final int EXCLUDE_INHERIT
public static final java.lang.String EOL_CRLF
public static final java.lang.String EOL_LF
public static final java.lang.String EOL_CR
| Constructor Detail |
public Folder(Server server)
public 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 java.lang.Object put(java.lang.String propertyName,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
put in class ItempropertyName - 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 ItempropertyID - 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 java.lang.String getDotNotation()
"1.0". Each new revision will increment the version
number portion so the second revision would be "1.1".
When an item branches a new branch number will be issued and revision
will start counting from 0 again. For example, branching from version
"1.2" might result in "1.2.5.0" after which
the next version will be "1.2.5.1". The value 5 in the
previous example was assigned by the server based on the number of
branches already made from the revision being branched.
getDotNotation in class ItemPropertyNames.DOTNOTATIONpublic Folder[] getSubFolders()
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public int getSubFolderCount()
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public java.lang.String getDescription()
PropertyNames.FOLDER_DESCRIPTIONpublic void setDescription(java.lang.String description)
description - the new description for this folder.PropertyNames.FOLDER_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.
PropertyNames.FOLDER_WORKING_FOLDER,
Folder.getPathFragment(),
Folder.getAlternatePathFragment()public void setDefaultPathFragment(java.lang.String path)
path - the new working path for this folder.PropertyNames.FOLDER_WORKING_FOLDER,
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 java.lang.String getPath()
DisembodiedItemException - if the Folder is disembodiedFolder.getPathFragment(),
Folder.getDefaultPathFragment(),
Folder.getAlternatePathFragment(),
Item.isDisembodied()public int getExcludeFlags()
int representing the method by
which the exclude list is determined.
Folder.EXCLUDE_NONE,
Folder.EXCLUDE_LOCAL,
Folder.EXCLUDE_INHERITpublic void setExcludeFlags(int flag)
flag - the exclude type to be used for this folder's
exclude listFolder.EXCLUDE_NONE,
Folder.EXCLUDE_LOCAL,
Folder.EXCLUDE_INHERITpublic java.lang.String getExcludeList()
Folder.resolveExcludeList()public void setExcludeList(java.lang.String excludeList)
excludeList - Folder.getExcludeList(),
Folder.resolveExcludeList(),
Folder.getExcludeFlags()public java.lang.String getFilePath(java.lang.String fileName)
fileName - the name of the local file.
public java.lang.String getFolderHierarchy()
DisembodiedItemException - if the Folder is disembodiedFolder.getName(),
Folder.getQualifiedName(),
Item.isDisembodied()public java.lang.String getQualifiedName()
DisembodiedItemException - if the Folder is disembodiedFolder.getName(),
Folder.getFolderHierarchy(),
Item.isDisembodied()public boolean isExcluded(java.lang.String filename)
filename - the name of the file to be checked for exclusion
Folder.resolveExcludeList()public java.lang.String resolveExcludeList()
DisembodiedItemException - if the Folder is disembodiedFolder.getExcludeFlags(),
Item.isDisembodied()public java.lang.String getName()
PropertyNames.FOLDER_NAMEpublic void setName(java.lang.String name)
name - the new folder name.PropertyNames.FOLDER_NAMEpublic Folder getParentFolder()
null if
this is the root folder.
getParentFolder in class ItemDisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public boolean hasParentFolder()
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public java.util.Enumeration enumerateItems(java.lang.String typeName)
Enumeration of the items of the specified type
that exist in this folder.
typeName - the type name of the sub items of this folder.
Enumeration of the specified items in this folder.
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
TypeNamespublic java.lang.String getFileEOL()
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
Folder.EOL_CRLF,
Folder.EOL_CR,
Folder.EOL_LFpublic boolean getCaseSensitiveFileNames()
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()
public Folder getFolderTree(int context,
int depth)
throws java.io.IOException
context - one of these values: Filter.CONTEXT_SERVER,
Filter.CONTEXT_LOCAL and Filter.CONTEXT_LOCAL_AND_SERVER.depth - the depth of levels of Folders affected.
java.io.IOExceptionFilter.CONTEXT_SERVER,
Filter.CONTEXT_LOCAL,
Filter.CONTEXT_LOCAL_AND_SERVER,
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 Item[] getHistory()
getHistory in class Itempublic void remove()
remove in class Itempublic Item add(Item child)
child - the item to add to this folder
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
Item.shareTo(com.starbase.starteam.Folder),
TreeItempublic 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.
DisembodiedItemException - if the target folder is disembodied.Item.isDisembodied(),
Item.moveTo(com.starbase.starteam.Folder),
Item.reverseShareTo(com.starbase.starteam.Folder),
Folder.shareTo(Folder,boolean),
Item.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.
DisembodiedItemException - if the target folder is disembodied.SupportedFeatures.canShareFolderOnly(),
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.
DisembodiedItemException - if the target folder is disembodied.SupportedFeatures.canShareFolderOnly(),
Item.reverseShareTo(Folder)public void move(Folder toFolder)
move in class ItemtoFolder - the new folder to which this item is to be moved.
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
#moveTo().public void moveTo(Folder toFolder)
moveTo in class ItemtoFolder - the new folder to which this item is to be moved.
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public ItemList getList(java.lang.String typeName)
ItemList of the specified item types in this
folder.
typeName - the type name of the items to be returned
ItemList of the specified item types in this
folder.TypeNamespublic Item[] getItems(java.lang.String typeName)
typeName - The type name of the items to be retrieved.
DisembodiedItemException - if the Folder is disembodied.TypeNames,
Folder.populateNow(java.lang.String, java.lang.String[], int),
Folder.isPopulated(java.lang.String),
Item.refresh(),
Item.isDisembodied()public boolean isPopulated(java.lang.String typeName)
typeName - The type of the items to be tested.
Folder.getItems(java.lang.String)
public void populateNow(java.lang.String typeName,
java.lang.String[] propertyNames,
int depth)
populateNow() 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 populateNow().
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.
typeName - The type name of the items to be retrieved.propertyNames - The names of 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.
DisembodiedItemException - if the Folder is disembodied.TypeNames,
PropertyNames,
Folder.getItems(java.lang.String),
Item.refresh(),
Item.isDisembodied(),
NetMonitor
public void populateAsNeeded(java.lang.String typeName,
java.lang.String[] propertyNames,
int chunkSize)
typeName - The type name of the items to be retrieved.propertyNames - The names of 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.chunkSize - the number of items to retrieve per server call.
DisembodiedItemException - if the Folder is disembodied.Folder.populateNow(java.lang.String, java.lang.String[], int)
public void populateInBackground(java.lang.String typeName,
java.lang.String[] propertyNames,
int chunkSize)
typeName - The type name of the items to be retrieved.propertyNames - The names of 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.chunkSize - Obsolete. chunkSize is ignored.
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
TypeNames,
PropertyNames,
Folder.populateNow(java.lang.String, java.lang.String[], int)
public boolean isRefreshItemsRequired(java.lang.String typeName,
java.lang.String[] propertyNames,
int depth)
typeName - The type name of the items to be examined.propertyNames - The names of the properties whose values are
to be examined. Specifying null causes all properties to be
examined. Specifying a client-calculated property causes all
dependent properties to be examined.depth - The number of levels deep in the folder tree that
child folders should also be examined. A value of 0 causes
only this folder to be examined. A positive value n will
cause this folder and all subfolders up to n levels deeper
to be examined. A negative value causes this folder and all subfolders
to be examined.
DisembodiedItemException - if the Folder is disembodied.TypeNames,
PropertyNames,
Folder.refreshItems(java.lang.String, java.lang.String[], int),
Item.isDisembodied(),
Server.enableMPX()
public void refreshItems(java.lang.String typeName,
java.lang.String[] propertyNames,
int depth)
refreshItems() is similar to populateNow(). However, refreshItems() ensures that the list of items and the properties of each item are up-to-date with respect to the latest information on the server.
refreshItems() re-uses existing Item objects whenever possible, changing cached property values as necessary to bring older Items up-to-date.
When MPX is enabled, refreshItems() is optimized to avoid unnecessary server commands.
typeName - The type name of the items to be refreshed.propertyNames - The names of the properties whose values are
to be refreshed. Specifying null causes all properties to be
refreshed. Specifying a client-calculated property causes all
dependent properties to be refreshed.depth - The number of levels deep in the folder tree that
child folders should also be refreshed. A value of 0 causes
only this folder to be refreshed. A positive value n will
cause this folder and all subfolders up to n levels deeper
to be refreshed. A negative value causes this folder and all subfolders
to be refreshed.
DisembodiedItemException - if the Folder is disembodied.TypeNames,
PropertyNames,
Folder.getItems(java.lang.String),
Folder.populateNow(java.lang.String, java.lang.String[], int),
Folder.isRefreshItemsRequired(java.lang.String, java.lang.String[], int),
Folder.discardItems(String, int),
Item.isDisembodied(),
Server.enableMPX()
public long countItems(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
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.
public ForeignRefreshResult refreshForeignFiles(int depth)
depth - The depth of the folders to be refreshed: 0 = this folder only, -1 = full tree.
DisembodiedItemException - if the Folder is disembodied.ForeignRefreshResult
public void discardItems(java.lang.String typeName,
int depth)
getItems will re-fetch the items from the server
(even when MPX is enabled).
typeName - 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.
DisembodiedItemException - if the Folder is disembodied.TypeNames,
Folder.populateNow(String, String[], int),
Folder.refreshItems(String, String[], int),
Item.isDisembodied(),
Server.enableMPX()
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 ISecurablegetACL in class ItemDisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public void setACL(AclEntry[] acl)
setACL in interface ISecurablesetACL in class Itemacl - the new access control list or null if to be dropped.
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied()public AclEntry[] getContainerLevelACL(java.lang.String typeName)
getContainerLevelACL in interface ISecurableContainertypeName - the name of the type being controlled by the returned ACL
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
TypeNames
public void setContainerLevelACL(AclEntry[] acl,
java.lang.String typeName)
setContainerLevelACL in interface ISecurableContaineracl - the new access control list for items of the specified
type in this foldertypeName - the name of the type being controlled by the returned ACL
DisembodiedItemException - if the Folder is disembodiedItem.isDisembodied(),
TypeNamespublic void update()
update in class Itempublic java.lang.String toString()
toString in class Itempublic boolean getUserVisible()
StarTeamClientOptions.getFolderUserVisible(com.starbase.starteam.Folder),
StarTeamClientOptions.setFolderUserVisible(com.starbase.starteam.Folder, boolean)public void setUserVisible(boolean visible)
visible - true if the items in this folder should be
presented to the user, false otherwiseStarTeamClientOptions.getFolderUserVisible(com.starbase.starteam.Folder),
StarTeamClientOptions.setFolderUserVisible(com.starbase.starteam.Folder, boolean)public boolean resolveUserVisible()
Folder.getUserVisible(),
Folder.setUserVisible(boolean)public Item copy()
copy in class ItemFolder.isEqualTo(com.starbase.starteam.Item)public Folder copyFolderTree()
Folder.copy()public boolean isEqualTo(Item item)
isEqualTo in class Itemitem - The Folder to be compared to this one.
Folder.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,
FolderAdapter,
FolderTreeListener,
FolderTreeAdapter,
Folder.removeFolderListener(com.starbase.starteam.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.starbase.starteam.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.starbase.starteam.FolderUpdateListener, int),
Folder.addFolderListener(com.starbase.starteam.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.starbase.starteam.FolderUpdateListener, int)
public void addItemListener(IItemListener listener,
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,Type,String[],int),
Folder.removeItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type, int),
Server.enableMPX()
public void addItemListener(IItemListener listener,
Type type,
java.lang.String[] propertyNames,
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.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.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,Type,int),
Folder.removeItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type, int),
Server.enableMPX()
public void removeItemListener(IItemListener listener,
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,Type,int)
public void addItemUpdateListener(ItemUpdateListener listener,
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.starbase.starteam.ItemUpdateListener, com.starbase.starteam.Type, int),
View.addItemUpdateListener(com.starbase.starteam.ItemUpdateListener, com.starbase.starteam.Type),
Folder.addItemListener(com.starbase.starteam.IItemListener, com.starbase.starteam.Type, int)
public void removeItemUpdateListener(ItemUpdateListener listener,
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.starbase.starteam.ItemUpdateListener, com.starbase.starteam.Type, int)public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableContainergetParentContainer in class ItemISecurableContainerpublic boolean equals(java.lang.Object source)
equals in class Itemsource - Object the source to comapre with
public int hashCode()
hashCode in class Item
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||