Package org.jboss.portal.identity

Examples of org.jboss.portal.identity.NoSuchUserException


         catch (NamingException e)
         {
            throw new IdentityException("Failed to close LDAP connection", e);
         }
      }
      throw new NoSuchUserException("No user found with name: " + userName);

   }
View Full Code Here


         catch (NamingException e)
         {
            throw new IdentityException("Failed to close LDAP connection", e);
         }
      }
      throw new NoSuchUserException("No user found with name: " + userName);

   }
View Full Code Here

                  User user = getUserModule().findUserByUserName(getUsername());
                  // in case module implementation doesn't throw proper
                  // exception...
                  if (user == null)
                  {
                     throw new NoSuchUserException("UserModule returned null user object")
                  }

                  //This is because LDAP binds can be non case sensitive
                  if (validateUserNameCase != null && validateUserNameCase.equalsIgnoreCase("true")
                     && !getUsername().equals(user.getUserName()))
View Full Code Here

         catch (NamingException e)
         {
            throw new IdentityException("Failed to close LDAP connection", e);
         }
      }
      throw new NoSuchUserException("No user found with name: " + userName);

   }
View Full Code Here

         catch (NamingException e)
         {
            throw new IdentityException("Failed to close LDAP connection", e);
         }
      }
      throw new NoSuchUserException("No user found with name: " + userName);
   }
View Full Code Here

            query.setParameter("userName", userName);
            query.setCacheable(true);
            HibernateUserImpl user = (HibernateUserImpl)query.uniqueResult();
            if (user == null)
            {
               throw new NoSuchUserException("No such user " + userName);
            }
            return user;
         }
         catch (HibernateException e)
         {
View Full Code Here

         {
            Session session = getCurrentSession();
            HibernateUserImpl user = (HibernateUserImpl)session.get(HibernateUserImpl.class, (Long)id);
            if (user == null)
            {
               throw new NoSuchUserException("No user found for " + id);
            }
            return user;
         }
         catch (HibernateException e)
         {
View Full Code Here

            HibernateUserImpl user = (HibernateUserImpl)session.load(HibernateUserImpl.class, (Serializable)id);


            if (user == null)
            {
               throw new NoSuchUserException("No such user " + id);
            }

            String userName = user.getUserName();

            session.delete(user);
View Full Code Here

TOP

Related Classes of org.jboss.portal.identity.NoSuchUserException

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.