public class SpecDelegator extends BaseDelegator implements ISpecDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION| Constructor and Description |
|---|
SpecDelegator(IOptionsServer server)
Instantiates a new job spec delegator.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getSpec(CustomSpec type)
Return the Perforce spec associated with this Perforce server.
|
java.lang.String |
updateSpec(CustomSpec type,
java.util.Map<java.lang.String,java.lang.Object> spec)
Update a Perforce spec on the Perforce server.
|
java.lang.String |
updateSpecString(CustomSpec type,
java.lang.String spec)
Update a Perforce spec on the Perforce server.
|
public SpecDelegator(IOptionsServer server)
server - the serverpublic java.util.Map<java.lang.String,java.lang.Object> getSpec(CustomSpec type) throws AccessException, RequestException, ConnectionException
ISpecDelegatorgetSpec in interface ISpecDelegatortype - spec type, ('job' or 'stream') to be updated.AccessExceptionRequestExceptionConnectionExceptionpublic java.lang.String updateSpec(CustomSpec type, java.util.Map<java.lang.String,java.lang.Object> spec) throws P4JavaException
ISpecDelegatorupdateSpec in interface ISpecDelegatortype - spec type, ('job' or 'stream') to be updated.spec - updated spec as a map.P4JavaException - if any error occurs in the processing of this method.public java.lang.String updateSpecString(CustomSpec type, java.lang.String spec) throws P4JavaException
ISpecDelegatorupdateSpecString in interface ISpecDelegatortype - spec type, ('job' or 'stream') to be updated.spec - updated spec as a map.P4JavaException - if any error occurs in the processing of this method.