/** * @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.getStream(), this.getChangelistId()); return this.optionList; }
@Override public boolean test(Map<String, Object> map, GetClientTemplateOptions opts) { return isNonExistClientOrLabelOrUser(map) || (nonNull(opts) && opts.isAllowExistent()); } },
/** * {@inheritDoc} */ @Override public IClient getClientTemplate(final String clientName, final boolean allowExistent) throws ConnectionException, RequestException, AccessException { try { return getClientTemplate(clientName, new GetClientTemplateOptions(allowExistent)); } catch (final ConnectionException | AccessException | RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }
@Override public boolean test(Map<String, Object> map, GetClientTemplateOptions opts) { return isNonExistClientOrLabelOrUser(map) || (nonNull(opts) && opts.isAllowExistent()); } },
/** * {@inheritDoc} */ @Override public IClient getClientTemplate(final String clientName, final boolean allowExistent) throws ConnectionException, RequestException, AccessException { try { return getClientTemplate(clientName, new GetClientTemplateOptions(allowExistent)); } catch (final ConnectionException | AccessException | RequestException exc) { throw exc; } catch (P4JavaException exc) { throw new RequestException(exc.getMessage(), exc); } }
/** * @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.getStream(), this.getChangelistId()); return this.optionList; }