Package com.cfinkel.reports.wrappers

Examples of com.cfinkel.reports.wrappers.Input


    public static Map<Input, Object> convertParameterMapToInputs(Map<String, String[]> parameterMap, Report report) throws InvalidInputException {
        Map<Input,Object> inputMap = new HashMap<Input,Object>();
        // convert map to inputs:
        for (String  key : report.getAllInputs().keySet()) {
            Input input = report.getAllInputs().get(key);
            Object valueObj = parameterMap.get(input.get().getName());

            if (valueObj == null) {
                throw new InvalidInputException("required request not present");
            }
            inputMap.put(input,valueObj);
View Full Code Here


        HttpServletRequest request = setLocalThreadInfo();

        HttpSession session = WebContextFactory.get().getSession();
        ReportSessionInfo reportSessionInfo = getReportSessionInfo(reportPath,session);

        Input input = reportSessionInfo.getReport().getAllInputs().get(parentInputName);
        if (input == null)
            throw new Exception("No input found with name " + parentInputName );

        Input dependentInput = input.getDependents().get(dependentName);
        if (dependentInput == null)
            throw new Exception("Dependent input is null");

        setRequestAttributes(parentInputName, parentValue, request, reportSessionInfo, dependentInput);
View Full Code Here

TOP

Related Classes of com.cfinkel.reports.wrappers.Input

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.