public AddeAccount getAccountingFor(final AddeServer idvServer, String typeAsStr) { String address = idvServer.getName(); List<AddeServer.Group> groups = (List<AddeServer.Group>) idvServer.getGroups(); if (groups != null && !groups.isEmpty()) { EntryType type = EntryTransforms.strToEntryType(typeAsStr); return getAccountingFor(address, groups.get(0).getName(), type); } else { return RemoteAddeEntry.DEFAULT_ACCOUNT; } }
/** * Returns a list that consists of the available ADDE datasets for a given {@link EntryType}, * converted to IDV {@link AddeServer} objects. * * @param typeAsStr Only add entries with this type to the returned list. Cannot be {@code null} * and must be a value that works with {@link EntryTransforms#strToEntryType(String)}. * @return {@code AddeServer} objects for each ADDE entry of the given type. * @see EntryTransforms#strToEntryType(String) */ public Set<AddeServer> getIdvStyleEntries(final String typeAsStr) { return getIdvStyleEntries(EntryTransforms.strToEntryType(typeAsStr)); }
public Set<AddeServer.Group> getIdvStyleRemoteGroups( final String server, final String typeAsStr) { return getIdvStyleRemoteGroups(server, EntryTransforms.strToEntryType(typeAsStr)); }