Package javax.portlet

Examples of javax.portlet.PortletSession.removeAttribute()


    PortletSession session = request.getPortletSession(false);
    if (session != null) {
      if (flowExecutionKey == null && request instanceof RenderRequest) {
        flowExecutionKey = (String) session.getAttribute(EXECUTION_ATTRIBUTE);
      } else if (flowExecutionKey != null && request instanceof ActionRequest) {
        session.removeAttribute(EXECUTION_ATTRIBUTE);
      }
    }
    return flowExecutionKey;
  }
View Full Code Here


      FlowHandler flowHandler) {
    PortletSession session = request.getPortletSession(false);
    if (session != null) {
      FlowException e = (FlowException) session.getAttribute(ACTION_REQUEST_FLOW_EXCEPTION_ATTRIBUTE);
      if (e != null) {
        session.removeAttribute(ACTION_REQUEST_FLOW_EXCEPTION_ATTRIBUTE);
        return e;
      }
    }
    return null;
  }
View Full Code Here

  @Override
  public void removeValue(String name) {
    PortletSession portletSession = getPortletSession();

    portletSession.removeAttribute(name);
  }

}
View Full Code Here

    protected void removeAttribute(String key)
    {
        PortletSession portletSession = getSession();
        if (portletSession != null)
        {
            portletSession.removeAttribute(key, PortletSession.PORTLET_SCOPE);
        }
    }

    @Override
    @SuppressWarnings("unchecked")
View Full Code Here

        PortletSession session = getSession();
        if (session == null) return;
        for (Enumeration attributeNames = session.getAttributeNames(PortletSession.PORTLET_SCOPE);
             attributeNames.hasMoreElements(); ) {
            String attributeName = (String)attributeNames.nextElement();
            session.removeAttribute(attributeName);
        }
    }
}
View Full Code Here

    protected void removeAttribute(String key)
    {
        PortletSession portletSession = getSession();
        if (portletSession != null)
        {
            portletSession.removeAttribute(key, PortletSession.PORTLET_SCOPE);
        }
    }

    @Override
    @SuppressWarnings("unchecked")
View Full Code Here

        PortletSession session = getSession();
        if (session == null) return;
        for (Enumeration attributeNames = session.getAttributeNames(PortletSession.PORTLET_SCOPE);
             attributeNames.hasMoreElements(); ) {
            String attributeName = (String)attributeNames.nextElement();
            session.removeAttribute(attributeName);
        }
    }
}
View Full Code Here

  public int doStartTag()  throws JspException {

    PortletRequest request = (PortletRequest)pageContext.getRequest().getAttribute(Constants.PORTLET_REQUEST);
    PortletSession session = request.getPortletSession();
    Throwable error = (Throwable)session.getAttribute(PlutoAdminConstants.ERROR_ATTR);
    session.removeAttribute(PlutoAdminConstants.ERROR_ATTR);
    PortletMessage oMsg = (PortletMessage)session.getAttribute(PlutoAdminConstants.MESSAGE_ATTR);
    session.removeAttribute(PlutoAdminConstants.MESSAGE_ATTR);

    try {
      JspWriter out = pageContext.getOut();
View Full Code Here

    PortletRequest request = (PortletRequest)pageContext.getRequest().getAttribute(Constants.PORTLET_REQUEST);
    PortletSession session = request.getPortletSession();
    Throwable error = (Throwable)session.getAttribute(PlutoAdminConstants.ERROR_ATTR);
    session.removeAttribute(PlutoAdminConstants.ERROR_ATTR);
    PortletMessage oMsg = (PortletMessage)session.getAttribute(PlutoAdminConstants.MESSAGE_ATTR);
    session.removeAttribute(PlutoAdminConstants.MESSAGE_ATTR);

    try {
      JspWriter out = pageContext.getOut();
      if (message != null ) {
        if (cssClass == null) {
View Full Code Here

    protected void removeAttribute(String key)
    {
        PortletSession portletSession = getSession();
        if (portletSession != null)
        {
            portletSession.removeAttribute(key, PortletSession.PORTLET_SCOPE);
        }
    }

    protected Enumeration getAttributeNames()
    {
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.