|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.vc.wip.WorkInProgressHelper
public final class WorkInProgressHelper
Provides the Work In Progress (WIP) service's Application Programming Interface (API). This API includes static methods to checkin, checkout, undo checkout, find the predecessor and successor(s) of an iteration, find the original checked out copy of a working copy, find the working copy of an original checked out copy, get cookie information, and get search conditions to aid in a query. These methods can be categorized as locally and remotely invokeable. The local methods are getters of information, typically from cookies, that are held in the client or server. The remote methods serve as wrappers to services that promote server-side functionality to clients.
Note that the methods in this helper do not consider/handle "sandbox"
checkouts, but rather are specific to work-in-progress checkouts. The
lone exception to this is getState() which can return WorkInProgressState.CHECKED_OUT_TO_SANDBOX.
Supported API: true
Extendable: false
Workable,
WorkInProgressService,
Serialized Form| Field Summary | |
|---|---|
static WorkInProgressService |
service
Supported API: true |
| Method Summary | |
|---|---|
static WTCollection |
getCheckedOut(WTCollection objects)
Given a collection of objects, returns a collection containing only those objects that are checked out. |
protected static WTCollection |
getCheckedOut(WTCollection objects,
WTPrincipal worker)
Given a collection of objects, returns a collection containing only those objects that are checked out. |
static SearchCondition |
getSearchCondition_CI(Class target)
Determines a search condition (containing a Checked In clause) to be appended on a query. |
static SearchCondition |
getSearchCondition_CO(Class target)
Determines a search condition (containing a Checked Out clause) to be appended on a query. |
static SearchCondition |
getSearchCondition_WRK(Class target)
Determines a search condition (containing a Working clause) to be appended on a query. |
static SearchCondition |
getSearchCondition(Class target,
boolean checkedOut)
Deprecated. |
static WorkInProgressState |
getState(Workable object)
Gets the work-in-progress state of the object. |
static boolean |
isCheckedOut(Workable object)
Tests if the workable object is checked out. |
static boolean |
isCheckedOut(Workable object,
WTPrincipal worker)
Tests if the workable object is checked out by the principal. |
static boolean |
isWorkingCopy(Workable object)
Tests if the workable object is a working copy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final WorkInProgressService service
| Method Detail |
|---|
public static WorkInProgressState getState(Workable object)
throws WorkInProgressException
object -
WorkInProgressException
public static boolean isCheckedOut(Workable object)
throws WTException
object -
WTException
public static boolean isCheckedOut(Workable object,
WTPrincipal worker)
throws WTException
object - worker -
WTException
protected static WTCollection getCheckedOut(WTCollection objects,
WTPrincipal worker)
throws WTException
objects - worker -
WTException
public static WTCollection getCheckedOut(WTCollection objects)
throws WTException
objects -
WTExceptionpublic static boolean isWorkingCopy(Workable object)
object -
public static SearchCondition getSearchCondition(Class target,
boolean checkedOut)
throws WorkInProgressException,
QueryException
target - checkedOut -
WorkInProgressException
QueryException
public static SearchCondition getSearchCondition_WRK(Class target)
throws WorkInProgressException,
QueryException
target -
WorkInProgressException
QueryException
public static SearchCondition getSearchCondition_CO(Class target)
throws WorkInProgressException,
QueryException
target -
WorkInProgressException
QueryException
public static SearchCondition getSearchCondition_CI(Class target)
throws WorkInProgressException,
QueryException
target -
WorkInProgressException
QueryException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||