public List<CUserRoleMapping> listUserRoleMappings() { return manager.listUserRoleMappings(); }
@Override public List<CUserRoleMapping> listUserRoleMappings() { readLock.lock(); try { return configurationManager.listUserRoleMappings(); } finally { readLock.unlock(); } }
public Set<String> listUserIds() { Set<String> userIds = new HashSet<String>(); List<CUserRoleMapping> userRoleMappings = this.configuration.listUserRoleMappings(); for ( CUserRoleMapping userRoleMapping : userRoleMappings ) { if ( SOURCE.equals( userRoleMapping.getSource() ) ) { String userId = userRoleMapping.getUserId(); if ( StringUtils.isNotEmpty( userId ) ) { userIds.add( userId ); } } } return userIds; }
public Set<String> listUserIds() { Set<String> userIds = new HashSet<String>(); Set<User> users = new HashSet<User>(); for ( User user : users ) { userIds.add( user.getUserId() ); } List<CUserRoleMapping> userRoleMappings = this.configuration.listUserRoleMappings(); for ( CUserRoleMapping userRoleMapping : userRoleMappings ) { String userId = userRoleMapping.getUserId(); if ( StringUtils.isNotEmpty( userId ) ) { userIds.add( userId ); } } return userIds; }
public Set<User> listUsers() { Set<User> users = new HashSet<User>(); List<CUserRoleMapping> userRoleMappings = this.configuration.listUserRoleMappings(); for ( CUserRoleMapping userRoleMapping : userRoleMappings ) { try { User user = this.getSecuritySystem().getUser( userRoleMapping.getUserId(), userRoleMapping.getSource() ); if ( user != null ) { users.add( user ); } } catch ( UserNotFoundException e ) { this.logger.warn( "User: '" + userRoleMapping.getUserId() + "' of source: '" + userRoleMapping.getSource() + "' could not be found." ); this.logger.debug( "Most likely caused by a user role mapping that is invalid.", e ); } catch ( NoSuchUserManagerException e ) { this.logger.warn( "User: '" + userRoleMapping.getUserId() + "' of source: '" + userRoleMapping.getSource() + "' could not be found.", e ); } } return users; }
public Set<User> listUsers() { Set<User> users = new HashSet<User>(); List<CUserRoleMapping> userRoleMappings = this.configuration.listUserRoleMappings(); for ( CUserRoleMapping userRoleMapping : userRoleMappings ) { if ( SOURCE.equals( userRoleMapping.getSource() ) ) { User user = null; if ( userRoleMapping.getRoles().contains( this.urlRealmConfiguration.getConfiguration().getDefaultRole() ) ) { user = this.toUser( userRoleMapping.getUserId(), false ); } else { user = this.toUser( userRoleMapping.getUserId(), true ); } if ( user != null ) { users.add( user ); } } } return users; }
List<CUserRoleMapping> roleMappings = configuration.listUserRoleMappings(); for ( CUserRoleMapping roleMapping : roleMappings )