Examples of UserAttribute


Examples of org.springframework.security.userdetails.memory.UserAttribute

    if(ua == null) {
      throw new Error("The init parameter 'userAttribute' must be declared");
    }
    final UserAttributeEditor uae = new UserAttributeEditor();
    uae.setAsText(ua);
    final UserAttribute userAttribute = (UserAttribute) uae.getValue();
    wrapped.setUserAttribute(userAttribute);
  }
View Full Code Here

Examples of org.springframework.security.userdetails.memory.UserAttribute

      // Convert value to a password, enabled setting, and list of granted
      // authorities
      configAttribEd.setAsText( value );

      UserAttribute attr = (UserAttribute) configAttribEd.getValue();

      // Make a user object, assuming the properties were properly
      // provided
      if ( attr != null ) {
        UserDetails user =
            new User( username, attr.getPassword(), attr.isEnabled(), true, true, true, attr.getAuthorities() );
        userMap.addUser( user );
      }
    }

    return userMap;
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.model.UserAttribute

    public static UserData getLiferayUserByAttribute(final UserAttribute attribute, Long companyId) {
        try {
            return Collections.firstMatching(getUsersByCompanyId(companyId), new Predicate<UserData>() {
                @Override
                public boolean apply(UserData input) {
                    UserAttribute userAttribute = input.findAttribute(attribute.getKey());
                    return userAttribute != null && userAttribute.getValue().equals(attribute.getValue());
                }
            });
        }
        catch (Exception e) {
            throw new LiferayBridgeException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.