Class PhoneWrapper
java.lang.Object
org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
com.broadleafcommerce.rest.api.wrapper.PhoneWrapper
- All Implemented Interfaces:
Serializable,org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Phone>,org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Phone>,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class PhoneWrapper
extends org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
implements org.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Phone>, org.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Phone>
This is a JAXB wrapper around Phone.
User: Elbert Bautista
Date: 4/24/12
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longprotected Booleanprotected Booleanprotected StringFields inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
context -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()voidvoidsetIsActive(Boolean isActive) voidsetIsDefault(Boolean isDefault) voidsetPhoneNumber(String phoneNumber) org.broadleafcommerce.profile.core.domain.Phoneunwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext) voidwrapDetails(org.broadleafcommerce.profile.core.domain.Phone model, jakarta.servlet.http.HttpServletRequest request) voidwrapSummary(org.broadleafcommerce.profile.core.domain.Phone model, jakarta.servlet.http.HttpServletRequest request) Methods inherited from class org.broadleafcommerce.common.rest.api.wrapper.BaseWrapper
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapper
-
Field Details
-
id
-
phoneNumber
-
isActive
-
isDefault
-
-
Constructor Details
-
PhoneWrapper
public PhoneWrapper()
-
-
Method Details
-
wrapDetails
public void wrapDetails(org.broadleafcommerce.profile.core.domain.Phone model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapDetailsin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Phone>
-
wrapSummary
public void wrapSummary(org.broadleafcommerce.profile.core.domain.Phone model, jakarta.servlet.http.HttpServletRequest request) - Specified by:
wrapSummaryin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIWrapper<org.broadleafcommerce.profile.core.domain.Phone>
-
unwrap
public org.broadleafcommerce.profile.core.domain.Phone unwrap(jakarta.servlet.http.HttpServletRequest request, org.springframework.context.ApplicationContext appContext) - Specified by:
unwrapin interfaceorg.broadleafcommerce.common.rest.api.wrapper.APIUnwrapper<org.broadleafcommerce.profile.core.domain.Phone>
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getPhoneNumber
- Returns:
- the phoneNumber
-
setPhoneNumber
- Parameters:
phoneNumber- the phoneNumber to set
-
getIsActive
- Returns:
- the isActive
-
setIsActive
- Parameters:
isActive- the isActive to set
-
getIsDefault
- Returns:
- the isDefault
-
setIsDefault
- Parameters:
isDefault- the isDefault to set
-