Package org.internna.ossmoney.model

Examples of org.internna.ossmoney.model.Widget.persist()


    Dashboard dashboard = new Dashboard();
    dashboard.setColumns(3);
    dashboard.persist();
    Widget widget = Widget.createInstance("accounts.favorites.title", 1, 1, "/financial/accounts/favorites", null);
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.remainder.title", 1, 2, "/financial/widgets/remainder/", "30");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.networth.title", 1, 3, "/financial/widgets/networth/", "5");
    dashboard.addWidget(widget);
View Full Code Here


    Widget widget = Widget.createInstance("accounts.favorites.title", 1, 1, "/financial/accounts/favorites", null);
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.remainder.title", 1, 2, "/financial/widgets/remainder/", "30");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.networth.title", 1, 3, "/financial/widgets/networth/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("budget.widget.title", 2, 1, "/financial/budget/graph/", "expanded");
    dashboard.addWidget(widget);
View Full Code Here

    widget = Widget.createInstance("widgets.remainder.title", 1, 2, "/financial/widgets/remainder/", "30");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.networth.title", 1, 3, "/financial/widgets/networth/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("budget.widget.title", 2, 1, "/financial/budget/graph/", "expanded");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesbycategory.dashtitle", 2, 2, "/financial/widgets/expenses_by_category/", "last_quarter");
    dashboard.addWidget(widget);
View Full Code Here

    widget = Widget.createInstance("widgets.networth.title", 1, 3, "/financial/widgets/networth/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("budget.widget.title", 2, 1, "/financial/budget/graph/", "expanded");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesbycategory.dashtitle", 2, 2, "/financial/widgets/expenses_by_category/", "last_quarter");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesovertime.title", 2, 3, "/financial/widgets/expenses_over_time/", "5");
    dashboard.addWidget(widget);
View Full Code Here

    widget = Widget.createInstance("budget.widget.title", 2, 1, "/financial/budget/graph/", "expanded");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesbycategory.dashtitle", 2, 2, "/financial/widgets/expenses_by_category/", "last_quarter");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesovertime.title", 2, 3, "/financial/widgets/expenses_over_time/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.incomevsexpenses.title", 3, 1, "/financial/widgets/income_vs_expenses/", "previous_month");
    dashboard.addWidget(widget);
View Full Code Here

    widget = Widget.createInstance("accounts.expensesbycategory.dashtitle", 2, 2, "/financial/widgets/expenses_by_category/", "last_quarter");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.expensesovertime.title", 2, 3, "/financial/widgets/expenses_over_time/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.incomevsexpenses.title", 3, 1, "/financial/widgets/income_vs_expenses/", "previous_month");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.incomevsexpensesovertime.title", 3, 2, "/financial/widgets/income_vs_expenses_over_time/", "11");
    dashboard.addWidget(widget);
View Full Code Here

    widget = Widget.createInstance("accounts.expensesovertime.title", 2, 3, "/financial/widgets/expenses_over_time/", "5");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("accounts.incomevsexpenses.title", 3, 1, "/financial/widgets/income_vs_expenses/", "previous_month");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.incomevsexpensesovertime.title", 3, 2, "/financial/widgets/income_vs_expenses_over_time/", "11");
    dashboard.addWidget(widget);
    widget.persist();
    dashboard.merge();
    return dashboard;
View Full Code Here

    widget = Widget.createInstance("accounts.incomevsexpenses.title", 3, 1, "/financial/widgets/income_vs_expenses/", "previous_month");
    dashboard.addWidget(widget);
    widget.persist();
    widget = Widget.createInstance("widgets.incomevsexpensesovertime.title", 3, 2, "/financial/widgets/income_vs_expenses_over_time/", "11");
    dashboard.addWidget(widget);
    widget.persist();
    dashboard.merge();
    return dashboard;
  }

  protected Budget createBudget(UserDetails user) {
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.