public Widget getWidget(String parentName, String shortName) throws UnifyException { return widgets.get(longNamesByShortName.get(parentName, shortName)); }
public V get(T mainKey, U key, Object... params) throws UnifyException { return get(mainKey).get(key, params); }
public Collection<V> values(T key) throws UnifyException { return get(key).values(); }
public Set<U> keySet(T key) throws UnifyException { return get(key).keySet(); }
public V remove(T mainKey, U key) throws UnifyException { return get(mainKey).remove(key); }
public void removeSiblingKeys(T mainKey, U key) throws UnifyException { for (T siblingMainKey : keySet()) { if (!siblingMainKey.equals(mainKey)) { get(siblingMainKey).remove(key); } } }
public Set<V> removeSubkeys(U key) throws UnifyException { Set<V> result = new HashSet<V>(); for (T siblingMainKey : keySet()) { V value = get(siblingMainKey).remove(key); if (value != null) { result.add(value); } } return result; }
public boolean isKey(T mainKey, U key) throws UnifyException { if (isKey(mainKey)) { return get(mainKey).isKey(key); } return false; }
RemoteCallSetup remoteCallSetup = preferences.get(remoteAppURL, param.methodCode()); param.setClientAppCode(getApplicationCode()); OutputStream out = null;
@Override public void setupRemoteCall(String remoteAppURL, String methodCode, RemoteCallFormat format, Charset charset) throws UnifyException { logDebug("Setting up remote call with code = [{0}], remoteAppURL = [{1}]...", methodCode, remoteAppURL); if (preferences.isKey(remoteAppURL, methodCode)) { throw new UnifyException(UnifyWebErrorConstants.REMOTECALL_CLIENT_SETUP_CODE_EXISTS, remoteAppURL, methodCode); } logDebug("Discovering remote call method with code [{0}] for remote application [{1}]...", methodCode, remoteAppURL); String discoveryURL = getDiscoveryURL(remoteAppURL); if (!isRemoteCallSetup(discoveryURL, APIDiscoveryRemoteCallCodeConstants.DISCOVER_REMOTE_CALL)) { preferences.get(discoveryURL, APIDiscoveryRemoteCallCodeConstants.DISCOVER_REMOTE_CALL, discoveryURL, RemoteCallFormat.JSON, StandardCharsets.UTF_8); } DiscoverRemoteCallResult result = remoteCall(DiscoverRemoteCallResult.class, discoveryURL, new DiscoverRemoteCallParams(methodCode)); checkError(result); preferences.get(remoteAppURL, methodCode, result.getRemoteCallInfo().getUrl(), format, charset); logDebug("...remote call setup completed."); }