Package org.tigris.subversion.javahl
Class Lock
java.lang.Object
org.tigris.subversion.javahl.Lock
- All Implemented Interfaces:
java.io.Serializable
public class Lock
extends java.lang.Object
implements java.io.Serializable
Class to describe a lock. It is returned by the lock operation.
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.String
the comment provided during the lock operationprivate long
the date when the lock was createdprivate long
the date when the lock will expireprivate java.lang.String
the owner of the lockprivate java.lang.String
the path of the locked itemprivate static final long
private java.lang.String
the token provided during the lock operation -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
owner
private java.lang.String ownerthe owner of the lock -
path
private java.lang.String paththe path of the locked item -
token
private java.lang.String tokenthe token provided during the lock operation -
comment
private java.lang.String commentthe comment provided during the lock operation -
creationDate
private long creationDatethe date when the lock was created -
expirationDate
private long expirationDatethe date when the lock will expire
-
-
Constructor Details
-
Lock
Lock(java.lang.String owner, java.lang.String path, java.lang.String token, java.lang.String comment, long creationDate, long expirationDate) this constructor should only called from JNI code- Parameters:
owner
- the owner of the lockpath
- the path of the locked itemtoken
- the lock tokencomment
- the lock commentcreationDate
- the date when the lock was createdexpirationDate
- the date when the lock will expire
-
Lock
Lock(Lock aLock)
-
-
Method Details
-
getOwner
public java.lang.String getOwner()- Returns:
- the owner of the lock
-
getPath
public java.lang.String getPath()- Returns:
- the path of the locked item
-
getToken
public java.lang.String getToken()- Returns:
- the token provided during the lock operation
-
getComment
public java.lang.String getComment()- Returns:
- the comment provided during the lock operation
-
getCreationDate
public java.util.Date getCreationDate()- Returns:
- the date the lock was created
-
getExpirationDate
public java.util.Date getExpirationDate()- Returns:
- the date when the lock will expire
-