Package javax.portlet

Examples of javax.portlet.PortletSession.removeAttribute()


              logger.debug("Render phase found exception caught during action phase - rethrowing it");
              throw ex;
            }
          }
          else {
            session.removeAttribute(ACTION_EXCEPTION_SESSION_ATTRIBUTE);
          }
        }
       
        // Determine handler for the current request.
        mappedHandler = getHandler(processedRequest, false);
View Full Code Here


    populateConveniencePortletProperties(request);
    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 handleException(e, flowHandler, request, response);
      }
    }
    String flowExecutionKey = flowUrlHandler.getFlowExecutionKey(request);
    if (flowExecutionKey != null) {
View Full Code Here

    }
    else {
      PortletSession session = getSession(false);
      if (session != null) {
        if (scope == SCOPE_GLOBAL_SESSION) {
          session.removeAttribute(name, PortletSession.APPLICATION_SCOPE);
          synchronized (this.globalSessionAttributesToUpdate) {
            this.globalSessionAttributesToUpdate.remove(name);
          }
        }
        else {
View Full Code Here

          synchronized (this.globalSessionAttributesToUpdate) {
            this.globalSessionAttributesToUpdate.remove(name);
          }
        }
        else {
          session.removeAttribute(name);
          synchronized (this.sessionAttributesToUpdate) {
            this.sessionAttributesToUpdate.remove(name);
          }
        }
      }
View Full Code Here

    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

  }

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

  protected Iterator getAttributeNames() {
    PortletSession session = getSession();
View Full Code Here

      request.getPortletSession().setAttribute(name, value, scope);
    }
    else {
      PortletSession session = request.getPortletSession(false);
      if (session != null) {
        session.removeAttribute(name, scope);
      }
    }
  }

  /**
 
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

    @Override
    public void removeValue(String name) {
        PortletSession session = request.getPortletSession(false);
        if (session != null) {
            session.removeAttribute(name, scope);
        }
    }

    @Override
    public Enumeration<String> getKeys() {
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.