Package com.liferay.faces.portal.security

Examples of com.liferay.faces.portal.security.AuthorizationException


  public void checkUserPortletPermission(String actionId) throws AuthorizationException {

    try {

      if (!userHasPortletPermission(actionId)) {
        throw new AuthorizationException("User " + getUserId() + " not authorized to perform action " +
          actionId);
      }
    }
    catch (Exception e) {
      throw new AuthorizationException("Exception checking permissions for actionId " + actionId, e);

    }
  }
View Full Code Here

TOP

Related Classes of com.liferay.faces.portal.security.AuthorizationException

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.