public static void close() { for(SOLRAPIClient client : clientsPerAlfresco.values()) { client.close(); } }
public Transactions getTransactions(Long fromCommitTime, Long minTxnId, Long toCommitTime, Long maxTxnId, int maxResults) throws AuthenticationException, IOException, JSONException { try { return getTransactions(fromCommitTime, minTxnId, toCommitTime, maxTxnId, maxResults, null); } catch (EncoderException e) { // Can not happen .... throw new IOException(e); } }
socketTimeout = Integer.parseInt(props.getProperty("alfresco.socketTimeout", "60000")); client = new SOLRAPIClient(getRepoClient(keyResourceLoader), dictionaryService, namespaceDAO); setCachedClient(alfrescoHost, alfrescoPort, alfrescoPortSSL, client);
for(int j = 0; j < array.length(); j++) multi.addValue(getSinglePropertyValue(dataType, array.get(j))); ret = getSinglePropertyValue(dataType, value);
long aclId = aclReadersJSON.getLong("aclId"); JSONArray readersJSON = aclReadersJSON.getJSONArray("readers"); List<String> readers = authorityListFromJSON(readersJSON); JSONArray deniedJSON = aclReadersJSON.getJSONArray("denied"); List<String> denied = authorityListFromJSON(deniedJSON); long aclChangeSetId = aclReadersJSON.getLong("aclChangeSetId");
properties.put(propQName, getPropertyValue(propertyDef, propValueObj));