Question

I am currently trying to write a method using the perforce java API to return all submitted changelists by a specified user. The trouble is I can't seem to find any methods in the API which could help me.

Would I be right in saying that I would have to use something like this?

List<IFileSpec> userFiles = iServer.getDepotFiles(FileSpecBuilder.makeFileSpecList(new String[] {"//...@"+userName}), false);

Any advice would be appreciated !!

Edit

Or would it be something along these lines

Was it helpful?

Solution

This answer seemed to be already answered by you and Bryan Pendleton.

For those looking for a straight answer:

getChangelists() as documented here, is the method to you. To filter the results, provide a GetChangelistsOptions that specifies which values you want to filter on, in this case, userName

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top