public class Status
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Status.Kind
class for kind status of the item or its properties
the constants are defined in the interface StatusKind for building
reasons
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
changelist |
private ConflictDescriptor |
conflictDescriptor |
private java.lang.String |
conflictNew
if there is a conflict, the filename of the new version
from the repository
|
private java.lang.String |
conflictOld
if there is a conflict, the filename of the common base version
from the repository
|
private java.lang.String |
conflictWorking
if there is a conflict, the filename of the former working copy
version
|
private boolean |
copied
has this item be copied from another item
|
private boolean |
fileExternal
has the item is a file external
|
private long |
lastChangedDate
the last date the item was changed before base (represented in
microseconds since the epoch)
|
private long |
lastChangedRevision
the last revision the item was changed before base
|
private java.lang.String |
lastCommitAuthor
the last author of the last change before base
|
private java.lang.String |
lockComment |
private long |
lockCreationDate |
private boolean |
locked
flag is this item is locked locally by subversion
(running or aborted operation)
|
private java.lang.String |
lockOwner |
private java.lang.String |
lockToken |
private int |
nodeKind
kind of the item (file, directory or unknonw)
|
private java.lang.String |
path
the path in the working copy
|
private int |
propStatus
the status of the properties (See StatusKind)
|
private int |
repositoryPropStatus
the status of the properties base (See StatusKind)
|
private int |
repositoryTextStatus
the file or directory status of base (See StatusKind)
|
private int |
reposKind |
private java.lang.String |
reposLastCmtAuthor |
private long |
reposLastCmtDate |
private long |
reposLastCmtRevision |
private Lock |
reposLock |
private long |
revision
the base revision of the working copy
|
private long |
revisionCopiedFrom
if copied, the revision number of the copy source
|
private static long |
serialVersionUID |
private boolean |
switched
has the url of the item be switch
|
private int |
textStatus
the file or directory status (See StatusKind)
|
private boolean |
treeConflicted |
private java.lang.String |
url
the url for accessing the item
|
private java.lang.String |
urlCopiedFrom
if copied, the url of the copy source
|
Constructor and Description |
---|
Status(java.lang.String path)
Create an empty status struct
|
Status(java.lang.String path,
java.lang.String url,
int nodeKind,
long revision,
long lastChangedRevision,
long lastChangedDate,
java.lang.String lastCommitAuthor,
int textStatus,
int propStatus,
int repositoryTextStatus,
int repositoryPropStatus,
boolean locked,
boolean copied,
boolean treeConflicted,
ConflictDescriptor conflictDescriptor,
java.lang.String conflictOld,
java.lang.String conflictNew,
java.lang.String conflictWorking,
java.lang.String urlCopiedFrom,
long revisionCopiedFrom,
boolean switched,
boolean fileExternal,
java.lang.String lockToken,
java.lang.String lockOwner,
java.lang.String lockComment,
long lockCreationDate,
Lock reposLock,
long reposLastCmtRevision,
long reposLastCmtDate,
int reposKind,
java.lang.String reposLastCmtAuthor,
java.lang.String changelist)
this constructor should only called from JNI code
|
Status(SVNClient aClient,
Status aStatus)
A backward-compat wrapper.
|
Modifier and Type | Method and Description |
---|---|
private static int |
fromAStatusKind(Status.Kind aKind) |
java.lang.String |
getChangelist() |
ConflictDescriptor |
getConflictDescriptor() |
java.lang.String |
getConflictNew()
Returns in case of conflict, the filename of the most recent repository
version
|
java.lang.String |
getConflictOld()
Returns in case of conflict, the filename of the common base version
|
java.lang.String |
getConflictWorking()
Returns in case of conflict, the filename of the former working copy
version
|
java.util.Date |
getLastChangedDate()
Returns the last date the item was changed or null
|
long |
getLastChangedDateMicros()
Returns the last date the item was changed measured in the
number of microseconds since 00:00:00 January 1, 1970 UTC.
|
Revision.Number |
getLastChangedRevision()
Returns the last revision the file was changed as a Revision object
|
long |
getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer
|
java.lang.String |
getLastCommitAuthor()
Returns the author of the last changed or null
|
java.lang.String |
getLockComment()
Returns the lock comment
|
java.util.Date |
getLockCreationDate()
Returns the lock creation date
|
long |
getLockCreationDateMicros()
Returns the lock creation date measured in the number of
microseconds since 00:00:00 January 1, 1970 UTC.
|
java.lang.String |
getLockOwner()
Returns the lock owner
|
java.lang.String |
getLockToken()
Returns the lock token
|
int |
getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)
|
java.lang.String |
getPath()
Returns the file system path of the item
|
int |
getPropStatus()
Returns the status of the properties (See Status Kind)
|
java.lang.String |
getPropStatusDescription()
Returns the status of the properties as text
|
int |
getRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)
|
int |
getRepositoryTextStatus()
Returns the status of the item in the repository (See StatusKind)
|
int |
getReposKind() |
java.lang.String |
getReposLastCmtAuthor() |
java.util.Date |
getReposLastCmtDate() |
long |
getReposLastCmtDateMicros()
Return the last committed date measured in the number of
microseconds since 00:00:00 January 1, 1970 UTC.
|
Revision.Number |
getReposLastCmtRevision() |
long |
getReposLastCmtRevisionNumber() |
Lock |
getReposLock()
Returns the lock as in the repository
|
Revision.Number |
getRevision()
Returns the revision as a Revision object
|
Revision.Number |
getRevisionCopiedFrom()
Returns if copied the source revision as a Revision object
|
long |
getRevisionCopiedFromNumber()
Returns if copied the source revision as s long integer
|
long |
getRevisionNumber()
Returns the revision as a long integer
|
int |
getTextStatus()
Returns the status of the item (See StatusKind)
|
java.lang.String |
getTextStatusDescription()
Returns the status of the item as text.
|
java.lang.String |
getUrl()
Returns the URI to where the item might exist in the
repository.
|
java.lang.String |
getUrlCopiedFrom()
Returns if copied the copy source url or null
|
boolean |
hasRemote()
Returns if the resource has a remote counter-part
|
boolean |
hasTreeConflict() |
boolean |
isAdded()
Returns if the resource just has been added
|
boolean |
isCopied()
Returns if the item has been copied
|
boolean |
isDeleted()
Returns if the resource is schedules for delete
|
boolean |
isFileExternal()
Returns if the item is a file external
|
boolean |
isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore
is set on SVNClient.list)
|
boolean |
isLocked()
Returns if the item is locked (running or aborted subversion operation)
|
boolean |
isManaged()
Returns if is managed by svn (added, normal, modified ...)
|
boolean |
isMerged()
Returns if the resource has been merged
|
boolean |
isModified()
Returns if the resource itself is modified
|
boolean |
isSwitched()
Returns if the repository url has been switched
|
private static java.util.Date |
microsecondsToDate(long micros)
Converts microseconds since the epoch to a Date object.
|
private void |
populateFromInfo(SVNClient aClient,
java.lang.String path) |
(package private) void |
populateLocalLock(Lock aLock) |
private static final long serialVersionUID
private java.lang.String url
private java.lang.String path
private int nodeKind
private long revision
private long lastChangedRevision
private long lastChangedDate
private java.lang.String lastCommitAuthor
private int textStatus
private int propStatus
private boolean locked
private boolean copied
private boolean switched
private boolean fileExternal
private boolean treeConflicted
private ConflictDescriptor conflictDescriptor
private int repositoryTextStatus
private int repositoryPropStatus
private java.lang.String conflictNew
private java.lang.String conflictOld
private java.lang.String conflictWorking
private java.lang.String urlCopiedFrom
private long revisionCopiedFrom
private java.lang.String lockToken
private java.lang.String lockOwner
private java.lang.String lockComment
private long lockCreationDate
private Lock reposLock
private long reposLastCmtRevision
Revision.SVN_INVALID_REVNUM
if not out of date.private long reposLastCmtDate
private int reposKind
NodeKind.none
if not out of date.private java.lang.String reposLastCmtAuthor
null
if not out of date.private java.lang.String changelist
null
if not under
version control.public Status(java.lang.String path, java.lang.String url, int nodeKind, long revision, long lastChangedRevision, long lastChangedDate, java.lang.String lastCommitAuthor, int textStatus, int propStatus, int repositoryTextStatus, int repositoryPropStatus, boolean locked, boolean copied, boolean treeConflicted, ConflictDescriptor conflictDescriptor, java.lang.String conflictOld, java.lang.String conflictNew, java.lang.String conflictWorking, java.lang.String urlCopiedFrom, long revisionCopiedFrom, boolean switched, boolean fileExternal, java.lang.String lockToken, java.lang.String lockOwner, java.lang.String lockComment, long lockCreationDate, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, int reposKind, java.lang.String reposLastCmtAuthor, java.lang.String changelist)
path
- the file system path of itemurl
- the url of the itemnodeKind
- kind of item (directory, file or unknownrevision
- the revision number of the baselastChangedRevision
- the last revision this item was changedlastChangedDate
- the last date this item was changedlastCommitAuthor
- the author of the last changetextStatus
- the file or directory status (See
StatusKind)propStatus
- the property status (See StatusKind)repositoryTextStatus
- the file or directory status of the baserepositoryPropStatus
- the property status of the baselocked
- if the item is locked (running or aborted
operation)copied
- if the item is copytreeConflicted
- if the item is part of a tree conflictconflictDescriptor
- the description of the tree conflictconflictOld
- in case of conflict, the file name of the
the common base versionconflictNew
- in case of conflict, the file name of new
repository versionconflictWorking
- in case of conflict, the file name of the
former working copy versionurlCopiedFrom
- if copied, the url of the copy sourcerevisionCopiedFrom
- if copied, the revision number of the copy
sourceswitched
- flag if the node has been switched in the
pathfileExternal
- flag if the node is a file externallockToken
- the token for the current lock if anylockOwner
- the owner of the current lock is anylockComment
- the comment of the current lock if anylockCreationDate
- the date, the lock was created if anyreposLock
- the lock as stored in the repository if
anyreposLastCmtRevision
- the youngest revision, if out of datereposLastCmtDate
- the last commit date, if out of datereposKind
- the kind of the youngest revision, if
out of datereposLastCmtAuthor
- the author of the last commit, if out of
datechangelist
- the changelist the item is a member ofpublic Status(java.lang.String path)
private void populateFromInfo(SVNClient aClient, java.lang.String path) throws ClientException
ClientException
void populateLocalLock(Lock aLock)
public java.lang.String getPath()
public Revision.Number getRevision()
public long getRevisionNumber()
public java.util.Date getLastChangedDate()
public long getLastChangedDateMicros()
public java.lang.String getLastCommitAuthor()
public int getTextStatus()
public java.lang.String getTextStatusDescription()
public int getPropStatus()
public java.lang.String getPropStatusDescription()
public int getRepositoryTextStatus()
public int getRepositoryPropStatus()
public boolean isLocked()
public boolean isCopied()
public java.lang.String getConflictNew()
public java.lang.String getConflictOld()
public java.lang.String getConflictWorking()
public java.lang.String getUrl()
null
if the item
exists in neither the repository nor the WC.public Revision.Number getLastChangedRevision()
public long getLastChangedRevisionNumber()
public int getNodeKind()
public java.lang.String getUrlCopiedFrom()
public Revision.Number getRevisionCopiedFrom()
public long getRevisionCopiedFromNumber()
public boolean isSwitched()
public boolean isFileExternal()
public boolean isManaged()
public boolean hasRemote()
public boolean isAdded()
public boolean isDeleted()
public boolean isMerged()
public boolean isIgnored()
public boolean isModified()
public java.lang.String getLockToken()
public java.lang.String getLockOwner()
public java.lang.String getLockComment()
public java.util.Date getLockCreationDate()
public long getLockCreationDateMicros()
public Lock getReposLock()
public Revision.Number getReposLastCmtRevision()
Revision.SVN_INVALID_REVNUM
if up to date.public long getReposLastCmtRevisionNumber()
-1
if up to date.public java.util.Date getReposLastCmtDate()
null
if up to
date.public long getReposLastCmtDateMicros()
public int getReposKind()
null
if up to date.public java.lang.String getReposLastCmtAuthor()
null
if
up to date.public java.lang.String getChangelist()
public boolean hasTreeConflict()
public ConflictDescriptor getConflictDescriptor()
private static java.util.Date microsecondsToDate(long micros)
micros
- Microseconds since the epoch.null
if
micros
was zero.private static int fromAStatusKind(Status.Kind aKind)