Package de.hybris.platform.util
Class CoreImpExConstants
java.lang.Object
de.hybris.platform.util.CoreImpExConstants
Specifies constants for ImpEx module which are also used by classes of core module, especially
Order and
LinkManager.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSessionContextproperty to make link manager skip changing existing links during LinkManager.setLinkedItems(SessionContext, Item, boolean, String, Language, List).static final StringSessionContextproperty to signal that all item creations or attribute settings are done by an import process of ImpEx. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CTX_DONT_CHANGE_EXISTING_LINKS
SessionContextproperty to make link manager skip changing existing links during LinkManager.setLinkedItems(SessionContext, Item, boolean, String, Language, List). This may be used to boost performance provided either no links are existing or the user is confident that no update is required. One example:// first we create a new item Product p = ProductManager.getInstance().createProduct("0815"); // now we collect items to link Collection categories = Arrays.asList(new Object[] { CatagoryManager.getInstance().getCategoryByCode("xxx"), CatagoryManager.getInstance().getCategoryByCode("yyy") }); // now tell the link manager that no links need to be updated SessionContext myCtx = jaloSession.createSessionContext(); myCtx.setAttribute(LinkManager.CTX_DONT_CHANGE_EXITING_LINKS, Boolean.TRUE); // finally link them together - this works since the 'superCategories' attribute // is backed by a relation! p.setAttribute("superCategories", categories);- See Also:
-
IMPORT_MODE
SessionContextproperty to signal that all item creations or attribute settings are done by an import process of ImpEx. Is this property is set some business logic is deactivated, because the logic was already done before and only pure data has to be set.- See Also:
-
-
Constructor Details
-
CoreImpExConstants
public CoreImpExConstants()
-