|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
wt.vc.wip.StandardWorkInProgressService
public class StandardWorkInProgressService
Provides the standard implementation of server-side functionality as defined by the WorkInProgressService interface. This class is the one intended to be extended to enhance functionality.
As defined by the standard WIP service's access control rules, since a Workable object is asserted as being Lockable the service relies on the locking service for applicable access control. Additionally, when an object is checked out then neither the original checked out or working copies can be checked out again nor deleted.
Event-based processing is performed on business objects asserted as being Workable during database storing, [preparation for] modifications, and deletions. When a business object is being stored in the database, the WIP service listens to a dispatched event indicating that the store is about to commence and initializes the state of the object to being checked in if and only if its checkout info cookie is null. Since a Workable asserts itself as being Foldered the WIP service listens to a dispatched event indicating that a store on a cabinet has successfully completed and checks if the cabinet exists in the user domain (i.e., a personal cabinet), and if so stores a checkout folder in that cabinet. When a business object is [prepared for] being modified in the database, the WIP service listens to a dispatched event indicating that the modify is about to commence and vetoes it if:
If the standard implementation is not desired then a custom implementation can extend from WorkInProgressService alongside the standard implementation, and be specified as a property to be used as the default WIP service.
Use the newStandardWorkInProgressService static factory
method(s), not the StandardWorkInProgressService constructor,
to construct instances of this class. Instances must be constructed
using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: true
Extendable: false
StandardManager,
WorkInProgressServiceEvent,
wt.fc.PersistenceManagerEvent.PRE_STORE,
wt.fc.PersistenceManagerEvent.POST_STORE,
wt.fc.PersistenceManagerEvent.PREPARE_FOR_MODIFICATION,
wt.fc.PersistenceManagerEvent.PRE_MODIFY,
wt.fc.PersistenceManagerEvent.PRE_DELETE,
Serialized Form| 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. |
WTCollection |
checkin(WTKeyedMap objects)
Checkin a WTKeyedMap of Workable objects where the key is the Workable object, and the value is the note for that checkin. |
WTCollection |
checkin(WTKeyedMap objects,
Folder folder)
Checkin a WTKeyedMap of Workable objects to the folder specified by the name passed. |
WTCollection |
checkin(WTKeyedMap workableToNoteMap,
WTValuedMap workableToFolderMap)
Checkin a WTKeyedMap of Workable objects to checkin notes the folders specified by WTValuedMap of Workable objects to Folder objects passed. |
CheckoutLink |
checkout(Workable object,
Folder folder,
String note)
Checkout a workable object. |
CheckoutLink |
checkout(Workable object,
Folder folder,
String note,
boolean allowNonLatestCheckout)
Checkout a workable object. |
WTCollection |
checkout(WTCollection objects,
Folder folder,
String note)
Checks out a WTCollection of Workable objects to the specified folder. |
WTCollection |
checkout(WTCollection objects,
Folder folder,
String note,
boolean allowNonLatestCheckout)
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(WTCollection objects,
Folder folder,
String note,
boolean allowNonLatestCheckout)
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.. |
WTValuedMap |
checkoutMap(WTKeyedMap objects,
Folder folder,
boolean allowNonLatestCheckout)
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.. |
Workable |
derivedFrom(Workable workable)
Given a workable return its derived from workable and null if one does not exist Supported API: true |
WTValuedMap |
derivedFroms(WTCollection workables)
Given a collection of workables return a WTValuedMap with keys = objects in iterations that have a derivedFrom, values = corresponding derived from iterations. |
Map<WTUser,WTCollection> |
findCheckedOutObjects(WTCollection containers,
WTCollection users)
Find checked-out objects in the collection of containers for the collection of users. |
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. |
Folder |
getCheckoutFolder()
Gets the folder named "Checked Out" located in the current session user's personal cabinet. |
WTCollection |
getLocked(WTCollection workables)
Given a collection of workables return the workables from that collection that are on a branch that is locked, i.e. |
WTCollection |
getLocked(WTCollection workables,
WorkInProgressState wipState)
Given a collection of workables return the workables from that collection that are on a branch that is locked, i.e. |
boolean |
isCheckoutAllowed(Workable workable)
Given a workable object return true if it can be checked out. |
WTCollection |
isCheckoutAllowed(WTCollection workables)
Given a WTCollection of workables return a WTCollection containing only the workables that can be checked out. |
boolean |
isLocked(Workable workable)
Returns true if the input workable is locked because it or another iteration on its branch has been checked out. |
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. |
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 wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Workable checkin(Workable object,
String note)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
checkin in interface WorkInProgressServiceobject - note -
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection checkin(WTCollection objects,
String note)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
checkin in interface WorkInProgressServiceobjects - 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 WorkInProgressServiceobjects - 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 WorkInProgressServiceobjects - 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 WTCollection checkin(WTKeyedMap objects)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
checkin in interface WorkInProgressServiceobjects - The WTKeyedMap of Workable objects to be checked in.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection checkin(WTKeyedMap objects,
Folder folder)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
checkin in interface WorkInProgressServiceobjects - The WTKeyedMap of Workable objects to be checked in.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 WorkInProgressServiceobject - folder - note -
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
public CheckoutLink checkout(Workable object,
Folder folder,
String note,
boolean allowNonLatestCheckout)
throws WorkInProgressException,
WTException
checkout in interface WorkInProgressServiceobject - folder - note - allowNonLatestCheckout -
WorkInProgressException
WTException
public WTCollection checkout(WTCollection objects,
Folder folder,
String note)
throws WTException,
WorkInProgressException,
NonLatestCheckoutException,
WTPropertyVetoException,
PersistenceException
checkout in interface WorkInProgressServiceobjects - 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 WTCollection checkout(WTCollection objects,
Folder folder,
String note,
boolean allowNonLatestCheckout)
throws WorkInProgressException,
WTException
checkout in interface WorkInProgressServiceobjects - folder - note - allowNonLatestCheckout -
WorkInProgressException
WTException
public Workable derivedFrom(Workable workable)
throws WorkInProgressException,
WTException
derivedFrom in interface WorkInProgressServiceworkable -
WorkInProgressException
WTException
public WTValuedMap derivedFroms(WTCollection workables)
throws WorkInProgressException,
WTException
derivedFroms in interface WorkInProgressServiceworkables -
WorkInProgressException
WTException
public Workable undoCheckout(Workable object)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
undoCheckout in interface WorkInProgressServiceobject -
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public void undoCheckouts(WTUser user,
WTContainer container)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
undoCheckouts in interface WorkInProgressServiceuser - container -
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public WTCollection undoCheckouts(WTCollection objects)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
undoCheckouts in interface WorkInProgressServiceobjects - The WTCollection of checked out objects.
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
public Workable originalCopyOf(Workable object)
throws WTException,
WorkInProgressException
originalCopyOf in interface WorkInProgressServiceobject -
WTException
WorkInProgressException
public Workable workingCopyOf(Workable object)
throws WTException,
WorkInProgressException
workingCopyOf in interface WorkInProgressServiceobject -
WTException
WorkInProgressException
public Folder getCheckoutFolder()
throws WTException
getCheckoutFolder in interface WorkInProgressServiceWTException
public boolean isLocked(Workable workable)
throws WorkInProgressException,
WTException
isLocked in interface WorkInProgressServiceworkable -
WorkInProgressException
WTException
public WTCollection getLocked(WTCollection workables)
throws WorkInProgressException,
WTException
getLocked in interface WorkInProgressServiceworkables -
WorkInProgressException
WTException
public WTCollection getLocked(WTCollection workables,
WorkInProgressState wipState)
throws WorkInProgressException,
WTException
getLocked in interface WorkInProgressServiceworkables - wipState -
WorkInProgressException
WTException
public QueryResult findCheckedOutObjects(WTContainer container)
throws WTException
findCheckedOutObjects in interface WorkInProgressServicecontainer -
WTException
public QueryResult findCheckedOutObjects(WTContainer container,
WTUser name)
throws WTException
findCheckedOutObjects in interface WorkInProgressServicecontainer - name -
WTException
public QueryResult findCheckedOutObjects(WTUser name)
throws WTException
findCheckedOutObjects in interface WorkInProgressServicename -
WTException
public Map<WTUser,WTCollection> findCheckedOutObjects(WTCollection containers,
WTCollection users)
throws WTException
findCheckedOutObjects in interface WorkInProgressServicecontainers - Collection of WTContainers. The objects returned will be in one of these containers.users - Collection of WTUsers. The objects returned will be checked out to one of these users.
WTException
public WTValuedMap checkoutMap(WTCollection objects,
Folder folder,
String note)
throws WTException,
WorkInProgressException,
NonLatestCheckoutException,
WTPropertyVetoException,
PersistenceException,
wt.vc.wip.ObjectsAlreadyCheckedOutException
checkoutMap in interface WorkInProgressServiceobjects - 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
wt.vc.wip.ObjectsAlreadyCheckedOutException
public WTValuedMap checkoutMap(WTCollection objects,
Folder folder,
String note,
boolean allowNonLatestCheckout)
throws WorkInProgressException,
WTException
checkoutMap in interface WorkInProgressServiceobjects - folder - note - allowNonLatestCheckout -
WorkInProgressException
WTException
public WTValuedMap checkoutMap(WTKeyedMap objects,
Folder folder)
throws WTException,
WorkInProgressException,
NonLatestCheckoutException,
WTPropertyVetoException,
PersistenceException,
wt.vc.wip.ObjectsAlreadyCheckedOutException
checkoutMap in interface WorkInProgressServiceobjects - The WTCollection of objects to be checked out.folder - The Folder the objects are to be checked out to.
WTException
WorkInProgressException
NonLatestCheckoutException
WTPropertyVetoException
PersistenceException
wt.vc.wip.ObjectsAlreadyCheckedOutException
public WTValuedMap checkoutMap(WTKeyedMap objects,
Folder folder,
boolean allowNonLatestCheckout)
throws WorkInProgressException,
WTException
checkoutMap in interface WorkInProgressServiceobjects - folder - allowNonLatestCheckout -
WorkInProgressException
WTException
public boolean isCheckoutAllowed(Workable workable)
throws WorkInProgressException,
WTException
isCheckoutAllowed in interface WorkInProgressServiceworkable -
WorkInProgressException
WTException
public WTCollection isCheckoutAllowed(WTCollection workables)
throws WorkInProgressException,
WTException
isCheckoutAllowed in interface WorkInProgressServiceworkables -
WorkInProgressException
WTException
public WTCollection checkin(WTKeyedMap workableToNoteMap,
WTValuedMap workableToFolderMap)
throws WTException,
WorkInProgressException,
WTPropertyVetoException,
PersistenceException
checkin in interface WorkInProgressServiceworkableToNoteMap - workableToFolderMap -
WTException
WorkInProgressException
WTPropertyVetoException
PersistenceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||