Package de.espirit.firstspirit.feature
Class FeatureInstallOptions.Builder
java.lang.Object
de.espirit.firstspirit.feature.FeatureInstallOptions.Builder
- Enclosing interface:
- FeatureInstallOptions
A builder for streamlined creation of
FeatureInstallOptions.- Since:
- 5.2.231104
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull FeatureInstallOptionsbuild(@NotNull FeatureFile featureFile) CreateFeatureInstallOptionsfor the installation of a feature represented by the givenFeatureFile.@NotNull FeatureInstallOptions.BuilderimportIDProviderGIDs(boolean importIDProviderGIDs) Specify whether the GIDs of the imported/updatedIDProviders should be imported/updated during the feature installation process.@NotNull FeatureInstallOptions.BuilderinstallFeatureModel(boolean installFeatureModel) Set whether the feature model, which contains metadata about content transported by the feature, should be created or updated in the target project immediately after the feature installation process.@NotNull FeatureInstallOptions.BuilderwithLayerMapper(@Nullable LayerMapper layerMapper) Set a layer mapper for customizing how layers are mapped during a feature installation process.@NotNull FeatureInstallOptions.BuilderwithNameBasedLayerMapping(@Nullable Map<String, String> layerMapping) Set a layer mapping using source and target layer names.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
withNameBasedLayerMapping
@NotNull public @NotNull FeatureInstallOptions.Builder withNameBasedLayerMapping(@Nullable @Nullable Map<String, String> layerMapping) Set a layer mapping using source and target layer names. This method allows you to specify a layer mapping by providing a map where the keys represent source layer names and the corresponding values represent target layer names. It helps customize how layers are mapped during a feature installation process.- Parameters:
layerMapping- a mapping of source layer names to target layer names.- Returns:
- the current
FeatureInstallOptions.Builderinstance for method chaining. - Since:
- 5.2.231104
-
withLayerMapper
@NotNull public @NotNull FeatureInstallOptions.Builder withLayerMapper(@Nullable @Nullable LayerMapper layerMapper) Set a layer mapper for customizing how layers are mapped during a feature installation process. This method allows you to define a specific layer mapper such as e.g.LayerMapper.CREATE_NEW_DEFAULT_LAYER_MAPPERorLayerMapper.SchemaUidBasedLayerMapper. Ensure that the givenLayerMapperis loadable by FirstSpirit's class loader.- Parameters:
layerMapper- aLayerMapperwhich must be serializable and loadable by FirstSpirit's class loader.- Returns:
- the current
FeatureInstallOptions.Builderinstance for method chaining. - Since:
- 5.2.231104
-
installFeatureModel
@NotNull public @NotNull FeatureInstallOptions.Builder installFeatureModel(boolean installFeatureModel) Set whether the feature model, which contains metadata about content transported by the feature, should be created or updated in the target project immediately after the feature installation process. This method allows you to specify whether the feature model should be created or updated in the target project. Passtrueto indicate that it should be created or updated, andfalseto indicate otherwise.- Parameters:
installFeatureModel-trueif the feature model should be created or updated,falseotherwise.- Returns:
- the current
FeatureInstallOptions.Builderinstance for method chaining. - Since:
- 5.2.231104
-
importIDProviderGIDs
@NotNull public @NotNull FeatureInstallOptions.Builder importIDProviderGIDs(boolean importIDProviderGIDs) Specify whether the GIDs of the imported/updatedIDProviders should be imported/updated during the feature installation process.- Parameters:
importIDProviderGIDs-trueif the GIDs should be imported/updated,falseotherwise.- Returns:
- the current
FeatureInstallOptions.Builderinstance. - Since:
- 5.2.240102
-
build
CreateFeatureInstallOptionsfor the installation of a feature represented by the givenFeatureFile. This method constructsFeatureInstallOptionstailored for the installation of the specified feature, which is represented by the providedFeatureFile.- Parameters:
featureFile- aFeatureFilerepresenting the feature to be installed.- Returns:
FeatureInstallOptionsconfigured for installing the feature represented by theFeatureFile.- Since:
- 5.2.231104
-