Class Lock
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:
- Serialized Form
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description StringgetComment()DategetCreationDate()DategetExpirationDate()StringgetOwner()StringgetPath()StringgetToken()
-
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 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
-
-
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
-