Package org.company.recordshop.domain

Examples of org.company.recordshop.domain.Customer


  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(SimpleCustomerDto object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here


  /**
   * {@inheritDoc}
   */
  public FullCustomerDto readCustomerAsFullCustomerDto(Long id) {
    Customer result = customerServiceModelDomainService.readCustomer(id);
    return (result == null) ? null : fullCustomerDtoTranslator
        .toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public CustomerWithOrdersAndOrderLines readCustomerAsCustomerWithOrdersAndOrderLines(
      Long id) {
    Customer result = customerServiceModelDomainService.readCustomer(id);
    return (result == null)
        ? null
        : customerWithOrdersAndOrderLinesTranslator.toDto(result);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateCustomer(FullCustomerDto object) {
    Customer domainObject = customerServiceModelDomainService
        .readCustomer(object.getId());
    fullCustomerDtoTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateCustomer(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void updateCustomer(CustomerWithOrdersAndOrderLines object) {
    Customer domainObject = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerWithOrdersAndOrderLinesTranslator.fromDto(object, domainObject);
    customerServiceModelDomainService.updateCustomer(domainObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(FullCustomerDto object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void deleteCustomer(CustomerWithOrdersAndOrderLines object) {
    Assert.notNull(object, "argument [object] may not be null");
    Customer existing = customerServiceModelDomainService
        .readCustomer(object.getId());
    customerServiceModelDomainService.deleteCustomer(existing);
  }
View Full Code Here

  public void addToOrders(SimpleCustomerDto whole, OrderDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    Order partBusinessObject = customerServiceModelDomainService
        .readOrder(part.getId());
    Customer mainBusinessObject = customerServiceModelDomainService
        .readCustomer(whole.getId());
    customerServiceModelDomainService.addToOrders(mainBusinessObject,
        partBusinessObject);
    return;
  }
View Full Code Here

  public void removeFromOrders(SimpleCustomerDto whole, OrderDto part) {
    Assert.notNull(whole, "argument [whole] may not be null");
    Assert.notNull(part, "argument [part] may not be null");
    Order partObject = customerServiceModelDomainService.readOrder(part
        .getId());
    Customer wholeObject = customerServiceModelDomainService
        .readCustomer(whole.getId());
    customerServiceModelDomainService.removeFromOrders(wholeObject,
        partObject);
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public List<OrderNumberAndDateDto> getOrders(SimpleCustomerDto source) {
    Assert.notNull(source, "argument [source] may not be null");
    Customer businessSource = customerServiceModelDomainService
        .readCustomer(source.getId());
    List<Order> parts = customerServiceModelDomainService
        .getOrders(businessSource);
    List<OrderNumberAndDateDto> result = new ArrayList<OrderNumberAndDateDto>();
    for (Order element : parts) {
View Full Code Here

TOP

Related Classes of org.company.recordshop.domain.Customer

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.