Examples of belongsTo()


Examples of org.internna.ossmoney.model.Bill.belongsTo()

    @RequestMapping(value = "/pay", method = RequestMethod.POST)
    public String pay(Long id, Long origin, Double amount, Date operationDate, ModelMap modelMap) {
      UserDetails user = UserDetails.findCurrentUser();
      Bill bill = Bill.findBill(id);
      if (bill.belongsTo(user)) {
        accountService.payBill(user, bill, origin, amount, operationDate);
      }
      return dashboard.index(modelMap);
    }
View Full Code Here

Examples of org.internna.ossmoney.model.Investment.belongsTo()

      UserDetails user = UserDetails.findCurrentUser();
      String currency = "EUR";
      Investment investment = Investment.findInvestment(id);
      Set<InvestmentPrice> prices = new TreeSet<InvestmentPrice>();
      Set<InvestmentPrice> datedPrices = new TreeSet<InvestmentPrice>();
      if (investment.belongsTo(user)) {
        if (investment.getLocale() != null) {
          Locale locale = investment.getLocale();
          Currency investmentCurrency = Currency.getInstance(locale);
          currency = investmentCurrency.getCurrencyCode();
        }
View Full Code Here

Examples of org.internna.ossmoney.model.Investment.belongsTo()

      InvestmentPrice price = InvestmentPrice.findInvestmentPrice(priceId);
      if (price == null) {
        price = new InvestmentPrice();
        investment.addPrice(price);
      }
      if ((investment != null) && investment.belongsTo(user) && price.belongsTo(investment)) {
        price.setPrice(amount);
        price.setUpdateTime(operationDate);
        if (price.getId() != null) {
          price.merge();
        } else {
View Full Code Here

Examples of org.internna.ossmoney.model.InvestmentPrice.belongsTo()

      InvestmentPrice price = InvestmentPrice.findInvestmentPrice(priceId);
      if (price == null) {
        price = new InvestmentPrice();
        investment.addPrice(price);
      }
      if ((investment != null) && investment.belongsTo(user) && price.belongsTo(investment)) {
        price.setPrice(amount);
        price.setUpdateTime(operationDate);
        if (price.getId() != null) {
          price.merge();
        } else {
View Full Code Here

Examples of org.moparscape.msc.gs.event.DelayedEvent.belongsTo()

  public void removePlayersEvents(Player player) {
    try {
      Iterator<DelayedEvent> iterator = events.iterator();
      while (iterator.hasNext()) {
        DelayedEvent event = iterator.next();
        if (event.belongsTo(player)) {
          iterator.remove();
        }
      }
    } catch (Exception e) {
      Logger.println("Error @ removePlayer, IP address:"
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.