Examples of PermissionChecker


Examples of com.liferay.portal.security.permission.PermissionChecker

    }
  }

  private static PermissionChecker getAdministratorPermissionChecker(long companyId) throws PortalException,
    SystemException {
    PermissionChecker administratorPermissionChecker = null;
    Role administratorRole = RoleLocalServiceUtil.getRole(companyId, RoleConstants.ADMINISTRATOR);
    List<User> administratorUsers = UserLocalServiceUtil.getRoleUsers(administratorRole.getRoleId());

    if ((administratorUsers != null) && (administratorUsers.size() > 0)) {
View Full Code Here

Examples of com.sun.jsftemplating.el.PermissionChecker

     @param  component   The UIComponent
     *
     *  @return  true if children are to be rendered, false otherwise.
     */
    protected boolean shouldContinue(UIComponent component) {
  PermissionChecker checker =
      new PermissionChecker(this, component,
    (String) getOption("condition"));
  return checker.hasPermission();
    }
View Full Code Here

Examples of com.sun.jsftemplating.el.PermissionChecker

  if (obj instanceof UIComponent) {
      comp = (UIComponent) obj;
  }

  // Create a PermissionChecker
  PermissionChecker checker = new PermissionChecker(
    handlerContext.getLayoutElement(), comp, cond);

  // Return the result
  return checker.hasPermission();
    }
View Full Code Here

Examples of com.sun.jsftemplating.el.PermissionChecker

     @param  comp   The UIComponent
     *
     *  @return  true if children are to be rendered, false otherwise.
     */
    public boolean encodeThis(FacesContext ctx, UIComponent comp) {
  PermissionChecker checker = new PermissionChecker(
      this, comp, (_doubleEval) ?
    ((String) getEvaluatedOption(ctx, "condition", comp)) :
    ((String) getOption("condition")));
  return checker.hasPermission();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.