Skip to content

Commit

Permalink
feat!: rename to interceptor-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumas committed Aug 1, 2024
1 parent 3cc374d commit 4ed3322
Show file tree
Hide file tree
Showing 21 changed files with 63 additions and 63 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

### Features

* hooks migration from interceptor repo to the separate one ([#3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/issues/3)) ([2a2841a](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/commit/2a2841afd2fa6f23fcd6ece66f0db1bed88eebab))
* migration to interceptor v2.1.0 ([#12](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/issues/12)) ([bf70a76](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/commit/bf70a7607efb36ffa2eda8486f2c6d51de2d8ef7))
* hooks migration from interceptor repo to the separate one ([#3](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/issues/3)) ([2a2841a](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/commit/2a2841afd2fa6f23fcd6ece66f0db1bed88eebab))
* migration to interceptor v2.1.0 ([#12](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/issues/12)) ([bf70a76](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/commit/bf70a7607efb36ffa2eda8486f2c6d51de2d8ef7))


### Bug Fixes

* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.interceptor to v2.2.0 ([c152a5b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/commit/c152a5b6d73b5bf407ba2c7245e0c1695c1b7453))
* display hook version in Admin pane ([#16](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/issues/16)) ([e6efcde](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/commit/e6efcdeed2a1cb093dc1ef74df6e96b6b5c17679))
* fix cast exception ([#7](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/issues/7)) ([06db530](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor.hook-samples/commit/06db53031359981986f96a324a8fc122fea4c7e9))
* **deps:** update dependency ch.sbb.polarion.extensions:ch.sbb.polarion.extension.interceptor to v2.2.0 ([c152a5b](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/commit/c152a5b6d73b5bf407ba2c7245e0c1695c1b7453))
* display hook version in Admin pane ([#16](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/issues/16)) ([e6efcde](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/commit/e6efcdeed2a1cb093dc1ef74df6e96b6b5c17679))
* fix cast exception ([#7](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/issues/7)) ([06db530](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager.hook-samples/commit/06db53031359981986f96a324a8fc122fea4c7e9))
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Hook samples for Polarion Interceptor extension
# Hook samples for Polarion Interceptor Manager extension

This project contains samples of hooks for Polarion [Interceptor extension](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor).
This project contains samples of hooks for Polarion [Interceptor Manager extension](https://github.com/SchweizerischeBundesbahnen/ch.sbb.polarion.extension.interceptor-manager).

The following hooks are available:
- [Module Save Time Logger](hook-samples/module-save-time-logger/README.md)
Expand All @@ -19,7 +19,7 @@ mvn clean package

## Installation to Polarion

To install these hooks to Polarion `ch.sbb.polarion.extension.interceptor.hook-samples.<hookname>-<version>.jar` files should be copied to `<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor/eclipse/plugins/hooks`.
To install these hooks to Polarion `ch.sbb.polarion.extension.interceptor-manager.hook-samples.<hookname>-<version>.jar` files should be copied to `<polarion_home>/polarion/extensions/ch.sbb.polarion.extension.interceptor-manager/eclipse/plugins/hooks`.
It can be done manually or automated using maven build:

```bash
Expand Down
6 changes: 3 additions & 3 deletions hook-samples/module-save-time-logger/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.module-save-time-logger</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.module-save-time-logger</artifactId>
<packaging>jar</packaging>

<properties>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor.hooks_samples.module_save_time_logger</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor_manager.hooks_samples.module_save_time_logger</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Extension-Context>module-save-time-logger</maven-jar-plugin.Extension-Context>
</properties>

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.core.util.logging.Logger;
import com.polarion.platform.persistence.model.IPObject;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: Title length hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.module_save_time_logger.ModuleSaveTimeHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.module_save_time_logger.ModuleSaveTimeHook
6 changes: 3 additions & 3 deletions hook-samples/only-assignee-can-delete/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.only-assignee-can-delete</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.only-assignee-can-delete</artifactId>
<packaging>jar</packaging>

<properties>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor.hook_samples.only_assignee_can_delete</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor_manager.hook_samples.only_assignee_can_delete</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Extension-Context>only-assignee-can-delete</maven-jar-plugin.Extension-Context>
</properties>

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.alm.projects.model.IUser;
import com.polarion.alm.tracker.ITrackerService;
import com.polarion.alm.tracker.model.IWorkItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: WorkItem deletion hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.only_assignee_can_delete.OnlyAssigneeCanDeleteHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.only_assignee_can_delete.OnlyAssigneeCanDeleteHook
6 changes: 3 additions & 3 deletions hook-samples/plan-save/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.plan-save</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.plan-save</artifactId>
<packaging>jar</packaging>

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

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.alm.tracker.model.IPlan;
import com.polarion.alm.tracker.model.IWorkItem;
import com.polarion.core.util.logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: Plan save hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.plan_save.PlanSaveHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.plan_save.PlanSaveHook
6 changes: 3 additions & 3 deletions hook-samples/single-assignee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.single-assignee</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.single-assignee</artifactId>
<packaging>jar</packaging>

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

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.alm.tracker.model.IWorkItem;
import com.polarion.core.util.logging.Logger;
import com.polarion.platform.persistence.model.IPObject;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: Single assignee hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.single_assignee.SingleAssigneeHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.single_assignee.SingleAssigneeHook
6 changes: 3 additions & 3 deletions hook-samples/testrun/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.testrun</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.testrun</artifactId>
<packaging>jar</packaging>

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

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.alm.tracker.ITrackerService;
import com.polarion.alm.tracker.model.ITestRecord;
import com.polarion.alm.tracker.model.ITestRun;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: TestRun validation hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.testrun.TestRunHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.testrun.TestRunHook
6 changes: 3 additions & 3 deletions hook-samples/title-length-check/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<parent>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples.title-length-check</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples.title-length-check</artifactId>
<packaging>jar</packaging>

<properties>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor.hook_samples.title_length_check</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Automatic-Module-Name>ch.sbb.polarion.extension.interceptor_manager.hook_samples.title_length_check</maven-jar-plugin.Automatic-Module-Name>
<maven-jar-plugin.Extension-Context>title-length-check</maven-jar-plugin.Extension-Context>
</properties>

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

import ch.sbb.polarion.extension.interceptor.model.ActionHook;
import ch.sbb.polarion.extension.interceptor.model.HookExecutor;
import ch.sbb.polarion.extension.interceptor.util.PropertiesUtils;
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.util.PropertiesUtils;
import com.polarion.alm.tracker.model.IModule;
import com.polarion.alm.tracker.model.IWorkItem;
import com.polarion.core.util.logging.Logger;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Name: Title length hook for Polarion ALM Interceptor plugin
Main-Class: ch.sbb.polarion.extension.interceptor.hook_samples.title_length_check.TitleLengthHook
Main-Class: ch.sbb.polarion.extension.interceptor_manager.hook_samples.title_length_check.TitleLengthHook
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor.hook-samples</artifactId>
<artifactId>ch.sbb.polarion.extension.interceptor-manager.hook-samples</artifactId>
<version>2.1.1-SNAPSHOT</version>
<packaging>pom</packaging>

Expand All @@ -17,9 +17,9 @@
</modules>

<properties>
<ch.sbb.polarion.extension.interceptor.version>2.2.0</ch.sbb.polarion.extension.interceptor.version>
<ch.sbb.polarion.extension.interceptor-manager.version>3.0.0</ch.sbb.polarion.extension.interceptor-manager.version>

<interceptor.artifactId>ch.sbb.polarion.extension.interceptor</interceptor.artifactId>
<interceptor-manager.artifactId>ch.sbb.polarion.extension.interceptor-manager</interceptor-manager.artifactId>
<hooks.folder.name>hooks</hooks.folder.name>

<maven.compiler.source>17</maven.compiler.source>
Expand Down Expand Up @@ -59,7 +59,7 @@
<configuration>
<filesets>
<fileset>
<directory>${env.POLARION_HOME}/polarion/extensions/${interceptor.artifactId}/eclipse/plugins/${hooks.folder.name}</directory>
<directory>${env.POLARION_HOME}/polarion/extensions/${interceptor-manager.artifactId}/eclipse/plugins/${hooks.folder.name}</directory>
<includes>
<include>*${maven-jar-plugin.Extension-Context}*.jar</include>
</includes>
Expand Down Expand Up @@ -89,7 +89,7 @@
<type>${project.packaging}</type>
</artifactItem>
</artifactItems>
<outputDirectory>${env.POLARION_HOME}/polarion/extensions/${interceptor.artifactId}/eclipse/plugins/${hooks.folder.name}</outputDirectory>
<outputDirectory>${env.POLARION_HOME}/polarion/extensions/${interceptor-manager.artifactId}/eclipse/plugins/${hooks.folder.name}</outputDirectory>
</configuration>
</execution>
</executions>
Expand All @@ -102,8 +102,8 @@
<dependencies>
<dependency>
<groupId>ch.sbb.polarion.extensions</groupId>
<artifactId>ch.sbb.polarion.extension.interceptor</artifactId>
<version>${ch.sbb.polarion.extension.interceptor.version}</version>
<artifactId>${interceptor-manager.artifactId}</artifactId>
<version>${ch.sbb.polarion.extension.interceptor-manager.version}</version>
<scope>provided</scope>
</dependency>

Expand Down

0 comments on commit 4ed3322

Please sign in to comment.