public class DefaultCustomerCreateController extends AbstractCsWidgetController implements CustomerCreateController
CustomerCreateController interface.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
INTERCEPTOR_EXCEPTION_MESSAGE_PREFIX_END |
CONTROLLER_CONTEXT| Constructor and Description |
|---|
DefaultCustomerCreateController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeCreateNewCustomer(ObjectValueContainer customerObjectValueContainer,
java.lang.String customerTypeCode) |
protected CustomerModel |
createNewCustomer(ObjectValueContainer customerObjectValueContainer) |
TypedObject |
createNewCustomer(ObjectValueContainer customerObjectValueContainer,
java.lang.String customerTypeCode)
Create a new customer.
|
void |
dispatchEvent(java.lang.String context,
java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> data)
Notifies all event acceptors which are registered for events with the context code context.
|
protected PropertyDescriptor |
findPropertyDescriptor(ObjectValueContainer container,
java.lang.String qualifier) |
protected java.lang.String |
generateNewCustomerUid(ObjectValueContainer customerObjectValueContainer,
java.lang.String customerTypeCode) |
java.util.Set<java.lang.String> |
getAutoFilledPropertyQualifiers()
Get the set of property qualifiers that the CustomerCreateController implementation will auto-fill if not
supplied.
|
protected CommonI18NService |
getCommonI18NService() |
protected CustomerAccountService |
getCustomerAccountService() |
protected I18NService |
getI18NService() |
protected PropertyDescriptor |
getPropertyDescriptor(java.util.Set<PropertyDescriptor> properties,
java.lang.String qualifier) |
protected KeyGenerator |
getUidKeyGenerator() |
void |
setCommonI18NService(CommonI18NService commonI18NService) |
void |
setCustomerAccountService(CustomerAccountService customerAccountService) |
void |
setI18NService(I18NService i18NService) |
protected void |
setModelLocalizedValue(ItemModel model,
java.lang.String qualifier,
java.lang.String languageIso,
java.lang.Object value) |
protected void |
setModelSingleValue(ItemModel model,
java.lang.String qualifier,
java.lang.Object value) |
void |
setUidKeyGenerator(KeyGenerator uidKeyGenerator) |
getCockpitTypeService, getModelService, setCockpitTypeService, setModelServiceaddCockpitEventAcceptor, dispatchEvent, getAcceptors, removeCockpitEventAcceptor, setCockpitEventAcceptorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCockpitEventAcceptor, removeCockpitEventAcceptor, setCockpitEventAcceptorsprotected static final java.lang.String INTERCEPTOR_EXCEPTION_MESSAGE_PREFIX_END
protected KeyGenerator getUidKeyGenerator()
public void setUidKeyGenerator(KeyGenerator uidKeyGenerator)
protected I18NService getI18NService()
public void setI18NService(I18NService i18NService)
protected CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
protected CustomerAccountService getCustomerAccountService()
public void setCustomerAccountService(CustomerAccountService customerAccountService)
public void dispatchEvent(java.lang.String context,
java.lang.Object source,
java.util.Map<java.lang.String,java.lang.Object> data)
WidgetControllerdispatchEvent in interface WidgetControllerdispatchEvent in class AbstractWidgetControllercontext - event contextsource - event sourcedata - parameters to be be passed to registered listenerspublic java.util.Set<java.lang.String> getAutoFilledPropertyQualifiers()
CustomerCreateControllergetAutoFilledPropertyQualifiers in interface CustomerCreateControllerpublic TypedObject createNewCustomer(ObjectValueContainer customerObjectValueContainer, java.lang.String customerTypeCode) throws DuplicateUidException, ValueHandlerException
CustomerCreateControllercreateNewCustomer in interface CustomerCreateControllercustomerObjectValueContainer - container of values for the customercustomerTypeCode - type code for the customerValueHandlerException - thrown on errorDuplicateUidExceptionprotected CustomerModel createNewCustomer(ObjectValueContainer customerObjectValueContainer)
protected void setModelSingleValue(ItemModel model, java.lang.String qualifier, java.lang.Object value) throws AttributeNotSupportedException
AttributeNotSupportedExceptionprotected void setModelLocalizedValue(ItemModel model, java.lang.String qualifier, java.lang.String languageIso, java.lang.Object value) throws AttributeNotSupportedException
AttributeNotSupportedExceptionprotected PropertyDescriptor getPropertyDescriptor(java.util.Set<PropertyDescriptor> properties, java.lang.String qualifier)
protected void beforeCreateNewCustomer(ObjectValueContainer customerObjectValueContainer, java.lang.String customerTypeCode)
protected java.lang.String generateNewCustomerUid(ObjectValueContainer customerObjectValueContainer, java.lang.String customerTypeCode)
protected PropertyDescriptor findPropertyDescriptor(ObjectValueContainer container, java.lang.String qualifier)
Copyright © 2018 SAP SE. All Rights Reserved.