Class DepotDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.DepotDelegator
- All Implemented Interfaces:
IDepotDelegator
DepotDelegator implementation.
-
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateDepot(IDepot newDepot) Create a new depot in the repository.deleteDepot(String name) Delete a named depot from the repository.Get an individual depot by name.
-
Constructor Details
-
DepotDelegator
Instantiates a new depot delegator.- Parameters:
server- the server
-
-
Method Details
-
createDepot
Description copied from interface:IDepotDelegatorCreate a new depot in the repository. You must be an admin for this operation to succeed.- Specified by:
createDepotin interfaceIDepotDelegator- Parameters:
newDepot- non-null IDepot object representing the depot to be created.- Returns:
- possibly-null operation result message string from the Perforce server.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-
deleteDepot
Description copied from interface:IDepotDelegatorDelete a named depot from the repository. You must be an admin for this operation to succeed.- Specified by:
deleteDepotin interfaceIDepotDelegator- Parameters:
name- non-null IDepot object representing the depot to be deleted- Returns:
- possibly-null operation result message string from the Perforce server.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-
getDepot
Description copied from interface:IDepotDelegatorGet an individual depot by name. Note that this method will return a fake depot if you ask it for a non-existent depot, so it's not the most useful of operations.- Specified by:
getDepotin interfaceIDepotDelegator- Parameters:
name- non-null name of the depot to be retrieved.- Returns:
- IDepot non-null object corresponding to the named depot if it exists and is retrievable; otherwise an IDepot object that looks real but does not, in fact, correspond to any known depot in the repository.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-