/** * @see com.perforce.p4java.option.Options#processOptions(com.perforce.p4java.server.IServer) */ public List<String> processOptions(IServer server) throws OptionsException { this.optionList = this.processFields(OPTIONS_SPECS, this.includeIntegrated, this.isLongDesc(), this.getClientName(), this.getMaxMostRecent(), (this.getType() == null ? null : this.getType().toString()), this.getUserName(), this.isViewRestricted(), this.isTruncateDescriptions()); return this.optionList; }
GetChangelistsOptions getChangelistsOptions = new GetChangelistsOptions() .setClientName(clientName) .setIncludeIntegrated(includeIntegrated) .setLongDesc(longDesc) .setMaxMostRecent(maxMostRecent) .setType(type) .setUserName(userName);
return new QueryAnswerImpl<>(connectionManager.withConnection(config, (client) -> { GetChangelistsOptions options = new GetChangelistsOptions(); options.setMaxMostRecent(query.getMaxCount()); options.setClientName(query.getClientNameFilter()); options.setUserName(query.getUsernameFilter()); options.setLongDesc(true);
try GetChangelistsOptions getChangelistsOptions = new GetChangelistsOptions(); getChangelistsOptions.setMaxMostRecent( 1 ); getChangelistsOptions.setType( IChangelist.Type.SUBMITTED );
public List<IChangelistSummary> getPendingChangelists(IClient client, int maxChangelistResults) throws P4JavaException { GetChangelistsOptions clOptions = new GetChangelistsOptions( maxChangelistResults, client.getName(), client.getServer().getUserName(), true, IChangelist.Type.PENDING, false ); return client.getServer().getChangelists(null, clOptions); }
GetChangelistsOptions getChangelistsOptions = new GetChangelistsOptions() .setClientName(clientName) .setIncludeIntegrated(includeIntegrated) .setLongDesc(longDesc) .setMaxMostRecent(maxMostRecent) .setType(type) .setUserName(userName);
try GetChangelistsOptions getChangelistsOptions = new GetChangelistsOptions();
/** * @see com.perforce.p4java.option.Options#processOptions(com.perforce.p4java.server.IServer) */ public List<String> processOptions(IServer server) throws OptionsException { this.optionList = this.processFields(OPTIONS_SPECS, this.includeIntegrated, this.isLongDesc(), this.getClientName(), this.getMaxMostRecent(), (this.getType() == null ? null : this.getType().toString()), this.getUserName(), this.isViewRestricted(), this.isTruncateDescriptions()); return this.optionList; }