Class DefaultImpExImportCUDHandler
- java.lang.Object
-
- de.hybris.platform.impex.jalo.imp.DefaultImpExImportCUDHandler
-
- All Implemented Interfaces:
ImpExImportCUDHandler
- Direct Known Subclasses:
SLImpexImportCUDHandler
public class DefaultImpExImportCUDHandler extends java.lang.Object implements ImpExImportCUDHandler
Default implementation ofImpExImportProcessorCUDinterface. This implementation holds legacy way of importing items with usage of Jalo layer.
-
-
Constructor Summary
Constructors Constructor Description DefaultImpExImportCUDHandler(ImpExImportReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Itemcreate(ComposedType targetType, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine)Process creation of new item.voiddelete(Item toRemove, ValueLine valueLine)Process delete operation.protected ItemdoCreate(ComposedType targetType, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine)protected voiddoRemove(Item toRemove)Do remove operation on passed as parameter item.protected voiddoUpdate(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine)Do update operation on passed as parameter item.protected voiddoUpdateReadOnlyAttributes(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine)Updates all attributes which are read-only but having an force write option manually (because they can not be processed by setAllAttributes).protected java.util.Map<java.lang.String,java.lang.Object>getSessionParameters(ValueLine valueLine)voidupdate(Item toUpdate, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine)Process update operation.
-
-
-
Constructor Detail
-
DefaultImpExImportCUDHandler
public DefaultImpExImportCUDHandler(ImpExImportReader reader)
-
-
Method Detail
-
delete
public void delete(Item toRemove, ValueLine valueLine) throws ConsistencyCheckException
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
protected void doRemove(Item toRemove) throws ConsistencyCheckException
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, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
Description 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, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
Updates 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, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
Do 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, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
Description 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
protected java.util.Map<java.lang.String,java.lang.Object> getSessionParameters(ValueLine valueLine)
-
doCreate
protected Item doCreate(ComposedType targetType, java.util.Map<java.lang.String,java.lang.Object> values, ValueLine valueLine) throws ImpExException
- Throws:
ImpExException
-
-