Devices for user.

@param username the username
@return the set
329184
@ReadOperation
    public Set<? extends MultifactorAuthenticationTrustRecord> devicesForUser(@Selector final String username) {
        val onOrAfter = expireRecordsByDate();
        return this.mfaTrustEngine.get(username, onOrAfter);
    }
95649
@SuppressWarnings({ "squid:S1166" })
    private static UserDetails loadUserByUsername(final String username) {
        final UserDetailsService userDetailsService = SpringContextHelper.getBean(UserDetailsService.class);
        try {
            return userDetailsService.loadUserByUsername(username);
        } catch (final UsernameNotFoundException e) {
            return new User(username, "", Collections.emptyList());
        }
    }
1042440
public static systemuser[] get(nitro_service service) throws Exception{
		systemuser obj = new systemuser();
		systemuser[] response = (systemuser[])obj.get_resources(service);
		return response;
	}
266616
public Devices getDevicesForPlace(String placeName) throws ApiException {
        ApiResponse<Devices> resp = getDevicesForPlaceWithHttpInfo(placeName);
        return resp.getData();
    }
696121
public void setUserName(String userName) {
        SystemAssert.requireArgument(userName != null && !userName.isEmpty(), "Username cannot be null or empty.");
        this.userName = userName;
    }
302185
public String[] getDeviceList(final String serverName, final String className) {
        String[] result = new String[0];
        final Server server = servers.get(serverName);
        if (server != null) {
            final String[] devices = server.getDevices(className);
            if (devices != null) {
                result = Arrays.copyOf(devices, devices.length);
            }
        }
        return result;
    }
841622
public static java.util.Set<String> all() {
    java.util.Set<String> set = new java.util.HashSet<String>();
    set.add(CLOUD_PLATFORM);
    set.add(SERVICECONTROL);
    return java.util.Collections.unmodifiableSet(set);
  }
278266
public List<Entry> get (Name username)
    {
        List<Entry> history = getList(username);
        if (history != null) {
            prune(System.currentTimeMillis(), history);
        }
        return history;
    }
225885
public T authentication(String username, String password) {
        return authentication(username, password, false);
    }
765196
public void setUsernames(java.util.Collection<String> usernames) {
        if (usernames == null) {
            this.usernames = null;
            return;
        }

        this.usernames = new java.util.ArrayList<String>(usernames);
    }
240756
public Set<String> keySet() {

        PropertyBundle p = this;
        Set<String> keys = new HashSet<>(p.key2values.keySet());

        while ((p = p.parent) != null) {
            keys.addAll(p.key2values.keySet());
        }

        return Collections.unmodifiableSet(keys);

    }
1040012
public Set<String> keySet(){
		HashSet<String> set=new HashSet<String>();
		Iterator<String> keys=keys();
		while(keys.hasNext()){
			set.add(keys.next());
		}
		return set;
	}
1286282
@SuppressWarnings("unchecked")
    public ManagedUser getManagedUser(final String username) {
        final Query query = pm.newQuery(ManagedUser.class, "username == :username");
        final List<ManagedUser> result = (List<ManagedUser>) query.execute(username);
        return Collections.isEmpty(result) ? null : result.get(0);
    }
297052
public boolean hasUser(String userName) {
        boolean result = false;
        for (User item : getUsersList()) {
            if (item.getName().equals(userName)) {
                result = true;
            }
        }
        return result;
    }
262038
public static systemuser_systemgroup_binding[] get(nitro_service service, String username) throws Exception{
		systemuser_systemgroup_binding obj = new systemuser_systemgroup_binding();
		obj.set_username(username);
		systemuser_systemgroup_binding response[] = (systemuser_systemgroup_binding[]) obj.get_resources(service);
		return response;
	}
741634
public IPerson getPerson(String username) {
        final IPerson rslt = new PersonImpl();
        rslt.setAttribute(IPerson.USERNAME, username);
        rslt.setID(userIdentityStore.getPortalUserId(username));
        rslt.setAttributes(personAttributeDao.getPerson(username).getAttributes());
        return rslt;
    }
480424
public static aaauser_vpntrafficpolicy_binding[] get(nitro_service service, String username) throws Exception{
		aaauser_vpntrafficpolicy_binding obj = new aaauser_vpntrafficpolicy_binding();
		obj.set_username(username);
		aaauser_vpntrafficpolicy_binding response[] = (aaauser_vpntrafficpolicy_binding[]) obj.get_resources(service);
		return response;
	}