Get the set of IDs for the given surname and full name.

@param surname the surname to search
@param name the full name in index form
@return the set of IDs
349462
public Set<String> getIdsPerName(final String surname, final String name) {
        if (surname == null || name == null) {
            return Collections.emptySet();
        }
        final Map<String, SortedSet<String>> namesPerSurname =
                getNamesPerSurnameMap(surname);
        if (!namesPerSurname.containsKey(name)) {
            return Collections.emptySet();
        }
        return Collections.unmodifiableSet(namesPerSurname.get(name));
    }
847934
public static List<Object> getList(String name){
        if(getConfiguration().containsKey(name)){
            return getConfiguration().getList(name);
        }
        return null;
    }
318701
@Override
    public List<String> getUsers(String name) {
        if (!hasRole(name)) {
            throw new Error("error: name does not exist");
        }

        List<String> names = new ArrayList<>();
        for (Role role : allRoles.values()) {
            if (role.hasDirectRole(name)) {
                names.add(role.name);
            }
        }
        return names;
    }
96800
public String getValidJavaIdentifier(String name) {
        if (!Character.isJavaIdentifierStart(name.charAt(0))) {
            name = "z" + name;
        }
        return name;
    }
721145
public static Set<SelectorName> nameSetFrom( SelectorName firstName,
                                                 SelectorName... names ) {
        if (firstName == null && (names == null || names.length == 0)) {
            return Collections.emptySet();
        }
        Set<SelectorName> result = new LinkedHashSet<SelectorName>();
        result.add(firstName);
        for (SelectorName name : names) {
            if (name != null) result.add(name);
        }
        return Collections.unmodifiableSet(result);
    }
593179
public List<Object> getEntities(String name) {
		List<Object> entitiesList = new LinkedList<Object>();

		for (Result result : results) {
			if (result.getResultName().equals(name)) {
				entitiesList.add(result.getObject());
			}
		}

		return entitiesList;
	}
815054
public static String fullName() {
        StringBuilder result = new StringBuilder();

        if (RandomBoolean.chance(3, 5))
            result.append(RandomString.pick(_namePrefixes)).append(" ");

        result.append(RandomString.pick(_firstNames))
        	.append(" ")
        	.append(RandomString.pick(_lastNames));

        if (RandomBoolean.chance(5, 10))
            result.append(" ").append(RandomString.pick(_nameSuffixes));

        return result.toString();
    }
1252828
private Set<String> getRelatedElementIds(String id) {

        Set<String> result = new HashSet<String>();
        if (id != null) {
            result.add(id);
            String serverId = getServerId(id);

            Iterator<String> it = m_elements.keySet().iterator();
            while (it.hasNext()) {
                String elId = it.next();
                if (elId.startsWith(serverId)) {
                    result.add(elId);
                }
            }

            Iterator<org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel> itEl = getAllDragElements().iterator();
            while (itEl.hasNext()) {
                org.opencms.ade.containerpage.client.ui.CmsContainerPageElementPanel element = itEl.next();
                if (element.getId().startsWith(serverId)) {
                    result.add(element.getId());
                }
            }
        }
        return result;
    }
408988
public static List<Integer> indexes(String name, Map<String, String> data) {
        logger.debug("get indexes for {}", name);
        // matches: 'prefix[index]...'
        Pattern keyPattern = Pattern.compile("^" + Pattern.quote(name) + "\\[(\\d+)\\].*$");
        return data.keySet().stream()
                .map(key -> {
                    Matcher m = keyPattern.matcher(key);
                    return m.matches() ? Integer.parseInt(m.group(1))
                            : -1;
                }).filter(i -> i >= 0)
                .distinct()
                .sorted()
                .collect(Collectors.toList());
    }
926863
protected final <T> T[] getIds(String name, Class<T> clazz) {
    T[] datas = Params.getAll(name + ".id", clazz);
    if (null == datas) {
      String datastring = Params.get(name + ".ids");
      if (null == datastring) datastring = Params.get(name + "Ids");
      if (null == datastring) Array.newInstance(clazz, 0);
      else return Params.converter.convert(Strings.split(datastring, ","), clazz);
    }
    return datas;
  }
1130540
private SortedMap<String, SortedSet<String>> findNamesPerSurname(
            final String surname) {
        if (surnameIndex.containsKey(surname)) {
            return surnameIndex.get(surname);
        }
        final SortedMap<String, SortedSet<String>> namesPerSurname =
                new TreeMap<String, SortedSet<String>>();
        surnameIndex.put(surname, namesPerSurname);
        return namesPerSurname;
    }
1056971
public NameID getNameID(final String nameIdFormat, final String nameIdValue) {
        val nameId = newSamlObject(NameID.class);
        nameId.setFormat(nameIdFormat);
        nameId.setValue(nameIdValue);
        return nameId;
    }
246267
public Collection<Object> getAll(String name) {
    Object value = get(name);
    if (value == null) {
      return Collections.emptySet();
    }
    if (value instanceof Collection<?>) {
      @SuppressWarnings("unchecked")
      Collection<Object> collectionValue = (Collection<Object>) value;
      return Collections.unmodifiableCollection(collectionValue);
    }
    return Collections.singleton(value);
  }
87586
public Set<Property> getProperties(String name) {
        return this.properties.stream().filter(property -> property.getName().equals(name)).collect(Collectors.toSet());
    }
621629
public synchronized Set<String> getNames() {
        if (map == null) {
            return Collections.emptySet();
        }
        return Collections.unmodifiableSet(map.keySet());
    }
87657
public String getNameForID(String id) {
        if (!terms.containsKey(id))
            return null;
        return terms.get(id).getName();
    }
412656
public String get(String name) {
        Parameter param = parameters.get(name);
        if (param != null)
            return param.value;
        else
            return null;
    }