Class DirsDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.DirsDelegator
-
- All Implemented Interfaces:
IDirsDelegator
public class DirsDelegator extends BaseDelegator implements IDirsDelegator
Implementation for a delegator to handle 'p4 dirs'.
-
-
Field Summary
-
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
-
-
Constructor Summary
Constructors Constructor Description DirsDelegator(IOptionsServer server)
Instantiates a new dirs delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IFileSpec>
getDirectories(java.util.List<IFileSpec> fileSpecs, boolean clientOnly, boolean deletedOnly, boolean haveListOnly)
List any directories matching the passed-in file specifications and other options.java.util.List<IFileSpec>
getDirectories(java.util.List<IFileSpec> fileSpecs, GetDirectoriesOptions opts)
List any directories matching the passed-in file specifications.
-
-
-
Constructor Detail
-
DirsDelegator
public DirsDelegator(IOptionsServer server)
Instantiates a new dirs delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getDirectories
public java.util.List<IFileSpec> getDirectories(@Nonnull java.util.List<IFileSpec> fileSpecs, boolean clientOnly, boolean deletedOnly, boolean haveListOnly) throws ConnectionException, AccessException
Description copied from interface:IDirsDelegator
List any directories matching the passed-in file specifications and other options.- Specified by:
getDirectories
in interfaceIDirsDelegator
- Parameters:
fileSpecs
- the file specsclientOnly
- the client onlydeletedOnly
- the deleted onlyhaveListOnly
- the have list only- Returns:
- the directories
- Throws:
ConnectionException
- the connection exceptionAccessException
- the access exception
-
getDirectories
public java.util.List<IFileSpec> getDirectories(java.util.List<IFileSpec> fileSpecs, GetDirectoriesOptions opts) throws P4JavaException
Description copied from interface:IDirsDelegator
List any directories matching the passed-in file specifications.- Specified by:
getDirectories
in interfaceIDirsDelegator
- Parameters:
fileSpecs
- non-null list of file specifications.opts
- GetDirectoriesOptions object describing optional parameters; if null, no options are set.- Returns:
- non-null but possibly empty list of qualifying directory file specs; only the getPath() path will be valid.
- Throws:
P4JavaException
- if any error occurs in the processing of this method.
-
-