Interface FeaturesManager
- All Known Implementing Classes:
DefaultFeaturesManager
public interface FeaturesManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAPIRegionExport(@Nullable String runMode, @NotNull String exportedPackage) voidaddArtifact(@Nullable String runMode, @NotNull org.apache.sling.feature.ArtifactId id) voidaddArtifact(@Nullable String runMode, @NotNull org.apache.sling.feature.Artifact artifact, @Nullable Integer startOrder) voidaddConfiguration(@Nullable String runMode, @NotNull org.apache.sling.feature.Configuration cfg, @NotNull String path, @NotNull Dictionary<String, Object> configurationProperties) Add a configurationvoidaddOrAppendOakIndexDefinitionsExtension(String source, String text) voidaddOrAppendRepoInitExtension(@NotNull String source, @NotNull String text, @Nullable String runMode) Add repoinit instructions@NotNull org.apache.sling.feature.FeaturegetRunMode(@Nullable String runMode) @Nullable org.apache.sling.feature.Featurevoidinit(@NotNull org.apache.sling.feature.ArtifactId packageId) void
-
Method Details
-
init
void init(@NotNull @NotNull org.apache.sling.feature.ArtifactId packageId) -
getTargetFeature
@Nullable @Nullable org.apache.sling.feature.Feature getTargetFeature() -
getRunMode
-
addArtifact
void addArtifact(@Nullable @Nullable String runMode, @NotNull @NotNull org.apache.sling.feature.ArtifactId id) -
addArtifact
-
addAPIRegionExport
-
addConfiguration
void addConfiguration(@Nullable @Nullable String runMode, @NotNull @NotNull org.apache.sling.feature.Configuration cfg, @NotNull @NotNull String path, @NotNull @NotNull Dictionary<String, Object> configurationProperties) throws IOException, ConverterExceptionAdd a configuration- Parameters:
runMode- Optional runmodecfg- The configuration object for the pid and factory pid, name - no propertiespath- The path for the configurationconfigurationProperties- The configuration properties- Throws:
IOException- if an error occursConverterException- if conversion fails
-
serialize
- Throws:
IOException
-
addOrAppendRepoInitExtension
void addOrAppendRepoInitExtension(@NotNull @NotNull String source, @NotNull @NotNull String text, @Nullable @Nullable String runMode) throws IOException, ConverterException Add repoinit instructions- Parameters:
source- An identifier for the source, for example the configuration pidtext- The repoinit instructionsrunMode- Optional runmode- Throws:
IOException- if an error occursConverterException- if conversion fails
-
addOrAppendOakIndexDefinitionsExtension
void addOrAppendOakIndexDefinitionsExtension(String source, String text) throws IOException, ConverterException - Throws:
IOExceptionConverterException
-
getNamespaceUriByPrefix
-