Package org.exoplatform.services.organization

Examples of org.exoplatform.services.organization.DisabledUserException


         return false;
      }

      if (!user.isEnabled())
      {
         throw new DisabledUserException(username);
      }
      boolean authenticated;
      if (pe == null)
      {
         authenticated = user.getPassword().equals(password);
View Full Code Here


            {
               return true;
            }
            if (!usr.isEnabled())
            {
               throw new DisabledUserException(usr.getUserName());
            }
            if (pe == null)
            {
               if (usr.getPassword().equals(password))
               {
View Full Code Here

            {
               return true;
            }
            if (!usr.isEnabled())
            {
               throw new DisabledUserException(usr.getUserName());
            }
            if (pe == null)
            {
               if (usr.getPassword().equals(password))
               {
View Full Code Here

            {
               return true;
            }
            if (!usr.isEnabled())
            {
               throw new DisabledUserException(usr.getUserName());
            }
            if (pe == null)
            {
               if (usr.getPassword().equals(password))
               {
View Full Code Here

    * {@inheritDoc}
    */
   public void saveUser(User user, boolean broadcast) throws Exception
   {
      if (user != null && !user.isEnabled())
         throw new DisabledUserException(user.getUserName());
     
      LdapContext ctx = ldapService.getLdapContext();
      String userDN = null;
      User existingUser = null;
      try
View Full Code Here

    * {@inheritDoc}
    */
   public void saveUser(User user, boolean broadcast) throws Exception
   {
      if (user != null && !user.isEnabled())
         throw new DisabledUserException(user.getUserName());
      if (broadcast)
         preSave(user, false);

      Session session = service_.openSession();

View Full Code Here

         return false;
      }

      if (!user.isEnabled())
      {
         throw new DisabledUserException(username);
      }
      boolean authenticated;
      if (pe == null)
      {
         authenticated = user.getPassword().equals(password);
View Full Code Here

         if (answer.hasMoreElements())
         {
            SearchResult result = answer.next();
            if (status != UserStatus.BOTH && !status.matches(ldapAttrMapping.isEnabled(username, result.getAttributes())))
            {
               throw new DisabledUserException(username);
            }
            return result.getNameInNamespace();
         }
         return null;
      }
View Full Code Here

         return false;
      }
      boolean enabled = userNode.canAddMixin(JCROrganizationServiceImpl.JOS_DISABLED);
      if (!enabled)
      {
         throw new DisabledUserException(userName);
      }

      if (pe == null)
      {
         authenticated = utils.readString(userNode, UserProperties.JOS_PASSWORD).equals(password);
View Full Code Here

    * {@inheritDoc}
    */
   public void saveUser(User user, boolean broadcast) throws Exception
   {
      if (user != null && !user.isEnabled())
         throw new DisabledUserException(user.getUserName());
      Session session = service.getStorageSession();
      try
      {
         saveUser(session, (UserImpl)user, broadcast);
      }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.organization.DisabledUserException

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.