Package org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext

Examples of org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext.Scope


    private boolean invokeMethod(final RequestContext context, final String variable, final ObjectAdapter object, final ObjectAction action, final FormState entryState) {

        final ObjectAdapter[] parameters = getParameters(action, entryState);
        final String scopeName = context.getParameter("_" + SCOPE);
        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);
        return MethodsUtils.runMethod(context, action, object, parameters, variable, scope);
    }
View Full Code Here


            final StringBuffer buffer = new StringBuffer();

            while (iterator.hasNext()) {
                final ObjectAdapter element = iterator.next();
                final Scope scope = Scope.INTERACTION;
                final String elementId = context.mapObject(element, scope);
                if (exclude != null && context.getMappedObject(exclude) == element) {
                    continue;
                }
                final String title = element.titleString();
View Full Code Here

                    break;
                }
            }
        }

        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);
        MethodsUtils.runMethod(context, action, object, parameters, variableName, scope);
        request.popBlockContent();
    }
View Full Code Here

    private boolean invokeMethod(final RequestContext context, final String variable, final ObjectAdapter object, final ObjectAction action, final FormState entryState) {

        final ObjectAdapter[] parameters = getParameters(action, entryState);
        final String scopeName = context.getParameter("_" + SCOPE);
        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);
        return MethodsUtils.runMethod(context, action, object, parameters, variable, scope);
    }
View Full Code Here

        final RepeatMarker marker = request.createMarker();

        final String variable = request.getOptionalProperty(ELEMENT_NAME);
        final String scopeName = request.getOptionalProperty(SCOPE);
        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);
        final String rowClassesList = request.getOptionalProperty(ROW_CLASSES, ODD_ROW_CLASS + "|" + EVEN_ROW_CLASS);
        String[] rowClasses = new String[0];
        if (rowClassesList != null) {
            rowClasses = rowClassesList.split("[,|/]");
        }
View Full Code Here

                    break;
                }
            }
        }

        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);
        MethodsUtils.runMethod(context, action, object, parameters, variableName, scope);
        request.popBlockContent();
    }
View Full Code Here

        while (iterator.hasNext()) {
            final ObjectAdapter element = iterator.next();

            request.appendHtml("<li>");
            if (linkRow != null) {
                final Scope scope = linkRow == null ? Scope.INTERACTION : RequestContext.scope(linkRow.getScope());
                final String rowId = request.getContext().mapObject(element, scope);
                request.appendHtml("<a class=\"item-select\" href=\"" + linkRow.getForwardView() + "?" + linkRow.getVariable() + "=" + rowId + "\">");
            }
            request.appendAsHtmlEncoded(element.titleString());
            if (linkRow != null) {
View Full Code Here

        final RequestContext context = request.getContext();
        if (context.getVariable(name) != null) {
            request.skipUntilClose();
        } else {
            final String scopeName = request.getOptionalProperty(SCOPE);
            final Scope scope = RequestContext.scope(scopeName, Scope.SESSION);

            final String cookieName = request.getOptionalProperty("cookie", name);
            final String cookieValue = context.getCookie(cookieName);
            boolean hasObject;
            if (cookieValue != null) {
View Full Code Here

            format = new SimpleDateFormat(pattern);
        }

        final String name = request.getOptionalProperty(RESULT_NAME, fieldName);
        final String scopeName = request.getOptionalProperty(SCOPE);
        final Scope scope = RequestContext.scope(scopeName, Scope.REQUEST);

        process(request, object, field, format, name, scope);
    }
View Full Code Here

        final String name = request.getOptionalProperty(NAME);
        final String value = request.getOptionalProperty(VALUE);
        final String defaultTo = request.getOptionalProperty(DEFAULT);
        final String scopeName = request.getOptionalProperty(SCOPE);
        final boolean isClear = request.getOptionalProperty("action", "set").equals("clear");
        final Scope scope = RequestContext.scope(scopeName, isClear ? Scope.SESSION : Scope.REQUEST);
        process(request, name, value, defaultTo, isClear, scope);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.scimpi.dispatcher.context.RequestContext.Scope

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.