Class SpecDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.SpecDelegator
- All Implemented Interfaces:
ISpecDelegator
-
Field Summary
Fields inherited from class com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
MAX_LIMIT_SUPPORTED_MIN_VERSION, QUERY_EXPRESSIONS_SUPPORTED_MIN_VERSION, USER_RESTRICTIONS_SUPPORTED_MIN_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSpec(CustomSpec type) Return the Perforce spec associated with this Perforce server.updateSpec(CustomSpec type, Map<String, Object> spec) Update a Perforce spec on the Perforce server.updateSpecString(CustomSpec type, String spec) Update a Perforce spec on the Perforce server.
-
Constructor Details
-
SpecDelegator
Instantiates a new job spec delegator.- Parameters:
server- the server
-
-
Method Details
-
getSpec
public Map<String,Object> getSpec(CustomSpec type) throws AccessException, RequestException, ConnectionException Description copied from interface:ISpecDelegatorReturn the Perforce spec associated with this Perforce server.- Specified by:
getSpecin interfaceISpecDelegator- Parameters:
type- spec type, ('job' or 'stream') to be updated.- Returns:
- possibly-null map representing the underlying Perforce server's spec.
- Throws:
AccessExceptionRequestExceptionConnectionException
-
updateSpec
Description copied from interface:ISpecDelegatorUpdate a Perforce spec on the Perforce server.- Specified by:
updateSpecin interfaceISpecDelegator- Parameters:
type- spec type, ('job' or 'stream') to be updated.spec- updated spec as a map.- Returns:
- non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-
updateSpecString
Description copied from interface:ISpecDelegatorUpdate a Perforce spec on the Perforce server.- Specified by:
updateSpecStringin interfaceISpecDelegator- Parameters:
type- spec type, ('job' or 'stream') to be updated.spec- updated spec as a map.- Returns:
- non-null result message string from the Perforce server; this may include form trigger output pre-pended and / or appended to the "normal" message.
- Throws:
P4JavaException- if any error occurs in the processing of this method.
-