Package wt.change2
Interface ChangeLockService
This is the interface for the changeApplicationLock attribute on the VersionableChangeItem.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionlockRelatedMaterials(WTCollection changeItems, long... lockLevel) This method will set a change application lock on a WTCollection of VersionableChangeItems.unlockRelatedMaterials(WTCollection changeItems, long... lockLevel) This method will remove a change application lock from a WTCollection of VersionableChangeItems.
-
Method Details
-
lockRelatedMaterials
This method will set a change application lock on a WTCollection of VersionableChangeItems. Any duplicates will be removed. If a WTChangeOrder is provided, the API will also automatically query for any related WTChangeActivity2 objects and will set the lock on those as well. The returned set is a new WTHashSet of all of the objects that were updated as part of this call. As a warning, the changeItems input into this API will become stale after it is invoked, and it is advised to use the returned WTHashSet instead.
Supported API: true- Parameters:
changeItems- - Collection of VersionableChangeItems which will become stale after the calllockLevel- - Locks to be set. Refer toChangeApplicationLockfor supported locks for change.- Throws:
WTException
-
unlockRelatedMaterials
This method will remove a change application lock from a WTCollection of VersionableChangeItems. Any duplicates will be removed. If a WTChangeOrder is provided, the API will also automatically query for any related WTChangeActivity2 objects and will remove the lock from those as well. The returned set is a new WTHashSet of all of the objects that were updated as part of this call. As a warning, the changeItems input into this API will become stale after it is invoked, and it is advised to use the returned WTHashSet instead.
Supported API: true- Parameters:
changeItems- - Collection of VersionableChangeItems which will become stale after the calllockLevel- - Locks to be reset.Refer toChangeApplicationLockfor supported locks for change.- Throws:
WTException
-