| Package | Description |
|---|---|
| de.hybris.platform.patches | |
| de.hybris.platform.patches.actions | |
| de.hybris.platform.patches.data | |
| de.hybris.platform.patches.utils |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractPatch.importData(java.lang.String fileName,
ImportOrganisationUnit organisationUnit,
java.util.Collection<ImportLanguage> languages,
boolean runAgain,
ImpexImportUnitOption[] importOptions,
ImpexHeaderOption[][] headerOptions)
Imports impex data for given organisation and languages.
|
| Modifier and Type | Method and Description |
|---|---|
protected ImpexHeaderOption[][] |
ImportPatchAction.getHeaderOptionsPermutations(ImpexHeaderOption[][] headerOptions)
Creates permutation of given headerOptions.
|
| Modifier and Type | Method and Description |
|---|---|
protected ImpexHeaderOption[][] |
ImportPatchAction.getHeaderOptionsPermutations(ImpexHeaderOption[][] headerOptions)
Creates permutation of given headerOptions.
|
protected java.util.List<ImpexImportPack> |
ImportPatchAction.useHeaderOptions(java.util.List<ImpexImportPack> importPacks,
ImpexHeaderOption[][] dataHeaderOptions)
If dataHeaderOptions is empty this method will return importPacks directly.
|
| Modifier and Type | Method and Description |
|---|---|
ImpexHeaderOption |
ImpexHeaderOption.clone() |
protected ImpexHeaderOption |
ImpexHeaderOption.clone(ImpexHeaderOption clone) |
ImpexHeaderOption[] |
ImpexImportUnit.getImpexHeaderOptions() |
| Modifier and Type | Method and Description |
|---|---|
void |
ImpexImportUnit.addHeaderOption(ImpexHeaderOption headerOptionToAdd)
Adds impexHeaderOption to existing list.
|
protected ImpexHeaderOption |
ImpexHeaderOption.clone(ImpexHeaderOption clone) |
void |
ImpexImportUnit.setImpexHeaderOptions(ImpexHeaderOption[] impexHeaderOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected ImpexHeaderOption[][] |
PermutationUtilsTest.convertToImpexHeaderOptions(java.lang.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. |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.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. |
Copyright © 2018 SAP SE. All Rights Reserved.