Skip to content

Commit

Permalink
feat!: rename to interceptor-manager (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumas authored Jul 30, 2024
1 parent 87abb10 commit 1428df2
Show file tree
Hide file tree
Showing 32 changed files with 121 additions and 116 deletions.
54 changes: 27 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,80 +1,80 @@
# Changelog

## [2.3.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v2.2.0...v2.3.0) (2024-07-18)
## [2.3.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v2.2.0...v2.3.0) (2024-07-18)


### Features

* app icon added ([#60](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/60)) ([6999a3b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/6999a3ba90fb18fab7ebc855d3965d5d6e99b991))
* migration to generic v6.2.0 ([#62](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/62)) ([2d35fc9](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/2d35fc9c71adbc11616093be6658e82cede9c4ff))
* support for IModuleComment and IWorkRecord ([#65](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/65)) ([e183022](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/e18302269df6bda6e87b8f3ac3f23410efcfcfb4)), closes [#64](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/64)
* app icon added ([#60](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/60)) ([6999a3b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/6999a3ba90fb18fab7ebc855d3965d5d6e99b991))
* migration to generic v6.2.0 ([#62](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/62)) ([2d35fc9](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/2d35fc9c71adbc11616093be6658e82cede9c4ff))
* support for IModuleComment and IWorkRecord ([#65](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/65)) ([e183022](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/e18302269df6bda6e87b8f3ac3f23410efcfcfb4)), closes [#64](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/64)


### Bug Fixes

* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.1.0 ([f327f3c](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/f327f3c5d0fb0704cd621b1b9ffdab8e8a480cd7))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.2.0 ([e1aaac9](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/e1aaac95955441bf598cdbacaa173601125d3684))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.3.0 ([8028b60](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/8028b60d8f5dad297d885c6f7c9bc3f053c4d829))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.1.0 ([f327f3c](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/f327f3c5d0fb0704cd621b1b9ffdab8e8a480cd7))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.2.0 ([e1aaac9](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/e1aaac95955441bf598cdbacaa173601125d3684))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.3.0 ([8028b60](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/8028b60d8f5dad297d885c6f7c9bc3f053c4d829))

## [2.2.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v2.1.0...v2.2.0) (2024-07-03)
## [2.2.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v2.1.0...v2.2.0) (2024-07-03)


### Features

* about page help generated from README.md ([#53](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/53)) ([f8d482b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/f8d482b898ff0b59dc8a5f654fd33546b8f7c1fa))
* migrate to generic v6.0.1 ([#56](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/56)) ([b5eb9dc](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/b5eb9dcb31cc3cbf205326dca94dd7b54c99204f))
* about page help generated from README.md ([#53](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/53)) ([f8d482b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/f8d482b898ff0b59dc8a5f654fd33546b8f7c1fa))
* migrate to generic v6.0.1 ([#56](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/56)) ([b5eb9dc](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/b5eb9dcb31cc3cbf205326dca94dd7b54c99204f))


### Bug Fixes

* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.0.2 ([5fab00a](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/5fab00abeb4fd130b528bed1868d59346701e725))
* display version of installed hooks ([#55](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/55)) ([9deb61d](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/9deb61d36ddde6e974645490176d6cc9ced4e96b))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.generic to v6.0.2 ([5fab00a](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/5fab00abeb4fd130b528bed1868d59346701e725))
* display version of installed hooks ([#55](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/55)) ([9deb61d](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/9deb61d36ddde6e974645490176d6cc9ced4e96b))

## [2.1.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v2.0.0...v2.1.0) (2024-06-20)
## [2.1.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v2.0.0...v2.1.0) (2024-06-20)


### Features

* Hook should be disabled by default. ([#49](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/49)) ([30409f7](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/30409f734047245a3011798b46b48eda5e678433))
* the version of hook should not be stored in Java code, but read… ([#50](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/50)) ([d4c78c0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/d4c78c0ecd87637d006aa0f7e6daadced1807464))
* Hook should be disabled by default. ([#49](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/49)) ([30409f7](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/30409f734047245a3011798b46b48eda5e678433))
* the version of hook should not be stored in Java code, but read… ([#50](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/50)) ([d4c78c0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/d4c78c0ecd87637d006aa0f7e6daadced1807464))

## [2.0.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v1.1.1...v2.0.0) (2024-06-04)
## [2.0.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v1.1.1...v2.0.0) (2024-06-04)


### ⚠ BREAKING CHANGES

* save/delete methods proxy calls improvement, introduced separate pre&post hook methods
* save/delete methods proxy calls improvement, introduced separa… ([#39](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/39))
* ch.sbb.polarion.extension.generic usage ([#36](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/36))
* save/delete methods proxy calls improvement, introduced separa… ([#39](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/39))
* ch.sbb.polarion.extension.generic usage ([#36](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/36))

### Features

* ch.sbb.polarion.extension.generic usage ([#36](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/36)) ([ca4ca3b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/ca4ca3b418a2aadce21d2340fa651ee09703c601))
* save/delete methods proxy calls improvement, introduced separa… ([#39](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/39)) ([3176de3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/3176de34ea5842b292539b9cd981f3521f7e4af8))
* save/delete methods proxy calls improvement, introduced separate pre&post hook methods ([3176de3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/3176de34ea5842b292539b9cd981f3521f7e4af8))
* ch.sbb.polarion.extension.generic usage ([#36](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/36)) ([ca4ca3b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/ca4ca3b418a2aadce21d2340fa651ee09703c601))
* save/delete methods proxy calls improvement, introduced separa… ([#39](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/39)) ([3176de3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/3176de34ea5842b292539b9cd981f3521f7e4af8))
* save/delete methods proxy calls improvement, introduced separate pre&post hook methods ([3176de3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/3176de34ea5842b292539b9cd981f3521f7e4af8))

## [1.1.1](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v1.1.0...v1.1.1) (2024-03-05)
## [1.1.1](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v1.1.0...v1.1.1) (2024-03-05)


### Bug Fixes

* Fix settings save in nested transaction. ([#23](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/23)) ([775269b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/775269b7c6ad7f05f2275289ba3809e91f698098))
* Fix settings save in nested transaction. ([#23](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/23)) ([775269b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/775269b7c6ad7f05f2275289ba3809e91f698098))

## [1.1.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/compare/v1.0.0...v1.1.0) (2024-01-18)
## [1.1.0](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/compare/v1.0.0...v1.1.0) (2024-01-18)


### Features

* one hook can be applied for multiple object instances and example added ([#16](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/16)) ([a68cb06](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/a68cb06045f4fd5d9c27370b79a4f4f47dbc20da))
* one hook can be applied for multiple object instances and example added ([#16](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/16)) ([a68cb06](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/a68cb06045f4fd5d9c27370b79a4f4f47dbc20da))


### Bug Fixes

* add missing deployment profiles ([#12](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/12)) ([b8d7102](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/b8d7102d76b49796c9ba313111afff5f928d5f87))
* add missing deployment profiles ([#12](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/12)) ([b8d7102](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/b8d7102d76b49796c9ba313111afff5f928d5f87))

## 1.0.0 (2024-01-16)


### Features

* initial implementation ([#2](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues/2)) ([e5f0955](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/commit/e5f095500d039356234a33ec6759b7c0ed8d1707))
* initial implementation ([#2](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues/2)) ([e5f0955](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/commit/e5f095500d039356234a33ec6759b7c0ed8d1707))
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ mvn clean package

## Installation to Polarion

To install extension to Polarion `ch.sbb.polarion.extension.interceptor-<version>.jar`
should be copied to `<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor/eclipse/plugins`.
To install extension to Polarion `ch.sbb.polarion.extension.interceptor-manager-<version>.jar`
should be copied to `<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor-manager/eclipse/plugins`.
It can be done manually or automated using maven build:
```bash
mvn clean install -P install-to-local-polarion
Expand All @@ -23,16 +23,20 @@ Changes only take effect after restart of Polarion.

## Polarion configuration

### Interceptor settings/customization
Use Administration -> Interceptor -> Settings page to enable/disable or set specific properties for each existing hook.
### Interceptor Manager settings/customization
Use Administration -> Interceptor Manager -> Settings page to enable/disable or set specific properties for each existing hook.


### Hooks installation
Copy hook jar to hooks folder (`<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor/eclipse/plugins/hooks`) and enforce hooks reloading from the settings page or restart Polarion.
Copy hook jar to hooks folder (`<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor-manager/eclipse/plugins/hooks`) and enforce hooks reloading from the settings page or restart Polarion.
By default, newly added hooks are disabled and must be enabled manually.

## Upgrade

### Upgrade from version 2.x.x to 3.0.0
Version 3.0.0 has received significant change - project+package rename. Verify you're using the new subfolder name in the `extensions` folder.
Also, this change prevents previous hooks versions from working. They must be replaced with the new ones built especially for v.3.0.0+. Note that doing this will reset hooks settings tho their default values, so do not forget to backup your actual settings to restore them after update.

### Upgrade from version 1.x.x to 2.0.0
Version 2.0.0 requires the new hooks model therefore hooks built for 1.x.x will stop working. They must be replaced with the new ones built especially for v.2.0.0+.
Also the new version introduced some significant internal settings model changes/improvements which have made old settings data incompatible. This means that during the first run all settings will be reset to their default values (unfortunately revisions history will be lost too).
17 changes: 9 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
<version>6.4.0</version>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager</artifactId>
<version>2.3.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>Polarion ALM extension to execute validation during save/delete actions</name>
<description>This Polarion extension provides possibility to run custom Java code (via hooks), before Polarion saves/deletes a Work Item, Document, Plan or Test Run.</description>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor</url>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager</url>

<licenses>
<license>
<name>The SBB License, Version 1.0</name>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/blob/main/LICENSES/SBB.txt</url>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/blob/main/LICENSES/SBB.txt</url>
</license>
</licenses>

Expand All @@ -33,18 +33,19 @@
</developers>

<scm>
<connection>scm:git:git://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.git</connection>
<developerConnection>scm:git:ssh://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.git</developerConnection>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/tree/main</url>
<connection>scm:git:git://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.git</connection>
<developerConnection>scm:git:ssh://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.git</developerConnection>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/tree/main</url>
</scm>

<issueManagement>
<system>GitHub</system>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor/issues</url>
<url>https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager/issues</url>
</issueManagement>

<properties>
<maven-jar-plugin.Extension-Context>interceptor</maven-jar-plugin.Extension-Context>
<maven-jar-plugin.Extension-Context>interceptor-manager</maven-jar-plugin.Extension-Context>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor_manager</maven-jar-plugin.Automatic-Module-Name>

<web.app.name>${maven-jar-plugin.Extension-Context}</web.app.name>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ch.sbb.polarion.extension.interceptor;
package ch.sbb.polarion.extension.interceptor_manager;

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.model.HooksRegistry;
import ch.sbb.polarion.extension.interceptor_manager.model.ActionHook;
import ch.sbb.polarion.extension.interceptor_manager.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor_manager.model.HooksRegistry;
import com.polarion.core.util.StringUtils;
import com.polarion.core.util.exceptions.UserFriendlyRuntimeException;
import com.polarion.core.util.logging.Logger;
Expand Down
Loading

0 comments on commit 1428df2

Please sign in to comment.