Class ContentPackageUtil
- java.lang.Object
-
- io.wcm.devops.conga.plugins.aem.util.ContentPackageUtil
-
public final class ContentPackageUtil extends Object
Option property names for content package post processorsContentPackagePostProcessor
andContentPackageOsgiConfigPostProcessor
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.wcm.tooling.commons.contentpackagebuilder.ContentPackageBuilder
getContentPackageBuilder(Map<String,Object> options, io.wcm.devops.conga.generator.UrlFileManager urlFileManager)
Builds content package builder populated with options from options map.static io.wcm.tooling.commons.contentpackagebuilder.ContentPackageBuilder
getContentPackageBuilder(Map<String,Object> options, io.wcm.devops.conga.generator.UrlFileManager urlFileManager, io.wcm.devops.conga.generator.spi.context.FileHeaderContext fileHeader)
Builds content package builder populated with options from options map.static List<ContentPackageBinaryFile>
getFiles(Map<String,Object> options, File targetDir)
Get binary files to be added to package.static String
getMandatoryProp(Map<String,Object> options, String key)
Get property from options or throw exception if it is not set.static String
getOptionalProp(Map<String,Object> options, String key)
Get property from options or return null if not set.
-
-
-
Method Detail
-
getContentPackageBuilder
public static io.wcm.tooling.commons.contentpackagebuilder.ContentPackageBuilder getContentPackageBuilder(Map<String,Object> options, io.wcm.devops.conga.generator.UrlFileManager urlFileManager)
Builds content package builder populated with options from options map.- Parameters:
options
- OptionsurlFileManager
- URL file manager- Returns:
- Content package builder
-
getContentPackageBuilder
public static io.wcm.tooling.commons.contentpackagebuilder.ContentPackageBuilder getContentPackageBuilder(Map<String,Object> options, io.wcm.devops.conga.generator.UrlFileManager urlFileManager, io.wcm.devops.conga.generator.spi.context.FileHeaderContext fileHeader)
Builds content package builder populated with options from options map.- Parameters:
options
- OptionsurlFileManager
- URL file managerfileHeader
- File header- Returns:
- Content package builder
-
getMandatoryProp
public static String getMandatoryProp(Map<String,Object> options, String key)
Get property from options or throw exception if it is not set.- Parameters:
options
- Optionskey
- Key- Returns:
- Option value
-
getOptionalProp
public static String getOptionalProp(Map<String,Object> options, String key)
Get property from options or return null if not set.- Parameters:
options
- Optionskey
- Key- Returns:
- Option value or null
-
getFiles
public static List<ContentPackageBinaryFile> getFiles(Map<String,Object> options, File targetDir) throws IOException
Get binary files to be added to package.- Parameters:
options
- OptionstargetDir
- Target directory- Returns:
- File list
- Throws:
IOException
- I/O exception
-
-