Package org.apache.cocoon.environment

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


        request.removeAttribute(id);

        Session session = request.getSession(false);

        if (session!=null) {
            session.removeAttribute(id);
        }
    }

    /**
     * Saves the form in the request or session.
View Full Code Here


        request.removeAttribute(id);

        Session session = request.getSession(false);

        if (session!=null) {
            session.removeAttribute(id);
        }
    }

    /**
     * Saves the form in the request or session.
View Full Code Here

                    }
                    this.addRole(role, pars, handler);
                } else {
                    role = null;
                }
                session.removeAttribute(SESSION_CONTEXT_ATTRIBUTE_ADMIN_ROLE);
            }

            if (state.equals("delrole") == true) {
                try {
                    String role = request.getParameter(REQ_PARAMETER_ROLE);
View Full Code Here

                                this.deleteUser(role, DOMUtil.getValueOf(users.item(i), "ID"), null, handler);
                            }
                        }
                        this.deleteRole(role, null, handler);
                    }
                    session.removeAttribute(SESSION_CONTEXT_ATTRIBUTE_ADMIN_ROLE);
                } catch (javax.xml.transform.TransformerException local) {
                    throw new ProcessingException("TransformerException: " + local, local);
                }
            }
View Full Code Here

                                pars.setParameter(current, request.getParameter(current));
                            }
                            this.changeUser(role, id, pars, handler);
                        }
                    }
                    session.removeAttribute(SESSION_CONTEXT_ATTRIBUTE_ADMIN_ROLE);
                }
                if (addingNewUserFailed == false) {
                    state = (isAdmin == true ? "adduser" : "seluser");
                } else {
                    state = "erruser";
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

        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

            getLogger().debug(statekey+"="+newstate);

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

        getLogger().debug(statekey+"="+newstate);

    } else { // sublevels != 0
        oldstate = (String) session.getAttribute( statekey + Integer.toString(mylevel) );
        for (int i=mylevel+1; i<=sublevels; i++) {
      session.removeAttribute( statekey+Integer.toString(i) );
      getLogger().debug("remove "+statekey+Integer.toString(i));
        }
        session.setAttribute( statekey + Integer.toString(mylevel), newstate);
        getLogger().debug(statekey+Integer.toString(mylevel)+"="+newstate);
    }
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

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.