Package org.apache.cocoon.environment

Examples of org.apache.cocoon.environment.Session.removeAttribute()


                    }

                } else { // sublevels != 0
                    oldstate = (String)session.getAttribute(statekey + mylevel);
                    for (int i = mylevel + 1; i <= sublevels; i++) {
                        session.removeAttribute(statekey + i);
                        if (this.getLogger().isDebugEnabled()) {
                            getLogger().debug("Remove " + statekey + i);
                        }
                    }
                    session.setAttribute(statekey + mylevel, newstate);
View Full Code Here


                        session.setAttribute(key, val);
                    } else {
                        if (getLogger().isDebugEnabled()) {
                            getLogger().debug("rolling back ['" + key + "']");
                        }
                        session.removeAttribute(key);
                    }
                }
            }
        }
        if (getLogger().isDebugEnabled()) {
View Full Code Here

        String parent_uri =
            (String) session.getAttribute(
                "org.apache.lenya.cms.cocoon.acting.TaskAction.parent_uri");
        HashMap actionMap = new HashMap();
        actionMap.put("parent_uri", parent_uri);
        session.removeAttribute("org.apache.lenya.cms.cocoon.acting.TaskAction.parent_uri");

        return actionMap;
    }
}
View Full Code Here

            "org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction.parent_uri");
  getLogger().info(".act(): Child added");

  HashMap actionMap = new HashMap();
  actionMap.put("parent_uri", parent_uri);
  session.removeAttribute(
            "org.apache.lenya.cms.cocoon.acting.ParentChildCreatorAction.parent_uri");

  return actionMap;
    }
View Full Code Here

    }

    public void removeAttribute(String key) {
        final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
        if ( session != null ) {
            session.removeAttribute( this.attributePrefix + key);
        }
    }

    public Iterator getAttributeNames() {
        final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
View Full Code Here

           
            this.saveBasket(basket);
           
        } else if (event instanceof RefreshBasketEvent) {
           
            session.removeAttribute(ALL_BASKETS_KEY);         
           
        } else if (event instanceof CleanBasketEvent) {
           
            this.processCleanBasketEvent((CleanBasketEvent)event, session);
           
View Full Code Here

           
            this.processRemoveItemEvent((RemoveItemEvent)event);
           
        } else if (event instanceof RefreshBasketEvent) {
           
            session.removeAttribute(ALL_BRIEFCASES_KEY);         
           
        } else if (event instanceof CleanBriefcaseEvent) {
           
            this.processCleanBriefcaseEvent((CleanBriefcaseEvent)event, session);
           
View Full Code Here

                    }

                } else { // sublevels != 0
                    oldstate = (String)session.getAttribute(statekey + mylevel);
                    for (int i = mylevel + 1; i <= sublevels; i++) {
                        session.removeAttribute(statekey + i);
                        if (this.getLogger().isDebugEnabled()) {
                            getLogger().debug("Remove " + statekey + i);
                        }
                    }
                    session.setAttribute(statekey + mylevel, newstate);
View Full Code Here

    }

    public void removeAttribute(String key) {
        final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
        if ( session != null ) {
            session.removeAttribute( this.attributePrefix + key);
        }
    }

    public Iterator getAttributeNames() {
        final Session session = ObjectModelHelper.getRequest(this.objectModel).getSession(false);
View Full Code Here

    }
   
    public void setAspectData(Aspectalizable owner, String aspectName, Object data) {
        final Session session = ContextHelper.getRequest(this.context).getSession();
        if ( data == null ) {
            session.removeAttribute( this.getKey( owner, aspectName) );
        } else {
            session.setAttribute( this.getKey( owner, aspectName), data );
        }
    }
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.