public interface P4Client extends P4Connection, P4Errors
ACCESS_ERROR_MESSAGES, CORE_AUTH_FAIL_STRING_1, CORE_AUTH_FAIL_STRING_2, CORE_AUTH_FAIL_STRING_3, CORE_AUTH_FAIL_STRING_4, CORE_AUTH_FAIL_STRING_5, E_EMPTY, E_FAILED, E_FATAL, E_INFO, E_WARN
Modifier and Type | Method and Description |
---|---|
static P4Client |
create(P4Connection conn) |
default void |
delete(java.lang.String clientName)
Calls "p4 client -d"
This executes as the current user, so there is no "force" option, which
means the user must also have privileges to delete the client.
|
default void |
forceDelete(java.lang.String clientName)
Calls "p4 client -d -f [clientName]"
This should probably be run as a superuser, which is likely to happen
during server initialization.
|
default ClientSpec |
load(java.lang.String clientName)
Calls "p4 client -o", returning our ClientSpec wrapper around the output.
|
default void |
save(ClientSpec clientSpec)
Calls "p4 client -i" after generating a simple spec format using the
ClientSpec object.
|
close, connectAs, create, create, disconnect, getLogin, getOptionsServer, getServerLocation, getServerProperties, setLogin
checkError, checkError, getServerMessage, isAuthFail, isNotSeriousErrorButNeedReport
static P4Client create(P4Connection conn)
default ClientSpec load(java.lang.String clientName)
default void save(ClientSpec clientSpec)
clientSpec
- ClientSpec created via loaddefault void delete(java.lang.String clientName)
clientName
- Client name to usedefault void forceDelete(java.lang.String clientName)
clientName
-