Package com.serotonin.m2m2.i18n

Examples of com.serotonin.m2m2.i18n.ProcessResult.addData()


        ReportDao reportDao = new ReportDao();
        User user = Common.getUser();

        response.addData("points", getReadablePoints());
        response.addData("mailingLists", new MailingListDao().getMailingLists());
        response.addData("users", new UserDao().getUsers());
        if(user.isAdmin()) {
          response.addData("reports", reportDao.getReports());
          response.addData("instances", getReportInstances(user));
      }
        else {
View Full Code Here


        //Get the Full VO for the export
        List<WatchList> vos = new ArrayList<WatchList>();
      vos.add(wl);
        data.put(WatchListEmportDefinition.elementId, vos);
       
        result.addData("json", EmportDwr.export(data, 3));
       
      return result;
    }
   
}
View Full Code Here

            pc.setDisplayControls(displayControls);
            pc.setLocation(x, y);

            pc.validateDataPoint(user, false);

            response.addData("x", x);
            response.addData("y", y);
        }

        return response;
    }
View Full Code Here

            pc.setLocation(x, y);

            pc.validateDataPoint(user, false);

            response.addData("x", x);
            response.addData("y", y);
        }

        return response;
    }
View Full Code Here

        view.validate(result);

        if (!result.getHasMessages()) {
            view.setUserId(user.getId());
            new GraphicalViewDao().saveView(view);
            result.addData("view", view);
        }

        return result;
    }
View Full Code Here

            public int compare(MaintenanceEventVO m1, MaintenanceEventVO m2) {
                return m1.getDescription().translate(translations)
                        .compareTo(m1.getDescription().translate(translations));
            }
        });
        response.addData("events", events);

        List<IntStringPair> dataSources = new ArrayList<IntStringPair>();
        for (DataSourceVO<?> ds : new DataSourceDao().getDataSources())
            dataSources.add(new IntStringPair(ds.getId(), ds.getName()));
        response.addData("dataSources", dataSources);
View Full Code Here

        response.addData("events", events);

        List<IntStringPair> dataSources = new ArrayList<IntStringPair>();
        for (DataSourceVO<?> ds : new DataSourceDao().getDataSources())
            dataSources.add(new IntStringPair(ds.getId(), ds.getName()));
        response.addData("dataSources", dataSources);

        return response;
    }

    @DwrPermission(admin = true)
View Full Code Here

            MaintenanceEventRT rt = RTMDefinition.instance.getRunningMaintenanceEvent(me.getId());
            if (rt != null)
                activated = rt.isEventActive();
        }

        response.addData("me", me);
        response.addData("activated", activated);

        return response;
    }
View Full Code Here

            if (rt != null)
                activated = rt.isEventActive();
        }

        response.addData("me", me);
        response.addData("activated", activated);

        return response;
    }

    @DwrPermission(admin = true)
View Full Code Here

        e.validate(response);

        // Save the maintenance event
        if (!response.getHasMessages()) {
            RTMDefinition.instance.saveMaintenanceEvent(e);
            response.addData("meId", e.getId());
        }

        return response;
    }
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.