Class DepotsDelegator
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
-
- com.perforce.p4java.impl.mapbased.server.cmd.DepotsDelegator
-
- All Implemented Interfaces:
IDepotsDelegator
public class DepotsDelegator extends BaseDelegator implements IDepotsDelegator
Implementation to handle depots commands.
-
-
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 DepotsDelegator(IOptionsServer server)
Instantiates a new depots delegator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<IDepot>
getDepots()
Gets the depots.java.util.List<IDepot>
getDepots(GetDepotsOptions opts)
Gets depots with type and namefilter
-
-
-
Constructor Detail
-
DepotsDelegator
public DepotsDelegator(IOptionsServer server)
Instantiates a new depots delegator.- Parameters:
server
- the server
-
-
Method Detail
-
getDepots
public java.util.List<IDepot> getDepots() throws ConnectionException, RequestException, AccessException
Description copied from interface:IDepotsDelegator
Gets the depots.- Specified by:
getDepots
in interfaceIDepotsDelegator
- Returns:
- the depots
- Throws:
ConnectionException
- the connection exceptionRequestException
- the request exceptionAccessException
- the access exception
-
getDepots
public java.util.List<IDepot> getDepots(GetDepotsOptions opts) throws P4JavaException
Description copied from interface:IDepotsDelegator
Gets depots with type and namefilter- Specified by:
getDepots
in interfaceIDepotsDelegator
- Parameters:
opts
- options- Returns:
- list of depots
- Throws:
P4JavaException
- on error
-
-