Package net.sf.wfnm

Examples of net.sf.wfnm.NavigationContext


     * Notify to the WFNM framework that a page has been reached
     *
     * @param request the HttpServletRequest
     */
    protected void notifyReachedPage(HttpServletRequest request) {
        NavigationContext navigationContext = NavigationContextFactory.getInstance();

        try {
            if (!navigationContext.isIgnorePage()) {
                AttributeContainer container = (AttributeContainer) HttpSessionWrapper.wrapItIfNecessary(request.getSession());

                if (Config.getInstance().isEnabled()) {
                    if (navigationContext.isFrameworkToReset()) {
                        NavigationManagerFactory.resetInstance(container);
                    } else {
                        navigationContext.notifyPage(container, urlCalculator.calculateUrl(request));
                    }
                }

                if (Config.getInstance().isStatsEnabled()) {
                    StatsFactory.getInstance().logStatistic(container);
View Full Code Here


     *
     * @throws JspException if the parameters of this tags are wrong
     */
    public int doStartTag() throws JspException {
        if (Config.getInstance().isEnabled()) {
            NavigationContext navigationContext = NavigationContextFactory.getInstance();
            navigationContext.setWebflowName(name);

            if ((forcePrevious != null) && (forcePrevious.trim().length() > 0)) {
                navigationContext.setPreviousWebflowToForce(forcePrevious);
            }

            int ownership = 0;

            if ((owner != null) && (owner.length() > 0)) {
                ownership = StringUtils.findIgnoreCase(owner, NavigationManager.OWNERSHIP_DESC);

                if (ownership < 0) {
                    throw new JspException("The ownership must be included in " +
                        Arrays.asList(NavigationManager.OWNERSHIP_DESC).toString());
                }
            } else {
                ownership = Config.getInstance().getDefaultOwnership();
            }

            navigationContext.setDefaultOwnership(ownership);
        }

        return SKIP_BODY;
    }
View Full Code Here

TOP

Related Classes of net.sf.wfnm.NavigationContext

Copyright © 2018 www.massapicom. 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.