Package org.jboss.errai.security.shared

Examples of org.jboss.errai.security.shared.User


    if (identity.login() != Identity.AuthenticationResult.SUCCESS) {
      throw new SecurityException();
    }

    final User user = createUser((org.picketlink.idm.model.User) identity.getAgent());
    loggedInEventSource.fire(new LoggedInEvent(user));
    return user;
  }
View Full Code Here


   * TODO this is wrong, maybe we can configure the attributes of picketLink to provide us with the right information
   * @param picketLinkUser the user returned by picketLink
   * @return our user
   */
  private User createUser(org.picketlink.idm.model.User picketLinkUser) {
    User user = new User();
    user.setLoginName(picketLinkUser.getLoginName());
    user.setFullName(picketLinkUser.getFirstName() + " " + picketLinkUser.getLastName());
    user.setShortName(picketLinkUser.getLastName());
    return user;
  }
View Full Code Here

  @Inject
  AuthenticationService service;

  public boolean resolvePermission(PageRequest pageRequest) {
    User user = service.getUser();

    for (RequestPermissionResolver resolver : resolvers) {
      PermissionStatus status = resolver.hasPermission(user, pageRequest);
    if (PermissionStatus.DENY.equals(status)) {
        return false;
View Full Code Here

TOP

Related Classes of org.jboss.errai.security.shared.User

Copyright © 2018 www.massapicom. 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.