public class KeyDelegator extends BaseDelegator implements IKeyDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
KeyDelegator(IOptionsServer server)
Instantiate a new KeyDelegator, providing the server object that will be used to
execute Perforce Helix attribute commands.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
deleteKey(java.lang.String keyName)
Delete a key on a Perforce server.
|
java.lang.String |
getKey(java.lang.String keyName)
Get the value of a named Perforce key from the Perforce server.
|
java.lang.String |
setKey(java.lang.String keyName,
java.lang.String value,
KeyOptions opts)
Create, set or delete a key on a Perforce server.
|
public KeyDelegator(IOptionsServer server)
server - a concrete implementation of a Perforce Helix Serverpublic java.lang.String deleteKey(java.lang.String keyName)
throws P4JavaException
IKeyDelegatordeleteKey in interface IKeyDelegatorkeyName - non-null key name.P4JavaException - if an error occurs processing this method and its parameters.public java.lang.String setKey(java.lang.String keyName,
java.lang.String value,
KeyOptions opts)
throws P4JavaException
IKeyDelegatorsetKey in interface IKeyDelegatorkeyName - non-null key name.value - value the key should be set to; can be null if the set
operation is an increment.opts - KeyOptions object describing optional parameters; if null, no
options are set.P4JavaException - if an error occurs processing this method and its parameters.public java.lang.String getKey(java.lang.String keyName)
throws P4JavaException
IKeyDelegatorgetKey in interface IKeyDelegatorkeyName - non-null key name.P4JavaException - if an error occurs processing this method and its parameters.Copyright © 2021 Perforce Software. All Rights Reserved.