locking

locking

locking

Functions for locking and unlocking objects to avoid users editing at same time

Metadata

checkForLock()

Checks if specified object is locked by another user on the system

Arguments

Name Type Required Default Options Description
objectId uuid Yes

getLockedObjects()

Returns a query of all object currenty locked by user

Arguments

Name Type Required Default Options Description
userLogin string Yes
types string No [runtime expression]

lock()

Locks object to current user

Arguments

Name Type Required Default Options Description
objectId uuid Yes
typeName string Yes
locked boolean No 1

scheduledUnlock()

Unlocks objects that have been locked for a specified period

Arguments

Name Type Required Default Options Description
days numeric Yes 5 allowable number of days since locked object last updated
types string No dmHTML,dmNews,dmCSS,dmImage,dmFile,dmNavigation,dmInclude

unlock()

Unlocks specified object

Arguments

Name Type Required Default Options Description
objectId uuid No
typeName string Yes
locked boolean No 0