Package ch.entwine.weblounge.common.security

Examples of ch.entwine.weblounge.common.security.UserExistsException


        if (SecurityUtils.userHasRole(shadowedUser, SYSTEMADMIN))
          throw new UserShadowedException("Site '" + site.getIdentifier() + "' account '" + user + "' is shadowing the system account");
        else if (SecurityUtils.userHasRole(shadowedUser, SITEADMIN))
          throw new UserShadowedException("Site '" + site.getIdentifier() + "' account '" + user + "' is shadowing the site account");
        else
          throw new UserExistsException("Site '" + site.getIdentifier() + "' account '" + user + "' already exists");
      }
    } else {
      logger.warn("Directory service not found, site '{}' user '{}' cannot be checked for user shadowing", site.getIdentifier(), user);
    }
   
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.security.UserExistsException

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.