public static String[] getPreferredPathArray(final String[] preamble, final List<IFileSpec> specList) { return getPreferredPathArray(preamble, specList, true); }
public static String[] getPreferredPathArray(final String[] preamble, final List<IFileSpec> specList) { return getPreferredPathArray(preamble, specList, true); }
private List<IFileSpec> haveList(List<IFileSpec> fileSpecs, String[] filter) throws ConnectionException, AccessException { List<IFileSpec> haveList = new ArrayList<IFileSpec>(); if ((this.serverImpl.getCurrentClient() == null) || !this.serverImpl.getCurrentClient().getName().equalsIgnoreCase(this.getName())) { return haveList; } List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.HAVE, Server.getPreferredPathArray(filter, fileSpecs), null); if (resultMaps != null) { for (Map<String, Object> result : resultMaps) { haveList.add(handleFileReturn(result, serverImpl)); } } return haveList; }
private List<IFileSpec> haveList(List<IFileSpec> fileSpecs, String[] filter) throws ConnectionException, AccessException { List<IFileSpec> haveList = new ArrayList<IFileSpec>(); if ((this.serverImpl.getCurrentClient() == null) || !this.serverImpl.getCurrentClient().getName().equalsIgnoreCase(this.getName())) { return haveList; } List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.HAVE, Server.getPreferredPathArray(filter, fileSpecs), null); if (resultMaps != null) { for (Map<String, Object> result : resultMaps) { haveList.add(handleFileReturn(result, serverImpl)); } } return haveList; }
/** * @see com.perforce.p4java.client.IClient#where(java.util.List) */ @Override public List<IFileSpec> where(List<IFileSpec> fileSpecs) throws ConnectionException, AccessException { List<IFileSpec> resultList = new ArrayList<IFileSpec>(); if ((this.serverImpl.getCurrentClient() == null) || !this.serverImpl.getCurrentClient().getName().equalsIgnoreCase(this.getName())) { return resultList; } List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.WHERE, Server.getPreferredPathArray(null, fileSpecs), null); if (resultMaps != null) { for (Map<String, Object> result : resultMaps) { // p4ic4idea: enhanced exception handling resultList.add(handleFileReturn(result, serverImpl)); } } return resultList; }
/** * @see com.perforce.p4java.client.IClient#where(java.util.List) */ @Override public List<IFileSpec> where(List<IFileSpec> fileSpecs) throws ConnectionException, AccessException { List<IFileSpec> resultList = new ArrayList<IFileSpec>(); if ((this.serverImpl.getCurrentClient() == null) || !this.serverImpl.getCurrentClient().getName().equalsIgnoreCase(this.getName())) { return resultList; } List<Map<String, Object>> resultMaps = this.serverImpl.execMapCmdList( CmdSpec.WHERE, Server.getPreferredPathArray(null, fileSpecs), null); if (resultMaps != null) { for (Map<String, Object> result : resultMaps) { resultList.add(handleFileReturn(result, serverImpl)); } } return resultList; }