Package wt.vc.wip
Interface WorkInProgressService
- All Known Implementing Classes:
StandardWorkInProgressService
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: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionallWorkingCopiesOf(Workable object) Navigates to the working copy of an original copy via the CheckoutLink.checkin(WTCollection objects, String note) Checkin a WTCollection of Workable objects.checkin(WTCollection objects, String note, String folder) Checkin a WTCollection of Workable objects to the folder specified by the name passed.checkin(WTCollection objects, String note, Folder folder) Checkin a WTCollection of Workable objects to the folder specified by the name passed.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.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.checkin(WTKeyedMap objects, Folder folder) Checkin a WTKeyedMap of Workable objects to the folder specified by the name passed.Checkin a workable object.Checkin a WTCollection of Workable objects.checkout(WTCollection objects, Folder folder, String note) Checks out a WTCollection of Workable objects to the specified folder.checkout(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout) Checks out a WTCollection of Workable objects to the specified folder.checkout(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) Checks out a WTCollection of Workable objects to the specified folder.Checkout a workable object.Checkout a workable object.checkout(Workable object, Folder folder, String note, boolean allowNonLatestCheckout, boolean isImplicitCheckout) Checkout a workable object.checkout(Workable object, Folder folder, String note, WorkInProgressState wipState) Intended to be used to perform a private checkout by passing in a wipState of WorkInProgressState.PRIVATE_WORKING.checkoutMap(WTCollection objects, Folder folder, String note) Checks out a WTCollection of Workable objects to the specified folder.checkoutMap(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout) Checks out a WTCollection of Workable objects to the specified folder.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..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.convertCheckout(WTCollection workables, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) Converts theworkables, which must be working-copies, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter.convertCheckout(Workable workable, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) Converts theworkable, which must be a working-copy, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter.convertCheckoutMap(WTKeyedMap objects, boolean allowNonLatestCheckout, WorkInProgressState wipState) Converts the Workable objects, which must be working-copies, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter.derivedFrom(Workable workable) Deprecated.derivedFroms(WTCollection workables) findCheckedOutObjects(WTCollection containers, WTCollection users) Find checked-out objects in the collection of containers for the collection of users.findCheckedOutObjects(WTContainer container) Find checked out objects for the container, return as a QueryResult.findCheckedOutObjects(WTContainer container, WTUser name) Find checked out objects for the container and user, return as a QueryResult.findCheckedOutObjects(WTUser name) Find checked out objects for the user, return as a QueryResult.Gets the folder named "Checked Out" located in the current session user's personal cabinet.getLocked(WTCollection workables) Given a collection of workables return the workables from that collection that are on a branch that is locked, i.e.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.isCheckoutAllowed(WTCollection workables) Given a WTCollection of workables return a WTCollection containing only the workables that can be checked out reserved.booleanisCheckoutAllowed(Workable workable) Given a workable object return true if it can be checked out reserved.isConvertCheckoutAllowed(WTCollection workingCopies, WorkInProgressState wipState) Given a WTCollection of working copies of Workables return a WTCollection containing only those working copies that can be converted to the desired type of checkout.booleanisConvertCheckoutAllowed(Workable workingCopy, WorkInProgressState wipState) Given a workable object return true if it can be converted to the desired type of checkout.booleanReturns true if the input workable is locked because it or another iteration on its branch has been checked out reserved.originalCopyOf(Workable object) Navigates to the original copy from a working copy via the CheckoutLink.undoCheckout(Workable object) Undo a checkout of a workable object.undoCheckouts(WTCollection objects) Given a WTCollection of checked out objects undo each checkout.voidundoCheckouts(WTUser user, WTContainer container) Undo all reserved checkouts by the user for objects located in the specified container.workingCopyOf(Workable object) Navigates to the working copy of an original copy via the CheckoutLink.
-
Method Details
-
checkin
Workable checkin(Workable object, String note) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a workable object. A PRE_CHECKIN WorkInProgressServiceEvent is emitted within a transaction before the object is checked in, and a POST_CHECKIN WorkInProgressServiceEvent is emitted within the same transaction after the object has been checked in.
Supported API: true- Parameters:
object-note-- Returns:
- Workable
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
WTCollection checkin(WTCollection objects, String note) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTCollection of Workable objects. A multi-object PRE_CHECKIN WorkInProgressServiceEvent is emitted within a transaction before the objects are checked in, and a multi-object POST_CHECKIN WorkInProgressServiceEvent is emitted within the same transaction after the collection of objects has been checked in. The supplied note is used as the comment for the checkin of the objects.
Supported API: true- Parameters:
objects- The WTCollection of Workable objects to be checked in.note- The comment pertaining to the checkin of the Workable objects.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
WTCollection checkin(WTCollection objects, String note, String folder) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTCollection of Workable objects to the folder specified by the name passed. This API is intended for first time checkin from a personal cabinet only. The supplied note is used as the comment for the checkin of the objects.
Supported API: true- Parameters:
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.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
WTCollection checkin(WTCollection objects, String note, Folder folder) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTCollection of Workable objects to the folder specified by the name passed. This API is intended for first time checkin from a personal cabinet only. The supplied note is used as the comment for the checkin of the objects.
Supported API: true- Parameters:
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.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
WTCollection checkin(WTKeyedMap objects) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTKeyedMap of Workable objects where the key is the Workable object, and the value is the note for that checkin. A multi-object PRE_CHECKIN WorkInProgressServiceEvent is emitted within a transaction before the objects are checked in, and a multi-object POST_CHECKIN WorkInProgressServiceEvent is emitted within the same transaction after the collection of objects has been checked in.
The user must have sufficient access to perform a checkin action by meeting at least one of the 2 following criteria:- User has MODIFY permission on the original, latest copy, MODIFY permission on the working copy folder and be the user who locked the original copy of the object.
- User has ADMINISTRATIVE permission on the original, latest copy of the object.
Supported API: true- Parameters:
objects- The WTKeyedMap of Workable objects to be checked in.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
WTCollection checkin(WTKeyedMap objects, Folder folder) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTKeyedMap of Workable objects to the folder specified by the name passed. The WTKeyedMap contains Workable objects as keys and the values are the associated notes. This API is intended for first time checkin from a personal cabinet only.
Supported API: true- Parameters:
objects- The WTKeyedMap of Workable objects to be checked in.folder- The Folder the objects are to be checked in to.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkin
Workable checkin(Workable object, String note, boolean isImplicitCheckin) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTCollection of Workable objects. A multi-object PRE_CHECKIN WorkInProgressServiceEvent is emitted within a transaction before the objects are checked in, and a multi-object POST_CHECKIN WorkInProgressServiceEvent is emitted within the same transaction after the collection of objects has been checked in. The supplied note is used as the comment for the checkin of the objects. isImplicitCheckin controls the EXPLICIT_MODIFICATION event.
Supported API: true- Parameters:
note- The comment pertaining to the checkin of the Workable objects.isImplicitCheckin- The flag to prevent or allow emission of EXPLICIT_MODIFICATION event for licensingobjects- The WTCollection of Workable objects to be checked in.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
checkout
CheckoutLink checkout(Workable object, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Checkout a workable object. A PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is checked out, and a POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been checked out.
Supported API: true- Parameters:
object-folder-note-- Returns:
- CheckoutLink
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
checkout
CheckoutLink checkout(Workable object, Folder folder, String note, boolean allowNonLatestCheckout) throws WorkInProgressException, WTException Checkout a workable object. This api optionally allows non-latest iterations to be checked out. A PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is checked out, and a POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been checked out.
Supported API: true- Parameters:
object-folder-note-allowNonLatestCheckout-- Returns:
- CheckoutLink
- Throws:
WorkInProgressExceptionWTException
-
checkout
CheckoutLink checkout(Workable object, Folder folder, String note, boolean allowNonLatestCheckout, boolean isImplicitCheckout) throws WorkInProgressException, WTException Checkout a workable object. This api optionally allows non-latest iterations to be checked out. A PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is checked out, and a POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been checked out.
Supported API: true- Parameters:
object-folder-note-allowNonLatestCheckout-isImplicitCheckout-- Returns:
- CheckoutLink
- Throws:
WorkInProgressExceptionWTException
-
checkout
WTCollection checkout(WTCollection objects, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Checks out a WTCollection of Workable objects to the specified folder. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
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.- Returns:
- WTCollection - The collection returned contains the set of CheckoutLink objects resulting from the operation.
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
checkout
WTCollection checkout(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout) throws WorkInProgressException, WTException Checks out a WTCollection of Workable objects to the specified folder. This api optionally allows non-latest iterations to be checked out. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
objects-folder-note-allowNonLatestCheckout-- Returns:
- WTCollection - The collection returned contains the set of CheckoutLink objects resulting from the operation.
- Throws:
WorkInProgressExceptionWTException
-
checkout
CheckoutLink checkout(Workable object, Folder folder, String note, WorkInProgressState wipState) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Intended to be used to perform a private checkout by passing in a wipState of WorkInProgressState.PRIVATE_WORKING. A PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is checked out, and a POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been checked out.
Supported API: true- Parameters:
object-folder-note-wipState-- Returns:
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
checkout
WTCollection checkout(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Checks out a WTCollection of Workable objects to the specified folder. This api optionally allows non-latest iterations to be checked out. It also optionally allows the creation of a private checkout by passing in a wipState of WorkInProgressState.PRIVATE_WORKING. Passing in a wipState of WorkInProgressState.WORKING will result in a reserved checkout. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
objects-folder-note-allowNonLatestCheckout-wipState-- Returns:
- WTCollection - The collection returned contains the set of CheckoutLink objects resulting from the operation.
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
convertCheckout
CheckoutLink convertCheckout(Workable workable, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Converts theworkable, which must be a working-copy, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter. IfwipStateisWorkInProgressState.PRIVATE_WORKINGthen the reserved checkout is converted into a private checkout and ifwipStateisWorkInProgressState.WORKINGthen the private checkout is converted into a reserved checkout. A PRE_CONVERT_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is converted, and a POST_CONVERT_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been converted.
Supported API: true- Parameters:
workable- The working copy of a checkout which is converted into either a private or reserved checkout.note- The note applied to the working copy.allowNonLatestCheckout- If true, then a non-latest private checkout can be converted into a reserved checkout.wipState- Indicates the type of checkout desired, either private or reserved.- Returns:
- CheckoutLink
- Throws:
WTException- On errorWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
convertCheckout
WTCollection convertCheckout(WTCollection workables, String note, boolean allowNonLatestCheckout, WorkInProgressState wipState) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException Converts theworkables, which must be working-copies, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter. IfwipStateisWorkInProgressState.PRIVATE_WORKINGthen the reserved checkout is converted into a private checkout and ifwipStateisWorkInProgressState.WORKINGthen the private checkout is converted into a reserved checkout. A multi-object PRE_CONVERT_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object is converted, and a multi-object POST_CONVERT_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has been converted.
Supported API: true- Parameters:
workables-note- The note applied to the working copies.allowNonLatestCheckout- If true, then a non-latest private checkout can be converted into a reserved checkout.wipState- Indicates the type of checkout desired, either private or reserved.- Returns:
- WTCollection - The collection returned contains the set of CheckoutLink objects resulting from the operation.
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceException
-
convertCheckoutMap
WTValuedMap convertCheckoutMap(WTKeyedMap objects, boolean allowNonLatestCheckout, WorkInProgressState wipState) throws WTException Converts the Workable objects, which must be working-copies, into either a private working copy or reserved working copy, depending on the value of thewipStateparameter. IfwipStateisWorkInProgressState.PRIVATE_WORKINGthen the reserved checkout is converted into a private checkout and ifwipStateisWorkInProgressState.WORKINGthen the private checkout is converted into a reserved checkout.
Supported API: true- Parameters:
objects- A keyed map where keys are the working copies whose type of checkout is changed and values Strings which are the checkout notesallowNonLatestCheckout- If true, then a non-latest private checkout can be converted into a reserved checkout.wipState- Indicates the type of checkout desired, either private or reserved.- Returns:
- A valued-map where the keys are the Workables that were passed in the
objectsmap and the values is theCheckoutLink - Throws:
WTException- On error
-
derivedFrom
Deprecated.Given a workable return its derived from workable and null if one does not exist
Supported API: true- Parameters:
workable-- Returns:
- Workable
- Throws:
WorkInProgressExceptionWTException
-
derivedFroms
Given a collection of workables return a WTValuedMap with keys = objects in iterations that have a derivedFrom, values = corresponding derived from iterations.
Supported API: true- Parameters:
workables-- Returns:
- WTValuedMap
- Throws:
WorkInProgressExceptionWTException
-
undoCheckout
Workable undoCheckout(Workable object) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Undo a checkout of a workable object. A PRE_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object's checkout is undone, and a POST_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has had its checkout undone.
Supported API: true- Parameters:
object-- Returns:
- Workable
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
undoCheckouts
void undoCheckouts(WTUser user, WTContainer container) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Undo all reserved checkouts by the user for objects located in the specified container. A PRE_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the object's checkout is undone, and a POST_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the object has had its checkout undone.
Supported API: true- Parameters:
user-container-- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
undoCheckouts
WTCollection undoCheckouts(WTCollection objects) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Given a WTCollection of checked out objects undo each checkout. A multi-object PRE_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the checkout of the objects is undone, and a multi-object POST_UNDO_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the checkout of the collection of objects has been undone.
The user must have sufficient access to perform an undoCheckouts action by meeting at least one of the 3 following conditions:- User has ADMINISTRATIVE permission on the original (checked out) copy of the object.
- User has ADMINISTRATIVE permission on the working copy of the object.
- User has DELETE permission on the working copy of the object and user has MODIFY permission on the working copy's Folder.
Supported API: true- Parameters:
objects- The WTCollection of checked out objects.- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
originalCopyOf
Navigates to the original copy from a working copy via the CheckoutLink. The working copy may be a reserved working copy or a private working copy.
Supported API: true- Parameters:
object-- Returns:
- Workable
- Throws:
WTExceptionWorkInProgressException
-
workingCopyOf
Navigates to the working copy of an original copy via the CheckoutLink. Will not return private working copies. UseallWorkingCopiesOf(Workable)to get all working copies from reserved and private checkouts.
Supported API: true- Parameters:
object-- Returns:
- Workable
- Throws:
WTExceptionWorkInProgressException
-
allWorkingCopiesOf
Navigates to the working copy of an original copy via the CheckoutLink. Will return working copies from reserved checkout as well as private checkout. UsegetWorkingToOriginalMap(wt.fc.collections.WTCollection)for a multi-object version of this API.
Supported API: true- Parameters:
object-- Returns:
- Workable
- Throws:
WTExceptionWorkInProgressException
-
getCheckoutFolder
Gets the folder named "Checked Out" located in the current session user's personal cabinet.
Supported API: true- Returns:
- Folder
- Throws:
WTException
-
isLocked
Returns true if the input workable is locked because it or another iteration on its branch has been checked out reserved.
Supported API: true- Parameters:
workable-- Returns:
- boolean
- Throws:
WorkInProgressExceptionWTException
-
getLocked
Given a collection of workables return the workables from that collection that are on a branch that is locked, i.e. where one object is checked out.
Supported API: true- Parameters:
workables-- Returns:
- WTCollection
- Throws:
WorkInProgressExceptionWTException
-
getLocked
WTCollection getLocked(WTCollection workables, WorkInProgressState wipState) throws WorkInProgressException, WTException Given a collection of workables return the workables from that collection that are on a branch that is locked, i.e. where one object is checked out, and having the input WorkInProgressState.
Supported API: true- Parameters:
workables-wipState-- Returns:
- WTCollection
- Throws:
WorkInProgressExceptionWTException
-
findCheckedOutObjects
Find checked out objects for the container, return as a QueryResult.
Supported API: true- Parameters:
container-- Returns:
- QueryResult
- Throws:
WTException
-
findCheckedOutObjects
Find checked out objects for the container and user, return as a QueryResult.
Supported API: true- Parameters:
container-name-- Returns:
- QueryResult
- Throws:
WTException
-
findCheckedOutObjects
Find checked out objects for the user, return as a QueryResult.
Supported API: true- Parameters:
name-- Returns:
- QueryResult
- Throws:
WTException
-
findCheckedOutObjects
Map<WTUser,WTCollection> findCheckedOutObjects(WTCollection containers, WTCollection users) throws WTException Find checked-out objects in the collection of containers for the collection of users. Return as a map of users to collections of working copies of their checked-out objects.
Supported API: true- Parameters:
containers- 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.- Returns:
- Mapinvalid input: '<'WTUser,WTCollection>
- Throws:
WTException
-
checkoutMap
WTValuedMap checkoutMap(WTCollection objects, Folder folder, String note) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException, ObjectsAlreadyCheckedOutException Checks out a WTCollection of Workable objects to the specified folder. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
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.- Returns:
- WTValuedMap - The WTValuedMap returned contains the checked out Workable object as the key and the resulting CheckoutLink object as the value.
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceExceptionObjectsAlreadyCheckedOutException
-
checkoutMap
WTValuedMap checkoutMap(WTCollection objects, Folder folder, String note, boolean allowNonLatestCheckout) throws WorkInProgressException, WTException Checks out a WTCollection of Workable objects to the specified folder. This api optionally allows non-latest iterations to be checked out. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
objects-folder-note-allowNonLatestCheckout-- Returns:
- WTValuedMap - The WTValuedMap returned contains the checked out Workable object as the key and the resulting CheckoutLink object as the value.
- Throws:
WorkInProgressExceptionWTException
-
checkoutMap
WTValuedMap checkoutMap(WTKeyedMap objects, Folder folder) throws WTException, WorkInProgressException, NonLatestCheckoutException, WTPropertyVetoException, PersistenceException, ObjectsAlreadyCheckedOutException 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.. A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
Supported API: true- Parameters:
objects- The WTCollection of objects to be checked out.folder- The Folder the objects are to be checked out to.- Returns:
- WTValuedMap - The WTValuedMap returned contains the checked out Workable object as the key and the resulting CheckoutLink object as the value.
- Throws:
WTExceptionWorkInProgressExceptionNonLatestCheckoutExceptionWTPropertyVetoExceptionPersistenceExceptionObjectsAlreadyCheckedOutException
-
checkoutMap
WTValuedMap checkoutMap(WTKeyedMap objects, Folder folder, boolean allowNonLatestCheckout) throws WorkInProgressException, WTException 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. This api optionally allows non-latest checkouts.
A multi-object PRE_CHECKOUT WorkInProgressServiceEvent is emitted within a transaction before the collection of objects is checked out, and a multi-object POST_CHECKOUT WorkInProgressServiceEvent is emitted within the same transaction after the objects have been checked out. The provided note is used as the comment for the checkout operation.
The user must have sufficient access to perform the checkoutMap action. In order for that to be true, all of the following conditions must be met:- User has MODIFY permission on the original copy of the object.
- User has CREATE permission for the object type in the AdministrativeDomain of the proposed checkout folder.
- User has MODIFY permission on the proposed checkout Folder.
Supported API: true- Parameters:
objects-folder-allowNonLatestCheckout-- Returns:
- WTValuedMap - The WTValuedMap returned contains the checked out Workable object as the key and the resulting CheckoutLink object as the value.
- Throws:
WorkInProgressExceptionWTException
-
isCheckoutAllowed
Given a workable object return true if it can be checked out reserved. This api validates latest and non-latest objects.
Supported API: true- Parameters:
workable-- Returns:
- boolean
- Throws:
WorkInProgressExceptionWTException
-
isCheckoutAllowed
Given a WTCollection of workables return a WTCollection containing only the workables that can be checked out reserved. This api validates all latest and non-latest objects.
Supported API: true- Parameters:
workables-- Returns:
- WTCollection
- Throws:
WorkInProgressExceptionWTException
-
isConvertCheckoutAllowed
boolean isConvertCheckoutAllowed(Workable workingCopy, WorkInProgressState wipState) throws WTException Given a workable object return true if it can be converted to the desired type of checkout. This api validates latest and non-latest objects. ThewipStatemust be or .
Supported API: true- Parameters:
workingCopy- The working copy.wipState- Identifies the type of conversion to check for validity.- Returns:
- True if the conversion is allowed.
- Throws:
WTException
-
isConvertCheckoutAllowed
WTCollection isConvertCheckoutAllowed(WTCollection workingCopies, WorkInProgressState wipState) throws WTException Given a WTCollection of working copies of Workables return a WTCollection containing only those working copies that can be converted to the desired type of checkout. This api validates all latest and non-latest objects. ThewipStatemust be or .
Supported API: true- Parameters:
workingCopies- A collection of working copies of type Workable.wipState- Identifies the type of conversion to check for validity.- Returns:
- A sub-set of the
workingCopiescollection passed in that contains only those object for which the conversion is allowed. - Throws:
WTException
-
checkin
WTCollection checkin(WTKeyedMap workableToNoteMap, WTValuedMap workableToFolderMap) throws WTException, WorkInProgressException, WTPropertyVetoException, PersistenceException Checkin a WTKeyedMap of Workable objects to checkin notes the folders specified by WTValuedMap of Workable objects to Folder objects passed. The WTKeyedMap contains Workable objects as keys and the values are the associated notes. The WTValuedMap contains Workable objects as keys and the values are the checkin Folders for each Workable object This API is intended for first time checkin from a personal cabinet only.
The user must have sufficient access to perform a checkin action. In order for that to be true, both of the following two conditions must be met:- User has MODIFY permission on checkin folder.
- User has CREATE permission for the AdministrativeDomain of the checkin folder.
Supported API: true- Parameters:
workableToNoteMap-workableToFolderMap-- Returns:
- WTCollection
- Throws:
WTExceptionWorkInProgressExceptionWTPropertyVetoExceptionPersistenceException
-
VersionControlService.derivedFrom(wt.vc.Iterated)