Package org.exoplatform.services.organization

Examples of org.exoplatform.services.organization.DisabledUserException


    * {@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


         {
            return Integer.parseInt(userAccountControl);
         }
         catch (NumberFormatException e)
         {
            throw new DisabledUserException(username, e);
         }
      }
      return 0;
   }
View Full Code Here

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

        if (log.isTraceEnabled()) {
            Tools.logMethodIn(log, LogLevel.TRACE, "saveUser", new Object[] { "user", user, "broadcast", broadcast });
        }

        if (user != null && !user.isEnabled()) {
            throw new DisabledUserException(user.getUserName());
        }

        IdentitySession session = service_.getIdentitySession();
        if (broadcast) {
            preSave(user, false);
View Full Code Here

            return false;
        }

        if (!user.isEnabled()) {
            throw new DisabledUserException(username);
        }

        boolean authenticated = false;

        if (orgService.getConfiguration().isPasswordAsAttribute()) {
View Full Code Here

        if (log.isTraceEnabled()) {
            Tools.logMethodIn(log, LogLevel.TRACE, "saveUser", new Object[] { "user", user, "broadcast", broadcast });
        }

        if (user != null && !user.isEnabled()) {
            throw new DisabledUserException(user.getUserName());
        }

        IdentitySession session = service_.getIdentitySession();
        if (broadcast) {
            preSave(user, false);
View Full Code Here

            return false;
        }

        if (!user.isEnabled()) {
            throw new DisabledUserException(username);
        }

        boolean authenticated = false;

        if (orgService.getConfiguration().isPasswordAsAttribute()) {
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

    * {@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

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.