public class CustomerWrapper extends BaseWrapper implements APIWrapper<Customer>, APIUnwrapper<Customer>
| Modifier and Type | Field and Description |
|---|---|
protected List<CustomerAttributeWrapper> |
customerAttributes |
protected String |
emailAddress |
protected String |
firstName |
protected Long |
id |
protected String |
lastName |
context| Constructor and Description |
|---|
CustomerWrapper() |
| Modifier and Type | Method and Description |
|---|---|
List<CustomerAttributeWrapper> |
getCustomerAttributes() |
String |
getEmailAddress() |
String |
getFirstName() |
Long |
getId() |
String |
getLastName() |
void |
setCustomerAttributes(List<CustomerAttributeWrapper> customerAttributes) |
void |
setEmailAddress(String emailAddress) |
void |
setFirstName(String firstName) |
void |
setId(Long id) |
void |
setLastName(String lastName) |
Customer |
unwrap(javax.servlet.http.HttpServletRequest request,
org.springframework.context.ApplicationContext context) |
void |
wrapDetails(Customer model,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(Customer model,
javax.servlet.http.HttpServletRequest request) |
createElementWrappers, setApplicationContextprotected Long id
protected String firstName
protected String lastName
protected String emailAddress
protected List<CustomerAttributeWrapper> customerAttributes
public void wrapDetails(Customer model, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Customer>public void wrapSummary(Customer model, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<Customer>public Customer unwrap(javax.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext context)
unwrap in interface APIUnwrapper<Customer>public Long getId()
public void setId(Long id)
public String getFirstName()
public void setFirstName(String firstName)
public String getLastName()
public void setLastName(String lastName)
public String getEmailAddress()
public void setEmailAddress(String emailAddress)
public List<CustomerAttributeWrapper> getCustomerAttributes()
public void setCustomerAttributes(List<CustomerAttributeWrapper> customerAttributes)
Copyright © 2015. All Rights Reserved.