Interface IFormRecordLockContext

  • All Superinterfaces:
    AutoCloseable, Serializable
    All Known Implementing Classes:
    FormRecordLockContext

    public interface IFormRecordLockContext
    extends Serializable, AutoCloseable
    Common interface for a form record locking context that can acquire a lock on a form record and which needs to be released when the context is closed
    Since:
    6.6.13 & 7.0.5
    Author:
    XIMA Media GmbH
    • Method Detail

      • getFormRecordId

        Long getFormRecordId()
        Returns:
        ID of the form record that is being locked by this context. May be null if no form record is being locked by this context.
      • update

        void update​(Vorgang newFormRecord)
             throws IllegalStateException
        Updates the form record to be locked. This is not possible if the context is already locking a form record.
        Parameters:
        newFormRecord - to lock
        Throws:
        IllegalStateException - if the context is already locking a form record