Class RenameClientDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.RenameClientDelegator
- All Implemented Interfaces:
IRenameClientDelegator
Implementation to handle the RenameClient command.
-
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
ConstructorsConstructorDescriptionRenameClientDelegator(IOptionsServer server) Instantiate a new RenameClientDelegator, providing the server object that will be used to execute Perforce Helix attribute commands. -
Method Summary
Modifier and TypeMethodDescriptionrenameClient(String oldClientName, String newClientName) Completely renames a client, modifying all database records which mention the client.
-
Constructor Details
-
RenameClientDelegator
Instantiate a new RenameClientDelegator, providing the server object that will be used to execute Perforce Helix attribute commands.- Parameters:
server- a concrete implementation of a Perforce Helix Server
-
-
Method Details
-
renameClient
Description copied from interface:IRenameClientDelegatorCompletely renames a client, modifying all database records which mention the client.This includes all workspaces, labels, branches, streams, etc. which are owned by the client, all pending, shelved, and committed changes created by the client, any files that the client has opened or shelved, any fixes that the client made to jobs, any properties that apply to the client, any groups that the client is in, and the client record itself.
Protection table entries that apply to the client are updated only if the Name: field exactly matches the client name; if the Name: field contains wildcards, it is not modified.
The full semantics of this operation are found in the main 'p4 help' documentation.
This method requires 'super' access granted by 'p4 protect'.
- Specified by:
renameClientin interfaceIRenameClientDelegator- Parameters:
oldClientName- the old client name to be changed.newClientName- the new client name to be changed to.- Returns:
- non-null result message string from the reload operation.
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-