Package org.tigris.subversion.javahl
Class Lock
java.lang.Object
org.tigris.subversion.javahl.Lock
- All Implemented Interfaces:
Serializable
Class to describe a lock. It is returned by the lock operation.
- Since:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
the comment provided during the lock operationprivate long
the date when the lock was createdprivate long
the date when the lock will expireprivate String
the owner of the lockprivate String
the path of the locked itemprivate static final long
private String
the token provided during the lock operation -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
owner
the owner of the lock -
path
the path of the locked item -
token
the token provided during the lock operation -
comment
the 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(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 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
- Returns:
- the owner of the lock
-
getPath
- Returns:
- the path of the locked item
-
getToken
- Returns:
- the token provided during the lock operation
-
getComment
- Returns:
- the comment provided during the lock operation
-
getCreationDate
- Returns:
- the date the lock was created
-
getExpirationDate
- Returns:
- the date when the lock will expire
-