Package com.liferay.portal

Examples of com.liferay.portal.RequiredUserException


    if (!hasAdmin(userId)) {
      throw new PrincipalException();
    }

    if (getUserId().equals(userId)) {
      throw new RequiredUserException();
    }

    UserLocalManagerUtil.deleteUser(userId);
  }
View Full Code Here


    if (!hasAdministrator(user.getCompanyId())) {
      throw new PrincipalException();
    }

    if (active == false && getUserId().equals(userId)) {
      throw new RequiredUserException();
    }

    user.setActive(active);

    UserUtil.update(user);
View Full Code Here

  public void deleteUser(String userId)
    throws PortalException, SystemException {

    if (!GetterUtil.getBoolean(PropsUtil.get(PropsUtil.USERS_DELETE))&& PropsUtil.get(PropsUtil.USERS_DELETE)!=null) {
      throw new RequiredUserException();
    }

    User user = UserUtil.findByPrimaryKey(userId);

    // Delete user's portrait
View Full Code Here

TOP

Related Classes of com.liferay.portal.RequiredUserException

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.