Class ContentPackageUtil

    • 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 - Options
        urlFileManager - 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 - Options
        urlFileManager - URL file manager
        fileHeader - 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 - Options
        key - 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 - Options
        key - Key
        Returns:
        Option value or null