/** * Builds the server address. * * @return the server address */ public ServerAddress build() { return new ServerAddress(this); }
/** * Constructor for use with maps passed back from the Perforce server only. * * When a broker is involved, there will be more than one map. */ public ServerInfo(List<Map<String, Object>> maps) { for (Map<String, Object> map : maps) { setFromMap(map); } }
@Override public ServerStatus init(final String host, final int port, final Properties props) throws ConfigException, ConnectionException { return init(host, port, props, null); }
/** * @see com.perforce.p4java.client.IClient#resolvedFiles(java.util.List, com.perforce.p4java.option.client.ResolvedFilesOptions) */ @Override public List<IFileSpec> resolvedFiles(List<IFileSpec> fileSpecs, ResolvedFilesOptions opts) throws P4JavaException { List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.RESOLVED, Parameters.processParameters(opts, fileSpecs, serverImpl), null); return getIntegrationFilesFromReturn(resultMaps); }
@Override public void setUserName(String userName) { this.userName = userName; setAuthTicket(getAuthTicket(userName)); }
public String toString() { return RPC_ARGNAME_ENV_PROGRAM + ": " + Server.guardNull(progName) + "; " + RPC_ARGNAME_ENV_VERSION + ": " + Server.guardNull(version) + "; " + RPC_ARGNAME_ENV_CLIENTNAME + ": " + Server.guardNull(client) + "; " + RPC_ARGNAME_ENV_CWD + ": " + Server.guardNull(cwd) + "; " + RPC_ARGNAME_ENV_HOSTNAME + ": " + Server.guardNull(host) + "; " + RPC_ARGNAME_ENV_PORT + ": " + Server.guardNull(port) + "; " + RPC_ARGNAME_ENV_LANGUAGE + ": " + Server.guardNull(language) + "; " + RPC_ARGNAME_ENV_OSNAME + ": " + Server.guardNull(os) + "; " + RPC_ARGNAME_ENV_USERNAME + ": " + Server.guardNull(user); }
public static String[] getPreferredPathArray(final String[] preamble, final List<IFileSpec> specList) { return getPreferredPathArray(preamble, specList, true); }
@Override public String getAuthTicket() { return getAuthTicket(userName); }
/** * @see com.perforce.p4java.client.IClient#resolvedFiles(java.util.List, com.perforce.p4java.option.client.ResolvedFilesOptions) */ @Override public List<IFileSpec> resolvedFiles(List<IFileSpec> fileSpecs, ResolvedFilesOptions opts) throws P4JavaException { List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.RESOLVED, Parameters.processParameters(opts, fileSpecs, serverImpl), null); return getIntegrationFilesFromReturn(resultMaps); }
@Override public void setUserName(String userName) { this.userName = userName; setAuthTicket(getAuthTicket(userName)); }
/** * Constructor for use with maps passed back from the Perforce server only. */ public ServerInfo(Map<String, Object> map) { if (map != null) { setFromMap(map); } }
@Override public ServerStatus init(final String host, final int port, final Properties props, final UsageOptions opts) throws ConfigException, ConnectionException { return init(host, port, props, opts, false); }
/** * Builds the server address. * * @return the server address */ public ServerAddress build() { return new ServerAddress(this); }
public String toString() { return RPC_ARGNAME_ENV_PROGRAM + ": " + Server.guardNull(progName) + "; " + RPC_ARGNAME_ENV_VERSION + ": " + Server.guardNull(version) + "; " + RPC_ARGNAME_ENV_CLIENTNAME + ": " + Server.guardNull(client) + "; " + RPC_ARGNAME_ENV_CWD + ": " + Server.guardNull(cwd) + "; " + RPC_ARGNAME_ENV_HOSTNAME + ": " + Server.guardNull(host) + "; " + RPC_ARGNAME_ENV_PORT + ": " + Server.guardNull(port) + "; " + RPC_ARGNAME_ENV_LANGUAGE + ": " + Server.guardNull(language) + "; " + RPC_ARGNAME_ENV_OSNAME + ": " + Server.guardNull(os) + "; " + RPC_ARGNAME_ENV_USERNAME + ": " + Server.guardNull(user); }
public static String[] getPreferredPathArray(final String[] preamble, final List<IFileSpec> specList) { return getPreferredPathArray(preamble, specList, true); }
/** * @see com.perforce.p4java.client.IClient#copyFiles(com.perforce.p4java.core.file.IFileSpec, java.util.List, com.perforce.p4java.option.client.CopyFilesOptions) */ @Override public List<IFileSpec> copyFiles(IFileSpec fromFile, List<IFileSpec> toFiles, CopyFilesOptions opts) throws P4JavaException { List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.COPY, Parameters.processParameters( opts, fromFile, toFiles, null, this.serverImpl), null); return getIntegrationFilesFromReturn(resultMaps); }
/** * Constructor for use with maps passed back from the Perforce server only. * * When a broker is involved, there will be more than one map. */ public ServerInfo(List<Map<String, Object>> maps) { for (Map<String, Object> map : maps) { setFromMap(map); } }
@Override public ServerStatus init(final String host, final int port, final Properties props, final UsageOptions opts) throws ConfigException, ConnectionException { return init(host, port, props, opts, false); }
/** * Constructor for use with maps passed back from the Perforce server only. */ public ServerInfo(Map<String, Object> map) { if (map != null) { setFromMap(map); } }
@Override public ServerStatus init(final String host, final int port, final Properties props) throws ConfigException, ConnectionException { return init(host, port, props, null); }