diff --git a/README.md b/README.md index db9576f..d589b99 100644 --- a/README.md +++ b/README.md @@ -181,10 +181,10 @@ ch.sbb.polarion.extension.pdf-exporter.internalizeExternalCss=true ## Extension Configuration 1. On the top of the project's navigation pane click ⚙ (Actions) ➙ 🔧 Administration. Project's administration page will be opened. -2. On the administration's navigation pane select `PDF Export`. There are 5 sub-menus with different configuration options for PDF Exporter. -3. For 5 of these options (Cover page, Header and Footer, Localization, Webhooks and Filename template) `Quick Help` section available with option short description. For the rest 2 +2. On the administration's navigation pane select `PDF Export`. There are expandable sub-menus with different configuration options for PDF Exporter. +3. For some of these options (Cover page, Header and Footer, Localization, Webhooks and Filename template) `Quick Help` section available with option short description. For the rest (Style package, Stylesheets) there's no `Quick Help` section as their content is self-evident. -4. To change configuration of PDF exporter extension just edit corresponding section and press `Save` button. +4. To change configuration of PDF Exporter extension just edit corresponding section and press `Save` button. ## Usage diff --git a/docs/openapi.json b/docs/openapi.json index 630cc49..03f9a06 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -815,6 +815,53 @@ ] } }, + "/api/settings/style-package/suitable-names": { + "get": { + "operationId": "getSuitableStylePackageNames", + "parameters": [ + { + "in": "query", + "name": "projectId", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "spaceId", + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "documentName", + "schema": { + "type": "string" + } + } + ], + "responses": { + "default": { + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/SettingName" + }, + "type": "array" + } + } + }, + "description": "default response" + } + }, + "summary": "Get list of style packages suitable for a document", + "tags": [ + "Settings" + ] + } + }, "/api/settings/{feature}/default-content": { "get": { "operationId": "getDefaultValues_1", @@ -1165,7 +1212,7 @@ "description": "default response" } }, - "summary": "Returns boolean value telling if webhooks are enabled or not", + "summary": "Gets webhooks status - if they are enabled or not", "tags": [ "Utility resources" ] diff --git a/pom.xml b/pom.xml index 4473e63..f0828c9 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ ch.sbb.polarion.extensions ch.sbb.polarion.extension.generic - 6.7.0 + 7.0.0 ch.sbb.polarion.extension.pdf-exporter @@ -59,6 +59,7 @@ pdf-exporter ch.sbb.polarion.extension.pdf_exporter + ch.sbb.polarion.extension.pdf.exporter ${maven-jar-plugin.Extension-Context} @@ -109,11 +110,6 @@ byte-buddy ${byte-buddy.version} - - com.google.re2j - re2j - ${re2j.version} - diff --git a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterAdminUiServlet.java b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterAdminUiServlet.java index 3c23f02..28f2ee8 100644 --- a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterAdminUiServlet.java +++ b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterAdminUiServlet.java @@ -1,8 +1,6 @@ package ch.sbb.polarion.extension.pdf.exporter; import ch.sbb.polarion.extension.generic.GenericUiServlet; -import ch.sbb.polarion.extension.generic.properties.CurrentExtensionConfiguration; -import ch.sbb.polarion.extension.pdf.exporter.properties.PdfExporterExtensionConfiguration; import java.io.Serial; @@ -13,6 +11,5 @@ public class PdfExporterAdminUiServlet extends GenericUiServlet { public PdfExporterAdminUiServlet() { super("pdf-exporter-admin"); - CurrentExtensionConfiguration.getInstance().setExtensionConfiguration(PdfExporterExtensionConfiguration.getInstance()); } } diff --git a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterFormExtension.java b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterFormExtension.java index 71d61be..0fe14d3 100644 --- a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterFormExtension.java +++ b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/PdfExporterFormExtension.java @@ -49,6 +49,8 @@ public class PdfExporterFormExtension implements IFormExtension { private static final String OPTION_SELECTED = "