public class DepotDelegator extends BaseDelegator implements IDepotDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION
Constructor and Description |
---|
DepotDelegator(IOptionsServer server)
Instantiates a new depot delegator.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
createDepot(IDepot newDepot)
Create a new depot in the repository.
|
java.lang.String |
deleteDepot(java.lang.String name)
Delete a named depot from the repository.
|
IDepot |
getDepot(java.lang.String name)
Get an individual depot by name.
|
public DepotDelegator(IOptionsServer server)
server
- the serverpublic java.lang.String createDepot(@Nonnull IDepot newDepot) throws P4JavaException
IDepotDelegator
createDepot
in interface IDepotDelegator
newDepot
- non-null IDepot object representing the depot to be created.P4JavaException
- if any error occurs in the processing of this method.public java.lang.String deleteDepot(java.lang.String name) throws P4JavaException
IDepotDelegator
deleteDepot
in interface IDepotDelegator
name
- non-null IDepot object representing the depot to be deletedP4JavaException
- if any error occurs in the processing of this method.public IDepot getDepot(java.lang.String name) throws P4JavaException
IDepotDelegator
getDepot
in interface IDepotDelegator
name
- non-null name of the depot to be retrieved.P4JavaException
- if any error occurs in the processing of this method.