java.lang.Object
org.apache.subversion.javahl.types.Lock
All Implemented Interfaces:
Serializable

public class Lock extends Object implements Serializable
Class to describe a lock. It is returned by the lock operation.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • owner

      private String owner
      the owner of the lock
    • path

      private String path
      the path of the locked item
    • token

      private String token
      the token provided during the lock operation
    • comment

      private String comment
      the comment provided during the lock operation
    • creationDate

      private long creationDate
      the date when the lock was created
    • expirationDate

      private long expirationDate
      the date when the lock will expire
  • Constructor Details

    • Lock

      public Lock(String owner, String path, String token, String comment, long creationDate, long expirationDate)
      this constructor should only called from JNI code
      Parameters:
      owner - the owner of the lock
      path - the path of the locked item
      token - the lock token
      comment - the lock comment
      creationDate - the date when the lock was created
      expirationDate - the date when the lock will expire
  • Method Details

    • getOwner

      public String getOwner()
      Returns:
      the owner of the lock
    • getPath

      public String getPath()
      Returns:
      the path of the locked item
    • getToken

      public String getToken()
      Returns:
      the token provided during the lock operation
    • getComment

      public String getComment()
      Returns:
      the comment provided during the lock operation
    • getCreationDate

      public Date getCreationDate()
      Returns:
      the date the lock was created
    • getExpirationDate

      public Date getExpirationDate()
      Returns:
      the date when the lock will expire