Package org.springframework.nanotrader.service.domain

Examples of org.springframework.nanotrader.service.domain.Account


public class AccountController extends BaseController {
 
  @RequestMapping(value = "/account/{id}", method = RequestMethod.GET)
  public ResponseEntity<Account> find(@PathVariable( "id" ) final Integer id) {
    this.getSecurityUtil().checkAccount(id);
    Account accountResponse = this.getTradingServiceFacade().findAccount(id);
    return new ResponseEntity<Account>(accountResponse, getNoCacheHeaders(),
        HttpStatus.OK);
   
  }
View Full Code Here


    public Account findAccount(Integer id) {
        if (log.isDebugEnabled()) {
            log.debug("TradingServiceFacade.findAccount: id=" + id);
        }
       
        Account accountResponse = new Account();
        org.springframework.nanotrader.data.domain.Account account = tradingService.findAccount(id);
        if (account == null) {
            throw new NoRecordsFoundException();
        }
       
View Full Code Here

TOP

Related Classes of org.springframework.nanotrader.service.domain.Account

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.