Examples of LiferayFacesContext


Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getDeleteable() {

    if (deleteable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      deleteable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getEntryId(), ActionKeys.DELETE);
    }

    return deleteable;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getPermissible() {

    if (permissible == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      permissible = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getEntryId(), ActionKeys.PERMISSIONS);
    }

    return permissible;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  public String getPermissionsUrl() {

    if (permissionsUrl == null) {

      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      ExternalContext externalContext = liferayFacesContext.getExternalContext();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();

      // Get the underlying HttpServletRequest and HttpServletResponse
      PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
      HttpServletRequest httpServletRequest = PortalUtil.getHttpServletRequest(portletRequest);
      PortletResponse portletResponse = (PortletResponse) externalContext.getResponse();
      HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(portletResponse);
      ELContext elContext = liferayFacesContext.getELContext();
      StringJspWriter stringJspWriter = new StringJspWriter();
      PageContextAdapter pageContextAdapter = new PageContextAdapter(httpServletRequest, httpServletResponse,
          elContext, stringJspWriter);

      // Invoke the Liferay Tag class directly (rather than using the tag from a JSP).
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getUpdateable() {

    if (updateable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      updateable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getEntryId(), ActionKeys.UPDATE);
    }

    return updateable;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }
 
  public Boolean getViewable() {

    if (viewable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      viewable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getEntryId(), ActionKeys.VIEW);
    }

    return viewable;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getDeleteable() {

    if (deleteable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      deleteable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getGuestbookId(), ActionKeys.DELETE);
    }

    return deleteable;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getPermissible() {

    if (permissible == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      permissible = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getGuestbookId(), ActionKeys.PERMISSIONS);
    }

    return permissible;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  public String getPermissionsUrl() {

    if (permissionsUrl == null) {

      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      ExternalContext externalContext = liferayFacesContext.getExternalContext();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();

      // Get the underlying HttpServletRequest and HttpServletResponse
      PortletRequest portletRequest = (PortletRequest) externalContext.getRequest();
      HttpServletRequest httpServletRequest = PortalUtil.getHttpServletRequest(portletRequest);
      PortletResponse portletResponse = (PortletResponse) externalContext.getResponse();
      HttpServletResponse httpServletResponse = PortalUtil.getHttpServletResponse(portletResponse);
      ELContext elContext = liferayFacesContext.getELContext();
      StringJspWriter stringJspWriter = new StringJspWriter();
      PageContextAdapter pageContextAdapter = new PageContextAdapter(httpServletRequest, httpServletResponse,
          elContext, stringJspWriter);

      // Invoke the Liferay Tag class directly (rather than using the tag from a JSP).
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getUpdateable() {

    if (updateable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      updateable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getGuestbookId(), ActionKeys.UPDATE);
    }

    return updateable;
  }
View Full Code Here

Examples of com.liferay.faces.portal.context.LiferayFacesContext

  }

  public Boolean getViewable() {

    if (viewable == null) {
      LiferayFacesContext liferayFacesContext = LiferayFacesContext.getInstance();
      long scopeGroupId = liferayFacesContext.getScopeGroupId();
      viewable = liferayFacesContext.getThemeDisplay().getPermissionChecker().hasPermission(scopeGroupId,
          MODEL, getGuestbookId(), ActionKeys.VIEW);
    }

    return viewable;
  }
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.