Returns all <code>user-attribute</code> elements
@return list of <code>user-attribute</code>
553094
public List<UserAttributeType<PortletDescriptor>> getAllUserAttribute()
   {
      List<UserAttributeType<PortletDescriptor>> list = new ArrayList<UserAttributeType<PortletDescriptor>>();
      List<Node> nodeList = model.get("user-attribute");
      for(Node node: nodeList)
      {
         UserAttributeType<PortletDescriptor>  type = new UserAttributeTypeImpl<PortletDescriptor>(this, "user-attribute", model, node);
         list.add(type);
      }
      return list;
   }
877901
public Enumeration<String> getElements() {
        AttributeNameEnumeration elements = new AttributeNameEnumeration();
        elements.addElement(POLICIES);

        return (elements.elements());
    }
1356760
public List<NamedAttributeNode<NamedEntityGraph<T>>> getAllNamedAttributeNode()
   {
      List<NamedAttributeNode<NamedEntityGraph<T>>> list = new ArrayList<NamedAttributeNode<NamedEntityGraph<T>>>();
      List<Node> nodeList = childNode.get("named-attribute-node");
      for(Node node: nodeList)
      {
         NamedAttributeNode<NamedEntityGraph<T>>  type = new NamedAttributeNodeImpl<NamedEntityGraph<T>>(this, "named-attribute-node", childNode, node);
         list.add(type);
      }
      return list;
   }
1236062
@Override
    public Set<IPortletEntity> getPortletEntitiesForUser(int userId) {
        final Set<IPortletEntity> portletEntities =
                this.delegatePortletEntityDao.getPortletEntitiesForUser(userId);
        return this.wrapEntities(portletEntities);
    }
392353
public java.util.List<User> getUsers() {
        if (users == null) {
            users = new com.amazonaws.internal.SdkInternalList<User>();
        }
        return users;
    }
764361
public Enumeration<String> getElements() {
        AttributeNameEnumeration elements = new AttributeNameEnumeration();
        elements.addElement(ISSUER);
        return elements.elements();
    }
98850
@Override
    public Map<String, List<Object>> getAttributes() {
        final Map<String, List<Object>> attributeMap = new LinkedHashMap<String, List<Object>>();

        for (final LocalAccountPersonAttributeImpl attribute : attributes) {
            final List<Object> objValues = this.getObjectValues(attribute);
            attributeMap.put(attribute.getName(), objValues);
        }

        return Collections.unmodifiableMap(attributeMap);
    }
216905
@Programmatic
    @SuppressWarnings({ "unchecked", "rawtypes" })
    public List<UserSetting> listAll() {
        return (List)repositoryService.allMatches(
                new QueryDefault<>(UserSettingJdo.class,
                        "findAll"));
    }
1183212
public Object users() {
        return new ArrayList<Map<String, Object>>()
        {{
            add(new HashMap<String, Object>()
            {{
                put("username","testUser1");
                put("groups", Arrays.asList("group1"));
                put("password","thisMechWillChange");
            }});
            add(new HashMap<String, Object>()
            {{
                put("username","testUser2");
                put("groups", Arrays.asList("group2"));
                put("password","thisMechWillChange");
            }});
        }};
    }
111573
public Map<String, String> getAttributes() {
    if (attributes == null) {
      return null;
    } else {
      return Collections.unmodifiableMap(attributes);
    }
  }
285472
public List<Id<Attributes<T>>> getAllId()
   {
      List<Id<Attributes<T>>> list = new ArrayList<Id<Attributes<T>>>();
      List<Node> nodeList = childNode.get("id");
      for(Node node: nodeList)
      {
         Id<Attributes<T>>  type = new IdImpl<Attributes<T>>(this, "id", childNode, node);
         list.add(type);
      }
      return list;
   }
1221565
@Override
    public final Map<String, Object> getUserAttributes(final String uid,
                                                       final IPersonAttributeDaoFilter filter) {
        if (!this.enabled) {
            return null;
        }
        Validate.notNull(uid, "uid may not be null.");

        //Get the attributes from the subclass
        final Map<String, List<Object>> multivaluedUserAttributes = this.getMultivaluedUserAttributes(uid, filter);

        return this.flattenResults(multivaluedUserAttributes);
    }
793582
@Transient
    public List<Attribute> getAllAttributes() {
        if (all == null) {
            all = new SortedAttributeList<Attribute>();
        }
        return this.all;
    }
1187929
private Set<String> getUserRoles(Subject subject) {
        Set<String> userRoles = null;

        // get roles from specified classes
        Set<Principal> principals = subject.getPrincipals();
        if (roleClassNames != null && roleClassNames.size() > 0) {
            for (Principal p : principals) {
                if (roleClassNames.contains(p.getClass().getName())) {
                    if (userRoles == null) userRoles = new HashSet<String>();
                    userRoles.add(p.getName());
                }
            }
        }

        // get roles from specified attributes
        Map<String, Set<String>> attributes =
                SubjectUtils.getAttributes(subject);
        for (String key : attributes.keySet()) {
            if (roleAttributeNames.contains(key)) {
                if (userRoles == null) userRoles = new HashSet<String>();
                userRoles.addAll(attributes.get(key));
            }
        }

        if (userRoles == null) userRoles = Collections.emptySet();
        if (logger.isDebugEnabled()) {
            for (String r : userRoles) {
                logger.debug("found role: {}", r);
            }
        }

        return userRoles;
    }
1358879
List<User> getAllUsers(AccessToken accessToken, String... attributes) {
        return super.getAllResources(accessToken, attributes);
    }
177802
public Set<Role> findRoles(final User user)
    {
        final Set<Role> result = new HashSet<Role>();
        
        Object source;
        for(final RoleMapping mapping : this.getRoleMappings())
        {
            source = mapping.getSource();
            
            if((user != null) && user.equals(source))
            {
                result.add(mapping.getTarget());
            }
        }
        
        return result;
    }
160611
public java.util.List<String> getIamUserArns() {
        if (iamUserArns == null) {
            iamUserArns = new com.amazonaws.internal.SdkInternalList<String>();
        }
        return iamUserArns;
    }