|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.wc.SVNBasicClient
org.tmatesoft.svn.core.wc.SVNStatusClient
The SVNStatusClient class provides methods for obtaining information on the
status of Working Copy items.
The functionality of SVNStatusClient corresponds to the 'svn status'
command
of the native SVN command line client.
One of the main advantages of SVNStatusClient lies in that fact that for each processed item the status information is collected and put into an SVNStatus object. Further there are two ways how this object can be passed to a developer (depending on the version of the doStatus() method that was invoked):
ISVNStatusHandler
,
SVNStatus
,
ExamplesNested Class Summary |
Nested classes inherited from class org.tmatesoft.svn.core.wc.SVNBasicClient |
SVNBasicClient.RepositoryReference, SVNBasicClient.SVNRepositoryLocation |
Field Summary |
Fields inherited from interface org.tmatesoft.svn.core.wc.ISVNEventHandler |
UNKNOWN |
Fields inherited from interface org.tmatesoft.svn.core.ISVNCanceller |
NULL |
Constructor Summary | |
SVNStatusClient(ISVNAuthenticationManager authManager,
ISVNOptions options)
Constructs and initializes an SVNStatusClient object with the specified run-time configuration and authentication drivers. |
|
SVNStatusClient(ISVNRepositoryPool repositoryPool,
ISVNOptions options)
|
Method Summary | |
SVNStatus |
doStatus(File path,
boolean remote)
Collects status information on a single Working Copy item. |
SVNStatus |
doStatus(File path,
boolean remote,
boolean collectParentExternals)
Collects status information on a single Working Copy item. |
long |
doStatus(File path,
boolean recursive,
boolean remote,
boolean reportAll,
boolean includeIgnored,
boolean collectParentExternals,
ISVNStatusHandler handler)
Collects status information on Working Copy items and passes it to a handler .
|
long |
doStatus(File path,
boolean recursive,
boolean remote,
boolean reportAll,
boolean includeIgnored,
ISVNStatusHandler handler)
Collects status information on Working Copy items and passes it to a handler . |
long |
doStatus(File path,
SVNRevision revision,
boolean recursive,
boolean remote,
boolean reportAll,
boolean includeIgnored,
boolean collectParentExternals,
ISVNStatusHandler handler)
Collects status information on Working Copy items and passes it to a handler . |
Methods inherited from class org.tmatesoft.svn.core.wc.SVNBasicClient |
checkCancelled, createRepository, createRepository, createRepository, createWCAccess, createWCAccess, dispatchEvent, dispatchEvent, getDebugLog, getEventDispatcher, getLocations, getOptions, getRepositoryPool, getRevisionNumber, getURL, handleEvent, isIgnoreExternals, isLeaveConflictsUnresolved, setDebugLog, setEventHandler, setEventPathPrefix, setIgnoreExternals, setLeaveConflictsUnresolved, sleepForTimeStamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SVNStatusClient(ISVNAuthenticationManager authManager, ISVNOptions options)
If options
is null,
then this SVNStatusClient will be using a default run-time
configuration driver which takes client-side settings from the
default SVN's run-time configuration area but is not able to
change those settings (read more on ISVNOptions
and SVNWCUtil
).
If authManager
is null,
then this SVNStatusClient will be using a default authentication
and network layers driver (see SVNWCUtil.createDefaultAuthenticationManager()
)
which uses server-side settings and auth storage from the
default SVN's run-time configuration area (or system properties
if that area is not found).
authManager
- an authentication and network layers driveroptions
- a run-time configuration options driverpublic SVNStatusClient(ISVNRepositoryPool repositoryPool, ISVNOptions options)
Method Detail |
public long doStatus(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, ISVNStatusHandler handler) throws SVNException
handler
.
path
- local item's pathrecursive
- relevant only if path
denotes a directory:
true to obtain status info recursively for all
child entries, false only for items located immediately
in the directory itselfremote
- true to check up the status of the item in the repository,
that will tell if the local item is out-of-date (like '-u' option in the
SVN client's 'svn status'
command), otherwise
falsereportAll
- true to collect status information on those items that are in a
'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information
on items that were set to be ignored (like '--no-ignore' option in the SVN
client's 'svn status' command to disregard default and 'svn:ignore' property
ignores), otherwise falsehandler
- a caller's status handler that will be involved
in processing status information
SVNException
ISVNStatusHandler
public long doStatus(File path, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) throws SVNException
handler
.
Calling this method is equivalent to
doStatus(path, SVNRevision.HEAD, recursive, remote, reportAll, includeIgnored, collectParentExternals, handler)
.
path
- local item's pathrecursive
- relevant only if path
denotes a directory:
true to obtain status info recursively for all
child entries, false only for items located
immediately in the directory itselfremote
- true to check up the status of the item in the repository,
that will tell if the local item is out-of-date (like '-u' option in the
SVN client's 'svn status'
command),
otherwise falsereportAll
- true to collect status information on all items including those ones that are in a
'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information
on items that were set to be ignored (like '--no-ignore' option in the SVN
client's 'svn status'
command to disregard default and 'svn:ignore' property
ignores), otherwise falsecollectParentExternals
- false to make the operation ignore information
on externals definitions (like '--ignore-externals' option in the SVN
client's 'svn status'
command), otherwise truehandler
- a caller's status handler that will be involved
in processing status information
SVNException
public long doStatus(File path, SVNRevision revision, boolean recursive, boolean remote, boolean reportAll, boolean includeIgnored, boolean collectParentExternals, ISVNStatusHandler handler) throws SVNException
handler
.
path
- local item's pathrevision
- if remote
is true
this revision is used to calculate status againstrecursive
- relevant only if path
denotes a directory:
true to obtain status info recursively for all
child entries, false only for items located
immediately in the directory itselfremote
- true to check up the status of the item in the repository,
that will tell if the local item is out-of-date (like '-u' option in the
SVN client's 'svn status'
command),
otherwise falsereportAll
- true to collect status information on all items including those ones that are in a
'normal' state (unchanged), otherwise falseincludeIgnored
- true to force the operation to collect information
on items that were set to be ignored (like '--no-ignore' option in the SVN
client's 'svn status'
command to disregard default and 'svn:ignore' property
ignores), otherwise falsecollectParentExternals
- false to make the operation ignore information
on externals definitions (like '--ignore-externals' option in the SVN
client's 'svn status'
command), otherwise truehandler
- a caller's status handler that will be involved
in processing status information
SVNException
public SVNStatus doStatus(File path, boolean remote) throws SVNException
path
- local item's pathremote
- true to check up the status of the item in the repository,
that will tell if the local item is out-of-date (like '-u' option in the
SVN client's 'svn status'
command),
otherwise false
SVNException
public SVNStatus doStatus(File path, boolean remote, boolean collectParentExternals) throws SVNException
path
- local item's pathremote
- true to check up the status of the item in the repository,
that will tell if the local item is out-of-date (like '-u' option in the
SVN client's 'svn status'
command),
otherwise falsecollectParentExternals
- false to make the operation ignore information
on externals definitions (like '--ignore-externals' option in the SVN
client's 'svn status'
command), otherwise false
SVNException
|
SVNKit Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |