Class DefaultImpExImportCUDHandler
java.lang.Object
de.hybris.platform.impex.jalo.imp.DefaultImpExImportCUDHandler
- All Implemented Interfaces:
ImpExImportCUDHandler
- Direct Known Subclasses:
SLImpexImportCUDHandler
Default implementation of
ImpExImportProcessorCUD interface. This implementation holds legacy way of
importing items with usage of Jalo layer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProcess creation of new item.voidProcess delete operation.protected Itemprotected voidDo remove operation on passed as parameter item.protected voidDo update operation on passed as parameter item.protected voidUpdates all attributes which are read-only but having an force write option manually (because they can not be processed by setAllAttributes).getSessionParameters(ValueLine valueLine) voidProcess update operation.
-
Constructor Details
-
DefaultImpExImportCUDHandler
-
-
Method Details
-
delete
Description copied from interface:ImpExImportCUDHandlerProcess delete operation.- Specified by:
deletein interfaceImpExImportCUDHandler- Parameters:
toRemove- Item to removevalueLine- the value line- Throws:
ConsistencyCheckException- the consistency check exception
-
doRemove
Do remove operation on passed as parameter item.- Parameters:
toRemove- Item to remove- Throws:
ConsistencyCheckException- the consistency check exception
-
update
public void update(Item toUpdate, Map<String, Object> values, ValueLine valueLine) throws ImpExExceptionDescription copied from interface:ImpExImportCUDHandlerProcess update operation.- Specified by:
updatein interfaceImpExImportCUDHandler- Parameters:
toUpdate- Item to updatevalues- the map of Item values where key is attribute name and value is new value to updatevalueLine- the value line- Throws:
ImpExException- the ImpEx exception
-
doUpdateReadOnlyAttributes
protected void doUpdateReadOnlyAttributes(Item toUpdate, Map<String, Object> values, ValueLine valueLine) throws ImpExExceptionUpdates all attributes which are read-only but having an force write option manually (because they can not be processed by setAllAttributes).- Parameters:
toUpdate- the to updatevalues- the values- Throws:
ImpExException
-
doUpdate
protected void doUpdate(Item toUpdate, Map<String, Object> values, ValueLine valueLine) throws ImpExExceptionDo update operation on passed as parameter item.- Parameters:
toUpdate- the to updatevalues- the valuesvalueLine- the value line- Throws:
ImpExException- the imp ex exception
-
create
public Item create(ComposedType targetType, Map<String, Object> values, ValueLine valueLine) throws ImpExExceptionDescription copied from interface:ImpExImportCUDHandlerProcess creation of new item.- Specified by:
createin interfaceImpExImportCUDHandler- Parameters:
targetType- the target typevalues- the map of valuesvalueLine- the value line- Returns:
- the item
- Throws:
ImpExException- the ImpEx exception
-
getSessionParameters
-
doCreate
protected Item doCreate(ComposedType targetType, Map<String, Object> values, ValueLine valueLine) throws ImpExException- Throws:
ImpExException
-