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 |
|---|---|
String |
deleteKey(String keyName)
Delete a key on a Perforce server.
|
String |
getKey(String keyName)
Get the value of a named Perforce key from the Perforce server.
|
String |
setKey(String keyName,
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 String deleteKey(String keyName) throws P4JavaException
IKeyDelegatordeleteKey in interface IKeyDelegatorkeyName - non-null key name.P4JavaException - if an error occurs processing this method and its parameters.public String setKey(String keyName, 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 String getKey(String keyName) throws P4JavaException
IKeyDelegatorgetKey in interface IKeyDelegatorkeyName - non-null key name.P4JavaException - if an error occurs processing this method and its parameters.Copyright © 2017 Perforce Software. All Rights Reserved.