|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.clients.lifecycle.LifeCycleTaskLogic
Class LifeCycleTaskLogic
provides static
helper methods
for manipulating LifeCycleManaged
objects. These methods encapsulate
the server-side processing necessary to manipulate LifeCycleManaged
objects.
Supported API: false
Extendable: false
LifeCycleManaged
Field Summary | |
private static String |
versionID
|
Constructor Summary | |
LifeCycleTaskLogic()
|
Method Summary | |
static String |
getLifeCycleName(LifeCycleManaged lc_object)
Method getLifeCycleName returns the String name
of the life cycle which the given LifeCycleManaged object
is in. |
static State |
getLifeCycleState(LifeCycleManaged lc_object)
Method getLifeCycleState returns the the life cycle State
which the given object is currently in. |
static String |
getLifeCycleStateDisplay(LifeCycleManaged lc_object)
Method getLifeCycleStateDisplay returns a displayable
String representation of the current life cycle
State the given object is in. |
static String |
getTeamTemplateName(LifeCycleManaged lc_object)
Method getTeamTemplateName returns the name of the TeamTemplate that the
given object is associated with. |
static boolean |
isRolePlayer(LifeCycleManaged lc_object,
WTUser user,
Role role)
Method isRolePlayer determines if the given WTUser
plays the given Role for the given LifeCycleManaged
object. |
static boolean |
isSubmitted(LifeCycleManaged lc_object)
Method isSubmitted determines if the given LifeCycleManaged
object has been submitted to the life cycle. |
static LifeCycleManaged |
submit(LifeCycleManaged lc_object)
Method submit submits the given LifeCycleManaged object
for approval in its life cycle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
Constructor Detail |
public LifeCycleTaskLogic()
Method Detail |
public static String getLifeCycleName(LifeCycleManaged lc_object) throws LifeCycleException
getLifeCycleName
returns the String
name
of the life cycle which the given LifeCycleManaged
object
is in.
lc_object
- the LifeCycleManaged
object for which
the name of the life cycle is returned
String
name which the given object is in
LifeCycleException
- if an error occurs trying to
retrieve the life cycle nameLifeCycleManaged
public static State getLifeCycleState(LifeCycleManaged lc_object) throws LifeCycleException
getLifeCycleState
returns the the life cycle State
which the given object is currently in.
lc_object
- the LifeCycleManaged
object whose current
life cycle state is returned
State
of the given object
LifeCycleException
- if an error occurs trying to
retrieve the current life cycle state of the given objectLifeCycleManaged
,
State
public static String getLifeCycleStateDisplay(LifeCycleManaged lc_object) throws LifeCycleException
getLifeCycleStateDisplay
returns a displayable
String
representation of the current life cycle
State
the given object is in.
lc_object
- the LifeCycleManaged
object for which a
display version of its current state is returned
String
representation of the current
life cycle state the given object is in
LifeCycleException
- if an error occurs trying to retrieve
the life cycle state of the given objectLifeCycleManaged
public static String getTeamTemplateName(LifeCycleManaged lc_object) throws LifeCycleException
getTeamTemplateName
returns the name of the TeamTemplate that the
given object is associated with.
lc_object
- the LifeCycleManaged
object for which
TeamTemplate name is returned
String
name of the project the given object
is associated with
LifeCycleException
- if an error occurs retrieving
the teamTemplate nameLifeCycleManaged
,
TeamTemplate
public static boolean isRolePlayer(LifeCycleManaged lc_object, WTUser user, Role role) throws WTException
isRolePlayer
determines if the given WTUser
plays the given Role
for the given LifeCycleManaged
object.
lc_object
- the LifeCycleManaged
object for which
the given user playing the given role is testuser
- the WTUser
who is tested for playing
the given role on the given objectrole
- the Role
that the given user is tested
for playing on the given object
true
, then the given user plays the given role
on the given object
WTException
- if an error occurs testing whether or not the given
user plays the given role on the given objectLifeCycleManaged
,
Role
,
WTUser
public static LifeCycleManaged submit(LifeCycleManaged lc_object) throws LifeCycleException, WTException
submit
submits the given LifeCycleManaged
object
for approval in its life cycle.
lc_object
- the LifeCycleManaged
object to be submitted
LifeCycleManaged
object
LifeCycleException
- if an error occurs submitting the object for
approval to the life cycle
WTException
- if an error occurs submitting the object for
approval to the life cycleisSubmitted(wt.lifecycle.LifeCycleManaged)
,
LifeCycleManaged
public static boolean isSubmitted(LifeCycleManaged lc_object) throws LifeCycleException
isSubmitted
determines if the given LifeCycleManaged
object has been submitted to the life cycle.
lc_object
- the LifeCycleManaged
object to be submitted
true
, the given LifeCycleManaged
object
has already been submitted to the life cycle
LifeCycleException
- if an error occurs testing whether or
not the given object has been previously submitted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |