Package org.tmatesoft.svn.core
Class SVNLock
java.lang.Object
org.tmatesoft.svn.core.SVNLock
The SVNLock class represents a file lock. It holds
information on a lock path, token, owner, comment, creation
and expiration dates.
- Since:
- 1.2, SVN 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the lock comment.Gets the creation datestamp of this lock.Gets the expiration datestamp of this lock.getID()
Gets the lock token.getOwner()
Gets the lock owner.getPath()
Gets the path of the file for which this lock was created.toString()
Returns a string representation of this object.
-
Constructor Details
-
SVNLock
Constructs an SVNLock object.
- Parameters:
path
- a file path, relative to the repository root directoryid
- a string token identifying the lockowner
- the owner of the lockcomment
- a comment message for the lock (optional)created
- a datestamp when the lock was createdexpires
- a datestamp when the lock expires, i.e. the file is unlocked (optional)
-
-
Method Details
-
getComment
Gets the lock comment.- Returns:
- a lock comment message
-
getCreationDate
Gets the creation datestamp of this lock.- Returns:
- a datestamp representing the moment in time when this lock was created
-
getExpirationDate
Gets the expiration datestamp of this lock.- Returns:
- a datestamp representing the moment in time when the this lock expires
-
getID
Gets the lock token.- Returns:
- a unique string identifying this lock
-
getOwner
Gets the lock owner.- Returns:
- the owner of this lock
-
getPath
Gets the path of the file for which this lock was created. The path is relative to the repository root directory.- Returns:
- the path of the locked file
-
toString
Returns a string representation of this object.
-