| java.lang.Object org.tmatesoft.svn.core.SVNLock
SVNLock | public class SVNLock (Code) | | The SVNLock class represents a file lock. It holds
information on a lock path, token, owner, comment, creation
and expiration dates.
version: 1.1.1 author: TMate Software Ltd. since: SVN 1.2 See Also: Examples |
Constructor Summary | |
public | SVNLock(String path, String id, String owner, String comment, Date created, Date expires)
Constructs an SVNLock object.
Parameters: path - a file path, relative to the repository root directory Parameters: id - a string token identifying the lock Parameters: owner - the owner of the lock Parameters: comment - a comment message for the lock (optional) Parameters: created - a datestamp when the lock was created Parameters: expires - a datestamp when the lock expires, i.e. |
SVNLock | public SVNLock(String path, String id, String owner, String comment, Date created, Date expires)(Code) | |
Constructs an SVNLock object.
Parameters: path - a file path, relative to the repository root directory Parameters: id - a string token identifying the lock Parameters: owner - the owner of the lock Parameters: comment - a comment message for the lock (optional) Parameters: created - a datestamp when the lock was created Parameters: expires - a datestamp when the lock expires, i.e. the file is unlocked (optional) |
getComment | public String getComment()(Code) | | Gets the lock comment.
a lock comment message |
getCreationDate | public Date getCreationDate()(Code) | | Gets the creation datestamp of this lock.
a datestamp representing the moment in time when this lock was created |
getExpirationDate | public Date getExpirationDate()(Code) | | Gets the expiration datestamp of this lock.
a datestamp representing the moment in time when the this lock expires |
getID | public String getID()(Code) | | Gets the lock token.
a unique string identifying this lock |
getOwner | public String getOwner()(Code) | | Gets the lock owner.
the owner of this lock |
getPath | public String getPath()(Code) | | Gets the path of the file for which this lock was created.
The path is relative to the repository root directory.
the path of the locked file |
toString | public String toString()(Code) | | Returns a string representation of this object.
a string representation of this lock object |
|
|