Class UnlockCommand

  • All Implemented Interfaces:
    ExecutableCommand

    public class UnlockCommand
    extends ExecutableCommandWrapper
    implements ExecutableCommand

    Unlocks a locked document. To unlock a document, you (or a group to which you belong) must have a lock on it or you must be part of the Lock Administrator group.

    This command requires PTC Integrity 10.6 or higher.

    Notes:

    • Normally, when a document is unlocked, any user can edit the lockable fields of that document. However, the administrator can configure Integrity to require users to lock a document before they edit the lockable fields of that document. When such a requirement is in place, no one can edit the lockable fields of an unlocked document.

    Usage:

     new UnlockCommand(myItem).execute();
     
    Since:
    1.9.2
    • Constructor Detail

      • UnlockCommand

        public UnlockCommand​(Item item)
        Instantiates a command to unlock a Document Item.
        Parameters:
        item - the Document item to unlock.