Class InterchangesDelegator
java.lang.Object
com.perforce.p4java.impl.mapbased.server.cmd.BaseDelegator
com.perforce.p4java.impl.mapbased.server.cmd.InterchangesDelegator
- All Implemented Interfaces:
IInterchangesDelegator
- Since:
- 20/09/2016
-
Nested Class Summary
Nested Classes -
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
ConstructorsConstructorDescriptionInterchangesDelegator(IOptionsServer server) Build a new InterchangesDelegator object and keep the server object for using in the command processing. -
Method Summary
Modifier and TypeMethodDescriptiongetInterchanges(IFileSpec fromFile, IFileSpec toFile, boolean showFiles, boolean longDesc, int maxChangelistId) getInterchanges(IFileSpec fromFile, IFileSpec toFile, GetInterchangesOptions opts) Returns a list of changelists that have not been integrated from a set of source files to a set of target files.getInterchanges(String branchSpecName, List<IFileSpec> fromFileList, List<IFileSpec> toFileList, boolean showFiles, boolean longDesc, int maxChangelistId, boolean reverseMapping, boolean biDirectional) getInterchanges(String branchSpecName, List<IFileSpec> fromFileList, List<IFileSpec> toFileList, GetInterchangesOptions opts) Returns a list of changelists that have not been integrated from a set of source files to a set of target files.processInterchangeMaps(List<Map<String, Object>> resultMaps, boolean showFiles)
-
Constructor Details
-
InterchangesDelegator
Build a new InterchangesDelegator object and keep the server object for using in the command processing. Note that this also delegates legacy Iserver commands until they can be effectively withdrawn- Parameters:
server- - the currently effective server implementation
-
-
Method Details
-
getInterchanges
public List<IChangelist> getInterchanges(IFileSpec fromFile, IFileSpec toFile, GetInterchangesOptions opts) throws P4JavaException Description copied from interface:IInterchangesDelegatorReturns a list of changelists that have not been integrated from a set of source files to a set of target files.- Specified by:
getInterchangesin interfaceIInterchangesDelegator- Parameters:
fromFile- if non-null, use this as the from-file specification.toFile- if non-null, use this as the to-file specification.opts- GetInterchangesOptions object describing optional parameters; if null, no options are set.- Returns:
- non-null (but possibly empty) list of qualifying changelists. Note that the changelists returned here may not have all fields set (only description, ID, date, user, and client are known to be properly set by the server for this command)
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-
getInterchanges
public List<IChangelist> getInterchanges(String branchSpecName, List<IFileSpec> fromFileList, List<IFileSpec> toFileList, GetInterchangesOptions opts) throws P4JavaException Description copied from interface:IInterchangesDelegatorReturns a list of changelists that have not been integrated from a set of source files to a set of target files.Note that depending on the specific options passed-in the fromFileList can be null or one file spec; the toFileList can be null, one or more file specs. The full semantics of this operation are found in the main 'p4 help interchanges' documentation.
- Specified by:
getInterchangesin interfaceIInterchangesDelegator- Parameters:
branchSpecName- if non-null and not empty, use this as the branch spec name.fromFileList- if non-null and not empty, and biDirectional is true, use this as the from file list.toFileList- if non-null and not empty, use this as the to file list.opts- GetInterchangesOptions object describing optional parameters; if null, no options are set.- Returns:
- non-null (but possibly empty) list of qualifying changelists. Note that the changelists returned here may not have all fields set (only description, ID, date, user, and client are known to be properly set by the server for this command)
- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-
getInterchanges
public List<IChangelist> getInterchanges(IFileSpec fromFile, IFileSpec toFile, boolean showFiles, boolean longDesc, int maxChangelistId) throws ConnectionException, RequestException, AccessException -
getInterchanges
public List<IChangelist> getInterchanges(String branchSpecName, List<IFileSpec> fromFileList, List<IFileSpec> toFileList, boolean showFiles, boolean longDesc, int maxChangelistId, boolean reverseMapping, boolean biDirectional) throws ConnectionException, RequestException, AccessException -
processInterchangeMaps
public List<IChangelist> processInterchangeMaps(List<Map<String, Object>> resultMaps, boolean showFiles) throws ConnectionException, AccessException, RequestException
-