Package javax.portlet

Examples of javax.portlet.PortletSession.removeAttribute()


    }
    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


        if (session != null) {
          if (request.getParameter(IMPLICIT_MODEL_RENDER_PARAMETER) != null) {
            implicitModel = (ExtendedModelMap) session.getAttribute(IMPLICIT_MODEL_SESSION_ATTRIBUTE);
          }
          else {
            session.removeAttribute(IMPLICIT_MODEL_SESSION_ATTRIBUTE);
          }
        }
      }
      if (handler.getClass().getAnnotation(SessionAttributes.class) != null) {
        // Always prevent caching in case of session attribute management.
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

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

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

        AccountRequestAttrCollection attrs =
            (AccountRequestAttrCollection)session.getAttribute("attrs");
        if (attrs != null) {
            log.info("Clear Account Request Form");
            session.removeAttribute("attrs");
        }

        session.setAttribute(ACCOUNT_TYPE, AccountRequest.TYPE_PASSWORD);

        setNextState(req, NEW_REQUEST_PAGE);
View Full Code Here

        attrMap.put(ACCOUNT_TYPE, account_type);

        accountService.saveAccount(attrMap);

        // remove attributes from session scope
        session.removeAttribute("attrs");

        res.setRenderParameter("message", "RequestSuccess");

        setNextState(req, SUBMITTED_REQUEST_JSP);
        log.debug("Exit submitRequest");
View Full Code Here

    public void clearRequest(ActionFormEvent event) {
        log.debug("Entering clearRequest");
        PortletRequest req = event.getActionRequest();
        PortletSession session = req.getPortletSession();

        session.removeAttribute("attrs");
        session.removeAttribute(ACCOUNT_TYPE);

        setNextState(req, NEW_REQUEST_PAGE);
        log.debug("Exit clearRequest");
    }
View Full Code Here

        log.debug("Entering clearRequest");
        PortletRequest req = event.getActionRequest();
        PortletSession session = req.getPortletSession();

        session.removeAttribute("attrs");
        session.removeAttribute(ACCOUNT_TYPE);

        setNextState(req, NEW_REQUEST_PAGE);
        log.debug("Exit clearRequest");
    }
View Full Code Here

    // in this request. If it turns out that we need to show the form view again,
    // we'll re-bind the form object to the portlet session.
    if (logger.isDebugEnabled()) {
      logger.debug("Removing form session attribute [" + formAttrName + "]");
    }
    session.removeAttribute(formAttrName);

    // Check the command object to make sure its valid
    if (!checkCommand(sessionFormObject)) {
      throw new PortletSessionRequiredException("Object found in session does not match commandClass");
    }
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.