|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.vc.wip.WorkInProgressServiceFwd
Provides server-side functionality as a service that's remotely available for use by a client. The intent is that this interface defines all the necessary server-side functionality for WIP.
Note that the methods in this service do not consider/handle "sandbox"
checkouts, but rather are specific to work-in-progress checkouts.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
WorkInProgressServiceFwd()
|
Method Summary | |
Workable |
checkin(Workable object,
String note)
Checkin a workable object. |
WTCollection |
checkin(WTCollection objects,
String note)
Checkin a WTCollection of Workable objects. |
WTCollection |
checkin(WTCollection objects,
String note,
Folder folder)
Checkin a WTCollection of Workable objects to the folder specified by the name passed. |
WTCollection |
checkin(WTCollection objects,
String note,
String folder)
Checkin a WTCollection of Workable objects to the folder specified by the name passed. |
CheckoutLink |
checkout(Workable object,
Folder folder,
String note)
Checkout a workable object. |
WTCollection |
checkout(WTCollection objects,
Folder folder,
String note)
Checks out a WTCollection of Workable objects to the specified folder. |
WTValuedMap |
checkoutMap(WTCollection objects,
Folder folder,
String note)
Checks out a WTCollection of Workable objects to the specified folder. |
WTValuedMap |
checkoutMap(WTKeyedMap objects,
Folder folder)
Checks out a WTKeyedMap of Workable objects to the specified folder, where the key is the Workable object, and the value is the note for that checkout.. |
QueryResult |
findCheckedOutObjects(WTContainer container)
Find checked out objects for the container, return as a QueryResult. |
QueryResult |
findCheckedOutObjects(WTContainer container,
WTUser name)
Find checked out objects for the container and user, return as a QueryResult. |
QueryResult |
findCheckedOutObjects(WTUser name)
Find checked out objects for the user, return as a QueryResult. |
WTValuedMap |
getCheckedOutToWorkingMap(WTCollection workables)
Method that takes a WTCollection of Workable objects, determines which Workable objects from the WTCollection are in the checked out state. |
Folder |
getCheckoutFolder()
Gets the folder named "Checked Out" located in the current session user's personal cabinet. |
private static Manager |
getManager()
|
boolean |
hasChanged(Workable object)
Deprecated. |
Workable |
originalCopyOf(Workable object)
Navigates to the original copy from a working copy via the CheckoutLink. |
Workable |
undoCheckout(Workable object)
Undo a checkout of a workable object. |
void |
undoCheckouts(Enumeration enum)
Deprecated. |
WTCollection |
undoCheckouts(WTCollection objects)
Given a WTCollection of checked out objects undo each checkout. |
void |
undoCheckouts(WTUser user,
WTContainer container)
Undo all checkouts by the user for objects located in the specified container. |
Workable |
workingCopyOf(Workable object)
Navigates to the working copy of an original copy via the CheckoutLink. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public WorkInProgressServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public Workable checkin(Workable object, String note) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
checkin
in interface WorkInProgressService
object
- note
-
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection checkin(WTCollection objects, String note) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
checkin
in interface WorkInProgressService
objects
- The WTCollection of Workable objects to be checked in.note
- The comment pertaining to the checkin of the Workable objects.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection checkin(WTCollection objects, String note, String folder) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
checkin
in interface WorkInProgressService
objects
- The WTCollection of Workable objects to be checked in.note
- The comment pertaining to the checkin of the Workable objects.folder
- The name of the folder the objects are to be checked in to.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection checkin(WTCollection objects, String note, Folder folder) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
checkin
in interface WorkInProgressService
objects
- The WTCollection of Workable objects to be checked in.note
- The comment pertaining to the checkin of the Workable objects.folder
- The Folder the objects are to be checked in to.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public CheckoutLink checkout(Workable object, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException
checkout
in interface WorkInProgressService
object
- folder
- note
-
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
public WTCollection checkout(WTCollection objects, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException
checkout
in interface WorkInProgressService
objects
- The WTCollection of objects to be checked out.folder
- The Folder the objects are to be checked out to.note
- The comment for the checkout operation.
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
public Workable undoCheckout(Workable object) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
undoCheckout
in interface WorkInProgressService
object
-
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public void undoCheckouts(Enumeration enum) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
undoCheckouts
in interface WorkInProgressService
enum
-
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public void undoCheckouts(WTUser user, WTContainer container) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
undoCheckouts
in interface WorkInProgressService
user
- container
-
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection undoCheckouts(WTCollection objects) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException
undoCheckouts
in interface WorkInProgressService
objects
- The WTCollection of checked out objects.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public Workable originalCopyOf(Workable object) throws WTException, WorkInProgressException
originalCopyOf
in interface WorkInProgressService
object
-
WTException
WorkInProgressException
public Workable workingCopyOf(Workable object) throws WTException, WorkInProgressException
workingCopyOf
in interface WorkInProgressService
object
-
WTException
WorkInProgressException
public boolean hasChanged(Workable object) throws WTException
Currently this method always returns true. The goal is to be able
to detect if any attributes and associations from the object have
been modified, and if not return false.
Supported API: false
hasChanged
in interface WorkInProgressService
object
- The object to to test. If it is not a working copy then the working copy associated with the original copy will be retreived from the database and used.
WTException
public Folder getCheckoutFolder() throws WTException
getCheckoutFolder
in interface WorkInProgressService
WTException
public QueryResult findCheckedOutObjects(WTContainer container) throws WTException
findCheckedOutObjects
in interface WorkInProgressService
container
-
WTException
public QueryResult findCheckedOutObjects(WTContainer container, WTUser name) throws WTException
findCheckedOutObjects
in interface WorkInProgressService
container
- name
-
WTException
public QueryResult findCheckedOutObjects(WTUser name) throws WTException
findCheckedOutObjects
in interface WorkInProgressService
name
-
WTException
public WTValuedMap getCheckedOutToWorkingMap(WTCollection workables) throws WorkInProgressException, WTException
getCheckedOutToWorkingMap
in interface WorkInProgressService
workables
-
WorkInProgressException
WTException
workingCopyOf(wt.vc.wip.Workable)
,
originalCopyOf(wt.vc.wip.Workable)
public WTValuedMap checkoutMap(WTCollection objects, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException, ObjectsAlreadyCheckedOutException
checkoutMap
in interface WorkInProgressService
objects
- The WTCollection of objects to be checked out.folder
- The Folder the objects are to be checked out to.note
- The comment for the checkout operation.
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
ObjectsAlreadyCheckedOutException
public WTValuedMap checkoutMap(WTKeyedMap objects, Folder folder) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException, ObjectsAlreadyCheckedOutException
checkoutMap
in interface WorkInProgressService
objects
- The WTCollection of objects to be checked out.folder
- The Folder the objects are to be checked out to.
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
ObjectsAlreadyCheckedOutException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |