Package org.tmatesoft.svn.core.wc2
Class SvnList
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNDirEntry>
-
- org.tmatesoft.svn.core.wc2.SvnList
-
- All Implemented Interfaces:
ISvnObjectReceiver<SVNDirEntry>
,ISvnOperationOptionsProvider
public class SvnList extends SvnReceivingOperation<SVNDirEntry>
Represents list operation. Reports the directory entry, and possibly children, fortarget
atrevision
. The actual node revision selected is determined by thetarget
's path as it exists in itspegRevision
. Iftarget
'spegRevision
isinvalid
, then it defaults toSVNRevision.HEAD
. Ifdepth
isSVNDepth.EMPTY
, lists justtarget
itself. Ifdepth
isSVNDepth.FILES
, liststarget
and its file entries. IfSVNDepth.IMMEDIATES
, lists its immediate file and directory entries. IfSVNDepth.INFINITY
, lists file entries and recurses (withSVNDepth.INFINITY
) on directory entries. Note: this routine requires repository access.SvnOperation.run()
method returns an array ofSVNDirEntry
objects. It throwsSVNException
in the following cases:-
exception with
SVNErrorCode.FS_NOT_FOUND
error code - ifurl
is non-existent in the repository- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SvnList(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEntryFields()
Returns entry fields whose controls which fields in theSVNDirEntry
are filled in.protected void
initDefaults()
boolean
isChangesWorkingCopy()
Gets whether the operation changes working copyboolean
isFetchLocks()
Returns whether to fetch locks informationboolean
isIgnoreExternals()
void
setEntryFields(int entryFields)
Sets entry fields whose controls which fields in theSVNDirEntry
are filled in.void
setFetchLocks(boolean isFetchLocks)
Sets whether to fetch locks informationvoid
setIgnoreExternals(boolean ignoreExternals)
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, last, receive, run, setReceiver
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnList
protected SvnList(SvnOperationFactory factory)
-
-
Method Detail
-
getEntryFields
public int getEntryFields()
Returns entry fields whose controls which fields in theSVNDirEntry
are filled in. To have them totally filled in useSVNDirEntry.DIRENT_ALL
, otherwise simply bitwise OR together the combination of fields you care about.- Returns:
- entry fields flags
-
setEntryFields
public void setEntryFields(int entryFields)
Sets entry fields whose controls which fields in theSVNDirEntry
are filled in. To have them totally filled in useSVNDirEntry.DIRENT_ALL
, otherwise simply bitwise OR together the combination of fields you care about.- Parameters:
entryFields
- entry fields flags
-
isFetchLocks
public boolean isFetchLocks()
Returns whether to fetch locks information- Returns:
true
if the lock information should be fetched, otherwisefalse
-
setFetchLocks
public void setFetchLocks(boolean isFetchLocks)
Sets whether to fetch locks information- Parameters:
isFetchLocks
-true
if the lock information should be fetched, otherwisefalse
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SVNDirEntry>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-
isIgnoreExternals
public boolean isIgnoreExternals()
-
setIgnoreExternals
public void setIgnoreExternals(boolean ignoreExternals)
-
initDefaults
protected void initDefaults()
- Overrides:
initDefaults
in classSvnReceivingOperation<SVNDirEntry>
-
-