Class Status
java.lang.Object
org.apache.subversion.javahl.types.Status
- All Implemented Interfaces:
Serializable
public class Status extends Object implements Serializable
Subversion status API.
This describes the status of one subversion item (file or directory) in
the working copy. Will be returned by SVNClient.status or
SVNClient.singleStatus
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 -
Constructor Summary
Constructors Constructor Description Status(String path, String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, String lastCommitAuthor, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, String reposLastCmtAuthor, String changelist, String movedFromAbspath, String movedToAbspath)
Deprecated.Status(String path, String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, String lastCommitAuthor, Status.Kind nodeStatus, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryNodeStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, Depth depth, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, String reposLastCmtAuthor, String changelist, String movedFromAbspath, String movedToAbspath)
this constructor should only called from JNI code -
Method Summary
Modifier and Type Method Description String
getChangelist()
Depth
getDepth()
Returns the inherent depth of the node, as recorded in the working copy.Date
getLastChangedDate()
Returns the last date the item was changed or nulllong
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 objectlong
getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integerString
getLastCommitAuthor()
Returns the author of the last changed or nullLock
getLocalLock()
Returns the local lockString
getMovedFromAbspath()
String
getMovedToAbspath()
NodeKind
getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)Status.Kind
getNodeStatus()
Returns the status of the node.String
getNodeStatusDescription()
Returns the status of the node as text.String
getPath()
Returns the file system path of the itemStatus.Kind
getPropStatus()
Returns the status of the properties.String
getPropStatusDescription()
Returns the status of the properties as textStatus.Kind
getRawRepositoryTextStatus()
Returns the real status of the item's contents in the repository.Status.Kind
getRawTextStatus()
Returns the real status of the item's contents.String
getRawTextStatusDescription()
Returns the real status of the item's contents as a string.Status.Kind
getRepositoryNodeStatus()
Returns the status of the node in the repository.Status.Kind
getRepositoryPropStatus()
Returns test status of the properties in the repository.Status.Kind
getRepositoryTextStatus()
Returns the adjusted status of the item's contents in the repository, as compatible with JavaHL 1.8 and older verions.NodeKind
getReposKind()
String
getReposLastCmtAuthor()
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 repositoryRevision.Number
getRevision()
Returns the revision as a Revision objectlong
getRevisionNumber()
Returns the revision as a long integerStatus.Kind
getTextStatus()
Returns the adjusted status of the item's contents, as compatible with JavaHL 1.8 and older verions.String
getTextStatusDescription()
Returns the adjusted status of the item's contents as text.String
getUrl()
Returns the URI to where the item might exist in the repository.boolean
hasRemote()
Returns if the resource has a remote counter-partboolean
isAdded()
Returns if the resource just has been addedboolean
isConflicted()
boolean
isCopied()
Returns if the item has been copiedboolean
isDeleted()
Returns if the resource is schedules for deleteboolean
isFileExternal()
Returns if the item is a file externalboolean
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 mergedboolean
isModified()
Returns if the resource itself is modifiedboolean
isSwitched()
Returns if the repository url has been switched
-
Constructor Details
-
Status
public Status(String path, String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, String lastCommitAuthor, Status.Kind nodeStatus, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryNodeStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, Depth depth, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, String reposLastCmtAuthor, String changelist, String movedFromAbspath, String movedToAbspath)this constructor should only called from JNI code- Parameters:
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 changenodeStatus
- the status of the nodetextStatus
- the file or directory contents statuspropStatus
- the property statusrepositoryNodeStatus
- the status of the base noderepositoryTextStatus
- the file or directory contents status of the baserepositoryPropStatus
- the property status of the baselocked
- if the item is locked (running or aborted operation)copied
- if the item is copydepth
- the inherent depth of the node in the working copyisConflicted
- if the item is part of a conflictswitched
- flag if the node has been switched in the pathfileExternal
- flag if the node is a file externallocalLock
- the current lockreposLock
- 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 ofmovedFromAbspath
- path moved frommovedToAbspath
- path moved from- Since:
- 1.9
-
Status
@Deprecated public Status(String path, String url, NodeKind nodeKind, long revision, long lastChangedRevision, long lastChangedDate, String lastCommitAuthor, Status.Kind textStatus, Status.Kind propStatus, Status.Kind repositoryTextStatus, Status.Kind repositoryPropStatus, boolean locked, boolean copied, boolean isConflicted, boolean switched, boolean fileExternal, Lock localLock, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, NodeKind reposKind, String reposLastCmtAuthor, String changelist, String movedFromAbspath, String movedToAbspath)Deprecated.this constructor should only called from JNI code- Parameters:
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 copyisConflicted
- if the item is part of a conflictswitched
- flag if the node has been switched in the pathfileExternal
- flag if the node is a file externallocalLock
- the current lockreposLock
- 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 ofmovedFromAbspath
- path moved frommovedToAbspath
- path moved from
-
-
Method Details
-
getPath
Returns the file system path of the item- Returns:
- path of status entry
-
getRevision
Returns the revision as a Revision object- Returns:
- revision if versioned, otherwise SVN_INVALID_REVNUM
-
getRevisionNumber
public long getRevisionNumber()Returns the revision as a long integer- Returns:
- revision if versioned, otherwise SVN_INVALID_REVNUM
-
getLastChangedDate
Returns the last date the item was changed or null- Returns:
- the last time the item was changed or null if not available
-
getLastChangedDateMicros
public long getLastChangedDateMicros()Returns the last date the item was changed measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the last time the item was changed.
-
getLastCommitAuthor
Returns the author of the last changed or null- Returns:
- name of author if versioned, null otherwise
-
getNodeStatus
Returns the status of the node.- Since:
- 1.9
-
getNodeStatusDescription
Returns the status of the node as text.- Since:
- 1.9
-
getRawTextStatus
Returns the real status of the item's contents.- Since:
- 1.9
-
getRawTextStatusDescription
Returns the real status of the item's contents as a string.- Since:
- 1.9
-
getTextStatus
Returns the adjusted status of the item's contents, as compatible with JavaHL 1.8 and older verions.- Returns:
- file status property enum of the "textual" component.
-
getTextStatusDescription
Returns the adjusted status of the item's contents as text.- Returns:
- english text
-
getPropStatus
Returns the status of the properties.- Returns:
- file status property enum of the "property" component.
-
getPropStatusDescription
Returns the status of the properties as text- Returns:
- english text
-
getRepositoryNodeStatus
Returns the status of the node in the repository.- Since:
- 1.9
-
getRawRepositoryTextStatus
Returns the real status of the item's contents in the repository.- Since:
- 1.9
-
getRepositoryTextStatus
Returns the adjusted status of the item's contents in the repository, as compatible with JavaHL 1.8 and older verions.- Returns:
- file status property enum of the "textual" component in the repository.
-
getRepositoryPropStatus
Returns test status of the properties in the repository.- Returns:
- file status property enum of the "property" component im the repository.
-
isLocked
public boolean isLocked()Returns if the item is locked (running or aborted subversion operation)- Returns:
- true if locked
-
isCopied
public boolean isCopied()Returns if the item has been copied- Returns:
- true if copied
-
getUrl
Returns the URI to where the item might exist in the repository. We say "might" because the item might exist in your working copy, but have been deleted from the repository. Or it might exist in the repository, but your working copy might not yet contain it (because the WC is not up to date).- Returns:
- URI in repository, or
null
if the item exists in neither the repository nor the WC.
-
getLastChangedRevision
Returns the last revision the file was changed as a Revision object- Returns:
- last changed revision
-
getLastChangedRevisionNumber
public long getLastChangedRevisionNumber()Returns the last revision the file was changed as a long integer- Returns:
- last changed revision
-
getNodeKind
Returns the kind of the node (file, directory or unknown, see NodeKind)- Returns:
- the node kind
-
isSwitched
public boolean isSwitched()Returns if the repository url has been switched- Returns:
- is the item has been switched
-
isFileExternal
public boolean isFileExternal()Returns if the item is a file external- Returns:
- is the item is a file external
-
isManaged
public boolean isManaged()Returns if is managed by svn (added, normal, modified ...)- Returns:
- if managed by svn
-
hasRemote
public boolean hasRemote()Returns if the resource has a remote counter-part- Returns:
- has version in repository
-
isAdded
public boolean isAdded()Returns if the resource just has been added- Returns:
- if added
-
isDeleted
public boolean isDeleted()Returns if the resource is schedules for delete- Returns:
- if deleted
-
isMerged
public boolean isMerged()Returns if the resource has been merged- Returns:
- if merged
-
isIgnored
public boolean isIgnored()Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)- Returns:
- if ignore
-
isModified
public boolean isModified()Returns if the resource itself is modified- Returns:
- if modified
-
getLocalLock
Returns the local lock- Returns:
- the local lock
-
getReposLock
Returns the lock as in the repository- Returns:
- the lock as in the repository
-
getReposLastCmtRevision
- Returns:
- The last committed revision, or
Revision.SVN_INVALID_REVNUM
if up to date.
-
getReposLastCmtRevisionNumber
public long getReposLastCmtRevisionNumber()- Returns:
- The last committed revision as a long integer, or
-1
if up to date.
-
getReposLastCmtDate
- Returns:
- The last committed date, or
null
if up to date.
-
getReposLastCmtDateMicros
public long getReposLastCmtDateMicros()Return the last committed date measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the last committed date
-
getReposKind
- Returns:
- The node kind (e.g. file, directory, etc.), or
null
if up to date.
-
getReposLastCmtAuthor
- Returns:
- The author of the last commit, or
null
if up to date.
-
getChangelist
- Returns:
- the changelist name
-
isConflicted
public boolean isConflicted()- Returns:
- the conflicted state
-
getMovedFromAbspath
-
getMovedToAbspath
-
getDepth
Returns the inherent depth of the node, as recorded in the working copy.- Since:
- 1.9
-