public class ClientDelegator extends BaseDelegator implements IClientDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
ClientDelegator(IOptionsServer server) |
| Modifier and Type | Method and Description |
|---|---|
String |
createClient(IClient newClient) |
String |
deleteClient(String clientName,
boolean force) |
String |
deleteClient(String clientName,
DeleteClientOptions opts)
Delete a Perforce client from a Perforce server.
|
IClient |
getClient(IClientSummary clientSummary) |
IClient |
getClient(String clientName) |
IClient |
getClientTemplate(String clientName) |
IClient |
getClientTemplate(String clientName,
boolean allowExistent) |
IClient |
getClientTemplate(String clientName,
GetClientTemplateOptions getClientTemplateOptions)
Get a template of a non-existent named Perforce client.
|
String |
switchClientView(String templateClientName,
String targetClientName,
SwitchClientViewOptions opts)
Switch the target client spec's view without invoking the editor.
|
String |
switchStreamView(String streamPath,
String targetClientName,
SwitchClientViewOptions opts)
Switch the target client spec's view without invoking the editor.
|
String |
updateClient(IClient client) |
String |
updateClient(IClient client,
boolean force)
Update an existing Perforce client on the current Perforce server.
|
String |
updateClient(IClient client,
UpdateClientOptions opts)
Update an existing Perforce client on the current Perforce server.
|
public ClientDelegator(IOptionsServer server)
public IClient getClient(String clientName) throws ConnectionException, RequestException, AccessException
getClient in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic IClient getClient(@Nonnull IClientSummary clientSummary) throws ConnectionException, RequestException, AccessException
getClient in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic IClient getClientTemplate(String clientName) throws ConnectionException, RequestException, AccessException
getClientTemplate in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic IClient getClientTemplate(String clientName, boolean allowExistent) throws ConnectionException, RequestException, AccessException
getClientTemplate in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic IClient getClientTemplate(@Nonnull String clientName, GetClientTemplateOptions getClientTemplateOptions) throws P4JavaException
getClientTemplate in interface IClientDelegatorclientName - Not blank Perforce client name.getClientTemplateOptions - GetClientTemplateOptions object describing optional
parameters; if null, no options are set.P4JavaException - if any error occurs in the processing of this method.public String createClient(@Nonnull IClient newClient) throws ConnectionException, RequestException, AccessException
createClient in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic String updateClient(@Nonnull IClient client) throws ConnectionException, RequestException, AccessException
updateClient in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic String updateClient(@Nonnull IClient client, boolean force) throws ConnectionException, RequestException, AccessException
updateClient in interface IClientDelegatorclient - non-null IClient defining the Perforce client to be updatedforce - if true, tell the server to attempt to force the update regardless of the
consequences. You're on your own with this one...RequestException - if any error occurs in the processing of this method.ConnectionExceptionAccessExceptionpublic String updateClient(@Nonnull IClient client, UpdateClientOptions opts) throws P4JavaException
updateClient in interface IClientDelegatorclient - non-null IClient defining the Perforce client to be updatedopts - UpdateClientOptions object describing optional parameters; if null, no options
are set.P4JavaException - if any error occurs in the processing of this method.public String deleteClient(String clientName, boolean force) throws ConnectionException, RequestException, AccessException
deleteClient in interface IClientDelegatorConnectionExceptionRequestExceptionAccessExceptionpublic String deleteClient(String clientName, DeleteClientOptions opts) throws P4JavaException
deleteClient in interface IClientDelegatorclientName - non-null name of the client to be deleted from the server.opts - DeleteClientOptions object describing optional parameters; if null, no
options are set.P4JavaException - if any error occurs in the processing of this method.public String switchClientView(String templateClientName, String targetClientName, SwitchClientViewOptions opts) throws P4JavaException
switchClientView in interface IClientDelegatortemplateClientName - non-null name of the template client who's view will be used for
the target (or current) client to switched to.targetClientName - possibly-null name of the target client whose view will be changed
to the template client's view. If null, the current client will be
used.opts - SwitchClientViewOptions object describing optional parameters; if
null, no options are set.P4JavaException - if any error occurs in the processing of this method.public String switchStreamView(String streamPath, String targetClientName, SwitchClientViewOptions opts) throws P4JavaException
switchStreamView in interface IClientDelegatorstreamPath - non-null stream's path in a stream depot, of the form
//depotname/streamname who's view will be used for the target (or
current) client to switched to.targetClientName - possibly-null name of the target client whose view will be changed to
the stream's view. If null, the current client will be used.opts - SwitchClientViewOptions object describing optional parameters; if
null, no options are set.P4JavaException - if any error occurs in the processing of this method.Copyright © 2017 Perforce Software. All Rights Reserved.