Search in sources :

Example 11 with Customer

use of eu.ggnet.dwoss.customer.ee.entity.Customer in project dwoss by gg-net.

the class CustomerServiceBean method asUiCustomers.

@Override
public List<UiCustomer> asUiCustomers(String company, String firstName, String lastName, String email, boolean appendWildcard) {
    L.debug("asUiCustomers called with company={},firstName={},lastName={},email={},wildcard={}", company, firstName, lastName, email, appendWildcard);
    List<UiCustomer> customers = new ArrayList<>();
    for (Customer customer : customerEao.find(company, firstName, lastName, email, appendWildcard)) {
        customers.add(asUiCustomer(convert(customer)));
    }
    return customers;
}
Also used : UiCustomer(eu.ggnet.dwoss.customer.opi.UiCustomer) Customer(eu.ggnet.dwoss.customer.ee.entity.Customer) OldCustomer(eu.ggnet.dwoss.customer.ee.priv.OldCustomer) UiCustomer(eu.ggnet.dwoss.customer.opi.UiCustomer)

Aggregations

Customer (eu.ggnet.dwoss.customer.ee.entity.Customer)11 OldCustomer (eu.ggnet.dwoss.customer.ee.priv.OldCustomer)5 CustomerGenerator (eu.ggnet.dwoss.customer.ee.assist.gen.CustomerGenerator)3 Test (org.junit.Test)3 MandatorMetadata (eu.ggnet.dwoss.customer.ee.entity.MandatorMetadata)2 UiCustomer (eu.ggnet.dwoss.customer.opi.UiCustomer)2 CustomerAgent (eu.ggnet.dwoss.customer.ee.CustomerAgent)1 CustomerEao (eu.ggnet.dwoss.customer.ee.eao.CustomerEao)1 Communication (eu.ggnet.dwoss.customer.ee.entity.Communication)1 Company (eu.ggnet.dwoss.customer.ee.entity.Company)1 Contact (eu.ggnet.dwoss.customer.ee.entity.Contact)1 SearchField (eu.ggnet.dwoss.customer.ee.entity.Customer.SearchField)1 AddressLabel (eu.ggnet.dwoss.customer.ee.entity.projection.AddressLabel)1 PicoCustomer (eu.ggnet.dwoss.customer.ee.entity.projection.PicoCustomer)1 CustomerTaskService (eu.ggnet.dwoss.customer.ui.CustomerTaskService)1 CustomerContinue (eu.ggnet.dwoss.customer.ui.neo.CustomerSimpleController.CustomerContinue)1 DefaultCustomerSalesdata (eu.ggnet.dwoss.mandator.api.value.DefaultCustomerSalesdata)1 Css (eu.ggnet.dwoss.rules.Css)1 CustomerFlag (eu.ggnet.dwoss.rules.CustomerFlag)1 HtmlPane (eu.ggnet.dwoss.util.HtmlPane)1