Interface TokenLock

  • All Known Implementing Classes:
    DbTokenLock

    public interface TokenLock
    A token lock.
    • Method Detail

      • getPdoClassId

        int getPdoClassId()
        Gets the class id of the locked PDO.
        Returns:
        the class id
      • getPdoId

        long getPdoId()
        Gets the object id of locked PDO.
        Returns:
        the object id
      • getLockedBy

        long getLockedBy()
        Gets the object ID of the user holding the token.
        Returns:
        the user id, 0 = unlocked
      • getLockedSince

        org.tentackle.common.Timestamp getLockedSince()
        Gets the timestamp when editing started.
        Returns:
        the timestamp when editing started
      • getLockExpiry

        org.tentackle.common.Timestamp getLockExpiry()
        Gets the timestamp when token will expire.
        Returns:
        the timestamp when token will expire