Package org.jboss.seam.security

Examples of org.jboss.seam.security.UserImpl


         identity.addGroup("USERS", "GROUP");
      }
     
      // Let any user log in
      setStatus(AuthenticationStatus.SUCCESS);
      setUser(new UserImpl(credentials.getUsername()));
   }
View Full Code Here


  
   public void authenticate()
   {
      if (identitySession != null)
      {           
         User u = new UserImpl(credentials.getUsername());
        
         try
         {
            boolean success = identitySession.getAttributesManager().validateCredentials(
                  u, new Credential[] {credentials.getCredential()});
View Full Code Here

      conversation.begin();
      this.username = username;
     
      roles = new ArrayList<Role>();
     
      Collection<RoleType> roleTypes = identitySession.getRoleManager().findUserRoleTypes(new UserImpl(username));
     
      for (RoleType roleType : roleTypes)
      {
         roles.addAll(identitySession.getRoleManager().findRoles(username, roleType.getName()));
      }         
View Full Code Here

      return "success";
   }
  
   public @Transactional void deleteUser(String username) throws IdentityException
   {
      identitySession.getPersistenceManager().removeUser(new UserImpl(username), true);
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.security.UserImpl

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.