|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.ProcessItem
A process item in the context of a given target view.
| Constructor Summary | |
ProcessItem(Item item)
Constructs a process item. |
|
ProcessItem(Item item,
View target)
Constructs a process item in the context of a given target view. |
|
| Method Summary | |
boolean |
equals(java.lang.Object another)
|
static ItemList |
getActiveProcessItems(Type type,
View view)
Gets the list of process items of the given type that are in a valid active state. |
static ItemList |
getActiveProcessItems(Type type,
View target,
Folder source,
int depth)
Gets the list of process items of the given type that are in a valid active state for the given target view. |
static ItemList |
getActiveProcessItems(Type type,
View target,
View source)
Gets the list of process items of the given type that are in a valid active state for the given target view. |
static ItemList |
getActiveProcessItems(View target,
ItemListManager source)
Gets the list of process items of the given type that are in a valid active state for the given target view. |
Item[] |
getAllProcessTasks()
Gets the list of process tasks associated with this process item in its target view. |
Item[] |
getAllProcessTasksInAnyView()
Gets the list of process tasks associated with this process item. |
Item[] |
getAllProcessTasksInProgress(ProcessItemUsage usage)
Gets the list of process tasks in progress in the target view. |
Item |
getItem()
Gets the underlying item. |
static Type[] |
getProcessItemTypes(View targetView)
Gets the list of item types that are legal process item types for the given target view. |
Item |
getProcessTaskInProgress(ProcessItemUsage usage)
Gets the process task in progress in the target view. |
View |
getTargetView()
Gets the target view. |
int |
hashCode()
Return a hashcode for this item. |
boolean |
isActiveState()
Determines whether or not this process item is a legal process item for its target view, and is in a legal state to be selected as an active process item for that view. |
boolean |
isEnhanced()
Determines whether or not this process item follows the rules of the enhanced process item model in the context of its target view. |
boolean |
isLegalType()
Determines whether or not this process item is a legal type of process item for its target view. |
boolean |
isSelectable(ProcessItemUsage usage)
Determines whether or not this process item is in a state that allows it to be selected as the active process item for its target view. |
Item[] |
resolve()
Resolves this process item in the context of its target view. |
void |
verifyIsSelectable(ProcessItemUsage usage)
Verifies that this process item is in a state that allows it to be selected as the active process item for its target view. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProcessItem(Item item)
item - The item to be treated as a process item.
The item is not necessarily a valid type for the target view.
public ProcessItem(Item item,
View target)
item - The item to be treated as a process item.
The item is not necessarily a valid type for the target view.| Method Detail |
public Item getItem()
public View getTargetView()
public boolean isSelectable(ProcessItemUsage usage)
usage - The intended usage of this process item.
ProcessItem.verifyIsSelectable(com.starbase.starteam.ProcessItemUsage)public void verifyIsSelectable(ProcessItemUsage usage)
usage - The intended usage of this process item.
java.lang.IllegalArgumentException - if the process item is not a valid
process item for the target view.
java.lang.IllegalStateException - if the process item is not in a state
that allows it to be selected as the active process item.ProcessItem.isSelectable(com.starbase.starteam.ProcessItemUsage)public boolean isLegalType()
Note that even if this is a legal type of process item, it is not necessarily in a legal state to be selected as an active process item.
ProcessItem.isActiveState(),
Project.isProcessItemsRequired(),
Project.isProcessItemTypeEnabled(com.starbase.starteam.Type)public boolean isActiveState()
ProcessItem.isLegalType(),
Project#isProcessItemsEnabled,
Project.isActiveProcessItemStateEnabled(com.starbase.starteam.EnumeratedValue)public boolean isEnhanced()
In the enhanced model, changed files and folders are linked to process items indirectly, via a view-specific process task.
public Item[] resolve()
public Item getProcessTaskInProgress(ProcessItemUsage usage)
usage - The operation being performed that will result
in changed files or folders (for example, CHECKIN). May not be null.
java.lang.IllegalStateException - if there is more than one
process task in progress with the requested usage in the target view.public Item[] getAllProcessTasksInProgress(ProcessItemUsage usage)
usage - The operation being performed that will result
in changed files or folders (for example, CHECKIN).
If null, then any usage is acceptable.
public Item[] getAllProcessTasks()
public Item[] getAllProcessTasksInAnyView()
View.getDisembodiedItem(int, com.starbase.starteam.Type),
Item.isDisembodied()public static Type[] getProcessItemTypes(View targetView)
public static ItemList getActiveProcessItems(Type type,
View view)
type - The item type.view - A view that is both the target view and the source of
the candidate process items.
public static ItemList getActiveProcessItems(Type type,
View target,
View source)
type - The item type.target - The target view.source - The view that is the source of the candidate process items.
public static ItemList getActiveProcessItems(Type type,
View target,
Folder source,
int depth)
type - The item type.target - The target view.source - The folder that is the source of the candidate process items.depth - Determines which folders are searched for process items.
Zero searches only the given folder; 1 searches the folder and all child
folders to a depth of 1; and so on. Use -1 to search the folder and all
child folders to any depth.
public static ItemList getActiveProcessItems(View target,
ItemListManager source)
target - The target view.source - The source of the candidate process items.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object another)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||