Interface TokenLock

All Known Implementing Classes:
DbTokenLock

public interface TokenLock
A token lock.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the object ID of the user holding the token.
    org.tentackle.common.Timestamp
    Gets the timestamp when editing started.
    org.tentackle.common.Timestamp
    Gets the timestamp when token will expire.
    int
    Gets the class id of the locked PDO.
    long
    Gets the object id of locked PDO.
  • Method Details

    • 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