Uses of Class
de.hybris.platform.patches.data.ImpexHeaderOption
Packages that use ImpexHeaderOption
Package
Description
-
Uses of ImpexHeaderOption in de.hybris.platform.patches
Methods in de.hybris.platform.patches with parameters of type ImpexHeaderOptionModifier and TypeMethodDescriptionprotected voidAbstractPatch.importData(String fileName, ImportOrganisationUnit organisationUnit, Collection<ImportLanguage> languages, boolean runAgain, ImpexImportUnitOption[] importOptions, ImpexHeaderOption[][] headerOptions) Imports impex data for given organisation and languages. -
Uses of ImpexHeaderOption in de.hybris.platform.patches.actions
Methods in de.hybris.platform.patches.actions that return ImpexHeaderOptionModifier and TypeMethodDescriptionprotected ImpexHeaderOption[][]ImportPatchAction.getHeaderOptionsPermutations(ImpexHeaderOption[][] headerOptions) Creates permutation of given headerOptions.Methods in de.hybris.platform.patches.actions with parameters of type ImpexHeaderOptionModifier and TypeMethodDescriptionprotected ImpexHeaderOption[][]ImportPatchAction.getHeaderOptionsPermutations(ImpexHeaderOption[][] headerOptions) Creates permutation of given headerOptions.protected List<ImpexImportPack>ImportPatchAction.useHeaderOptions(List<ImpexImportPack> importPacks, ImpexHeaderOption[][] dataHeaderOptions) If dataHeaderOptions is empty this method will return importPacks directly. -
Uses of ImpexHeaderOption in de.hybris.platform.patches.data
Methods in de.hybris.platform.patches.data that return ImpexHeaderOptionModifier and TypeMethodDescriptionImpexHeaderOption.clone()protected ImpexHeaderOptionImpexHeaderOption.clone(ImpexHeaderOption clone) ImpexImportUnit.getImpexHeaderOptions()Methods in de.hybris.platform.patches.data with parameters of type ImpexHeaderOptionModifier and TypeMethodDescriptionvoidImpexImportUnit.addHeaderOption(ImpexHeaderOption headerOptionToAdd) Adds impexHeaderOption to existing list.protected ImpexHeaderOptionImpexHeaderOption.clone(ImpexHeaderOption clone) voidImpexImportUnit.setImpexHeaderOptions(ImpexHeaderOption[] impexHeaderOptions) -
Uses of ImpexHeaderOption in de.hybris.platform.patches.utils
Methods in de.hybris.platform.patches.utils that return ImpexHeaderOptionModifier and TypeMethodDescriptionprotected ImpexHeaderOption[][]PermutationUtilsTest.convertToImpexHeaderOptions(String[][] input) Help method that will convert Strings array of arrays to ImpexHeaderOption arrays.static ImpexHeaderOption[][]PermutationUtils.permutate(ImpexHeaderOption[][] source) This method creates all permutations of elements from different collections.
Assume that as entry we get:
String[][]{{"A1","A2"},{"B1"},{"C1","C2","C3"},{"D1","D2","D3","D4"}}
In result we would like to have all possible 4 elements combinations that contains one element with A prefix, one with B, one with C and one with D.
In result there will be 2*1*3*4 elements = 24 each of length 4
Finally result for example above will be:
[A1, B1, C1, D1], [A2, B1, C1, D1],
[A1, B1, C2, D1], [A2, B1, C2, D1],
[A1, B1, C3, D1], [A2, B1, C3, D1],
[A1, B1, C1, D2], [A2, B1, C1, D2],
[A1, B1, C2, D2], [A2, B1, C2, D2],
[A1, B1, C3, D2], [A2, B1, C3, D2],
[A1, B1, C1, D3], [A2, B1, C1, D3],
[A1, B1, C2, D3], [A2, B1, C2, D3],
[A1, B1, C3, D3], [A2, B1, C3, D3],
[A1, B1, C1, D4], [A2, B1, C1, D4],
[A1, B1, C2, D4], [A2, B1, C2, D4],
[A1, B1, C3, D4], [A2, B1, C3, D4]
Idea behind the code is to iterate over all possible permutations (so in example above from 0 to 23) - loop A.
then iterate over elements that should be in this permutation (so in example above 0-3) - loop B.
then fill in in target (result) proper element.Methods in de.hybris.platform.patches.utils with parameters of type ImpexHeaderOptionModifier and TypeMethodDescriptionprotected String[][]PermutationUtilsTest.convertStrings(ImpexHeaderOption[][] input) Help method that will convert ImpexHeaderOption array of arrays to Strings arrays.static ImpexHeaderOption[][]PermutationUtils.permutate(ImpexHeaderOption[][] source) This method creates all permutations of elements from different collections.
Assume that as entry we get:
String[][]{{"A1","A2"},{"B1"},{"C1","C2","C3"},{"D1","D2","D3","D4"}}
In result we would like to have all possible 4 elements combinations that contains one element with A prefix, one with B, one with C and one with D.
In result there will be 2*1*3*4 elements = 24 each of length 4
Finally result for example above will be:
[A1, B1, C1, D1], [A2, B1, C1, D1],
[A1, B1, C2, D1], [A2, B1, C2, D1],
[A1, B1, C3, D1], [A2, B1, C3, D1],
[A1, B1, C1, D2], [A2, B1, C1, D2],
[A1, B1, C2, D2], [A2, B1, C2, D2],
[A1, B1, C3, D2], [A2, B1, C3, D2],
[A1, B1, C1, D3], [A2, B1, C1, D3],
[A1, B1, C2, D3], [A2, B1, C2, D3],
[A1, B1, C3, D3], [A2, B1, C3, D3],
[A1, B1, C1, D4], [A2, B1, C1, D4],
[A1, B1, C2, D4], [A2, B1, C2, D4],
[A1, B1, C3, D4], [A2, B1, C3, D4]
Idea behind the code is to iterate over all possible permutations (so in example above from 0 to 23) - loop A.
then iterate over elements that should be in this permutation (so in example above 0-3) - loop B.
then fill in in target (result) proper element.