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
ISpecDelegator
getSpec
in interface ISpecDelegator
type
- spec type, ('job' or 'stream') to be updated.AccessException
RequestException
ConnectionException
public java.lang.String updateSpec(CustomSpec type, java.util.Map<java.lang.String,java.lang.Object> spec) throws P4JavaException
ISpecDelegator
updateSpec
in interface ISpecDelegator
type
- 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
ISpecDelegator
updateSpecString
in interface ISpecDelegator
type
- 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.