Skip to content

Commit 444d5e3

Browse files
author
Dominick Leppich
committed
Merge pull request 'Release v25.05' (#19) from release_25.05 into master
2 parents 62d410b + dfa63a8 commit 444d5e3

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

module-base/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.goobi.workflow.plugin</groupId>
56
<artifactId>plugin-step-user-assignment</artifactId>
6-
<version>25.04</version>
7+
<version>25.05</version>
78
</parent>
89
<artifactId>plugin-step-user-assignment-base</artifactId>
910
<packaging>jar</packaging>
10-
</project>
11+
</project>

module-base/src/main/java/de/intranda/goobi/plugins/UserAssignmentPlugin.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.List;
55

66
import org.apache.commons.configuration.HierarchicalConfiguration;
7-
import org.goobi.beans.Processproperty;
7+
import org.goobi.beans.GoobiProperty;
88
import org.goobi.beans.Step;
99
import org.goobi.beans.User;
1010
import org.goobi.beans.Usergroup;
@@ -23,6 +23,7 @@
2323
@PluginImplementation
2424
@Log4j
2525
public class UserAssignmentPlugin extends AbstractStepPlugin implements IStepPlugin, IPlugin {
26+
private static final long serialVersionUID = -7718261144382577236L;
2627
private static final String PLUGIN_NAME = "intranda_step_user_assignment";
2728
private Step targetStep;
2829
private List<Usergroup> oldGroups;
@@ -37,16 +38,16 @@ public class UserAssignmentPlugin extends AbstractStepPlugin implements IStepPlu
3738
public void initialize(Step step, String returnPath) {
3839
// get workflow name from properties
3940
String workflowName = null;
40-
for (Processproperty pp : step.getProzess().getEigenschaften()) {
41-
if (pp.getTitel().equals("Template")) {
42-
workflowName = pp.getWert();
41+
for (GoobiProperty pp : step.getProzess().getProperties()) {
42+
if ("Template".equals(pp.getPropertyName())) {
43+
workflowName = pp.getPropertyValue();
4344
}
4445
}
4546
// if property Template does not exist try goobiWorkflow instead
4647
if (workflowName == null) {
47-
for (Processproperty pp : step.getProzess().getEigenschaften()) {
48-
if (pp.getTitel().equals("goobiWorkflow")) {
49-
workflowName = pp.getWert();
48+
for (GoobiProperty pp : step.getProzess().getProperties()) {
49+
if ("goobiWorkflow".equals(pp.getPropertyName())) {
50+
workflowName = pp.getPropertyValue();
5051
}
5152
}
5253
}
@@ -58,7 +59,7 @@ public void initialize(Step step, String returnPath) {
5859
List<HierarchicalConfiguration> workflows = hc.configurationsAt("workflow");
5960
configAssignmentStepName = hc.getString("assignmentStep", "- no assignment configured -");
6061
for (HierarchicalConfiguration workflow : workflows) {
61-
if (myconfig == null || ((workflow.getString("").equals("*") || workflow.getString("").equals(workflowName))
62+
if (myconfig == null || (("*".equals(workflow.getString("")) || workflow.getString("").equals(workflowName))
6263
&& step.getTitel().equals(configAssignmentStepName))) {
6364
myconfig = hc;
6465
}
@@ -69,9 +70,9 @@ public void initialize(Step step, String returnPath) {
6970
configAssignmentStepName = myconfig.getString("assignmentStep", "- no assignment configured -");
7071
configTargetStepName = myconfig.getString("targetStep", "- no assignment configured -");
7172
}
72-
super.returnPath = returnPath;
73-
super.myStep = step;
74-
loadAllCurrentUsers();
73+
super.returnPath = returnPath;
74+
super.myStep = step;
75+
loadAllCurrentUsers();
7576
}
7677

7778
/**

module-gui/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.goobi.workflow.plugin</groupId>
56
<artifactId>plugin-step-user-assignment</artifactId>
6-
<version>25.04</version>
7+
<version>25.05</version>
78
</parent>
89
<artifactId>plugin-step-user-assignment-gui</artifactId>
910
<packaging>jar</packaging>
@@ -15,4 +16,4 @@
1516
</resource>
1617
</resources>
1718
</build>
18-
</project>
19+
</project>

pom.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23
<modelVersion>4.0.0</modelVersion>
34
<parent>
45
<groupId>io.goobi.workflow</groupId>
56
<artifactId>workflow-base</artifactId>
6-
<version>25.04</version>
7-
<relativePath />
7+
<version>25.05</version>
8+
<relativePath/>
89
</parent>
910
<groupId>io.goobi.workflow.plugin</groupId>
1011
<artifactId>plugin-step-user-assignment</artifactId>
@@ -23,8 +24,8 @@
2324
<dependency>
2425
<groupId>io.goobi.workflow</groupId>
2526
<artifactId>workflow-core</artifactId>
26-
<version>${project.version}</version>
27+
<version>25.05</version>
2728
<classifier>classes</classifier>
2829
</dependency>
2930
</dependencies>
30-
</project>
31+
</project>

0 commit comments

Comments
 (0)