Skip to content

Commit 52daa60

Browse files
committed
Updating to v1.3.5
1 parent 545e217 commit 52daa60

57 files changed

Lines changed: 185 additions & 182 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ updates:
1010
- dependency-name: org.mockito:mockito-core
1111
versions:
1212
- 3.7.7
13-
- 3.8.0
13+
- 3.8.0

LICENSE.txt renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2012 - 2018 e-Spirit AG
189+
Copyright 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

README.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,42 @@
1-
basicworkflows
2-
--------------
3-
This project contains new basic workflows developed for FirstSpirit 5.<br/>
4-
A workflow for release and one for delete that work in both, Java- and Webclient are provided.
5-
The workflows take account of dependencies so that potential generation errors are minimized and the accessibility of all elements can be ensured. The new workflows provide - in contrast to the existing workflows, known from earlier FirstSpirit versions - an enhanced function range for editors in both FirstSpirit-Clients. One can extend the functionality by implementing invividual extensions and customising the code to the characteristics of the project.
1+
# BasicWorkflows
62

3+
## Overview
74

8-
FirstSpirit and these workflows are developed by the e-Spirit AG (http://www.e-spirit.com).</br>
9-
The head office of the e-Spirit AG is in Dortmund, Germany.</br></br>
10-
For more information please contact our helpdesk (helpdesk@e-spirit.com).
5+
This project contains the source files of the [BasicWorkflows](https://docs.e-spirit.com/module/basicworkflows/BasicWorkflows_Documentation_EN.html) module.
6+
7+
The module provides new workflows for deleting or releasing elements in the SiteArchitect and the ContentCreator.
8+
9+
It takes release and delete dependencies into account so that potential generation errors are minimized and the accessibility of elements is ensured.
10+
11+
The workflows can be individually extended by setting up own implementations to fulfill project-specific needs.
12+
13+
## Building the module
14+
15+
**Requirements**
16+
* [Maven](https://maven.apache.org/)
17+
18+
To build the module, simply run
19+
20+
```
21+
mvn clean install
22+
```
23+
24+
in the root directory.
25+
26+
The built fsm file will be located at
27+
28+
```
29+
./target/basicworkflows.fsm
30+
```
31+
32+
## Resources
33+
34+
[Documentation](https://docs.e-spirit.com/module/basicworkflows/BasicWorkflows_Documentation_EN.html)
35+
36+
[Release notes](https://docs.e-spirit.com/module/basicworkflows/releasenotes/BasicWorkflows_Releasenotes_EN.html)
37+
38+
## Legal Notices
39+
The BasicWorkflows module is a product of [Crownpeak Technology GmbH](https://www.crownpeak.com), Dortmund, Germany. The BasicWorkflows module is subject to the Apache-2.0 license.
40+
41+
## Disclaimer
42+
This document is provided for information purposes only. Crownpeak may change the contents hereof without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. Crownpeak specifically disclaims any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. The technologies, functionality, services, and processes described herein are subject to change without notice.

pom.xml

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

66
<groupId>com.espirit.moddev</groupId>
77
<artifactId>basicworkflows</artifactId>
8-
<version>1.3.4</version>
8+
<version>1.3.5</version>
99
<packaging>jar</packaging>
1010
<name>${project.displayName}</name>
11-
<inceptionYear>2018</inceptionYear>
11+
<inceptionYear>2023</inceptionYear>
1212
<organization>
13-
<name>e-Spirit AG</name>
14-
<url>http://www.e-spirit.com/</url>
13+
<name>Crownpeak Technology GmbH</name>
14+
<url>https://www.crownpeak.com/</url>
1515
</organization>
1616

1717
<properties>
18-
<project.displayName>BasicWorkflows</project.displayName>
1918
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2019
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
2120
</properties>
@@ -35,13 +34,16 @@
3534
<!-- Enabled for unit tests -->
3635
<plugin>
3736
<artifactId>maven-surefire-plugin</artifactId>
38-
<version>2.9</version>
37+
<version>3.1.0</version>
38+
<configuration>
39+
<skipTests>false</skipTests>
40+
</configuration>
3941
</plugin>
4042

4143
<plugin>
4244
<groupId>org.apache.maven.plugins</groupId>
4345
<artifactId>maven-failsafe-plugin</artifactId>
44-
<version>2.13</version>
46+
<version>3.1.0</version>
4547
<executions>
4648
<execution>
4749
<goals>
@@ -88,7 +90,7 @@
8890
<plugin>
8991
<groupId>org.apache.maven.plugins</groupId>
9092
<artifactId>maven-antrun-plugin</artifactId>
91-
<version>1.4</version>
93+
<version>1.8</version>
9294
<executions>
9395
<execution>
9496
<id>rename</id>
@@ -111,7 +113,7 @@
111113
<plugin>
112114
<groupId>org.codehaus.mojo</groupId>
113115
<artifactId>build-helper-maven-plugin</artifactId>
114-
<version>3.0.0</version>
116+
<version>3.4.0</version>
115117
<executions>
116118
<execution>
117119
<id>attach-artifacts</id>
@@ -171,13 +173,13 @@
171173
<dependency>
172174
<groupId>commons-io</groupId>
173175
<artifactId>commons-io</artifactId>
174-
<version>1.4</version>
176+
<version>2.12.0</version>
175177
<scope>test</scope>
176178
</dependency>
177179
<dependency>
178180
<groupId>junit</groupId>
179181
<artifactId>junit</artifactId>
180-
<version>4.12</version>
182+
<version>4.13.2</version>
181183
<scope>test</scope>
182184
<exclusions>
183185
<exclusion>
@@ -189,23 +191,30 @@
189191
<dependency>
190192
<groupId>org.hamcrest</groupId>
191193
<artifactId>hamcrest-library</artifactId>
192-
<version>1.3</version>
194+
<version>2.2</version>
193195
<scope>test</scope>
194196
</dependency>
195197

196198
<!-- logging -->
197199
<dependency>
198-
<groupId>log4j</groupId>
199-
<artifactId>log4j</artifactId>
200-
<version>1.2.16</version>
200+
<groupId>org.apache.logging.log4j</groupId>
201+
<artifactId>log4j-api</artifactId>
202+
<version>2.20.0</version>
203+
<scope>test</scope>
204+
</dependency>
205+
206+
<dependency>
207+
<groupId>org.apache.logging.log4j</groupId>
208+
<artifactId>log4j-core</artifactId>
209+
<version>2.20.0</version>
201210
<scope>test</scope>
202211
</dependency>
203212

204213
<!-- mocking -->
205214
<dependency>
206215
<groupId>org.mockito</groupId>
207216
<artifactId>mockito-core</artifactId>
208-
<version>2.7.22</version>
217+
<version>3.12.4</version>
209218
<scope>test</scope>
210219
<exclusions>
211220
<exclusion>
@@ -229,9 +238,10 @@
229238
<plugin>
230239
<groupId>org.codehaus.mojo</groupId>
231240
<artifactId>license-maven-plugin</artifactId>
232-
<version>1.16</version>
241+
<version>2.0.1</version>
233242
<configuration>
234243
<licenseName>apache_v2</licenseName>
244+
<licenseResolver>${project.baseUri}/src/license</licenseResolver>
235245
</configuration>
236246
<executions>
237247
<execution>
@@ -309,10 +319,10 @@
309319
</property>
310320
</activation>
311321
<properties>
312-
<firstspirit.version>5.2.181007</firstspirit.version>
322+
<firstspirit.version>5.2.230607</firstspirit.version>
313323
</properties>
314324
</profile>
315325

316326
</profiles>
317327

318-
</project>
328+
</project>

src/main/assembly/fsm.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
<outputDirectory>/META-INF/</outputDirectory>
4848
</fileSet>
4949
</fileSets>
50-
</assembly>
50+
</assembly>

src/main/java/com/espirit/moddev/basicworkflows/delete/DeleteObject.java

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
/*-
2-
* ========================LICENSE_START=================================
1+
/*
32
* BasicWorkflows Module
43
* %%
5-
* Copyright (C) 2012 - 2018 e-Spirit AG
4+
* Copyright (C) 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
65
* %%
76
* Licensed under the Apache License, Version 2.0 (the "License");
87
* you may not use this file except in compliance with the License.
98
* You may obtain a copy of the License at
10-
*
9+
*
1110
* http://www.apache.org/licenses/LICENSE-2.0
12-
*
11+
*
1312
* Unless required by applicable law or agreed to in writing, software
1413
* distributed under the License is distributed on an "AS IS" BASIS,
1514
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1615
* See the License for the specific language governing permissions and
1716
* limitations under the License.
18-
* =========================LICENSE_END==================================
1917
*/
2018
package com.espirit.moddev.basicworkflows.delete;
2119

@@ -379,17 +377,22 @@ private Map<String, List<IDProvider>> getDeleteElements() {
379377
regardPageStore();
380378
// add current PageRefStore element and PageRefFolders (up-recursive)
381379
regardPageRefStore();
382-
}
383-
if (idProvider instanceof DocumentGroup) {
380+
} else if (idProvider instanceof DocumentGroup) {
384381
// add current PageRefStore element and PageRefFolders (up-recursive)
385382
regardPageRefStore();
386-
}
387383
//Added for media management in CC (since FS 5.2)
388-
if (idProvider instanceof Media || idProvider instanceof MediaFolder) {
384+
} else if (idProvider instanceof Media || idProvider instanceof MediaFolder) {
389385
//false == don't delete parent folder, see FSFIVE-53
390386
final boolean deleteEmptyParent = true;
391387
// add current MediaElement element and MediaFolder (up-recursive)
392388
regardMediaStore(deleteEmptyParent);
389+
} else {
390+
deleteObjects.add(idProvider);
391+
392+
if (idProvider.getStore().getType() != Store.Type.TEMPLATESTORE) {
393+
// release parent folder
394+
releaseObjects.add(idProvider.getParent());
395+
}
393396
}
394397
} else {
395398
// JC

src/main/java/com/espirit/moddev/basicworkflows/delete/WfBranchIfFolderExecutable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BasicWorkflows Module
33
* %%
4-
* Copyright (C) 2012 - 2018 e-Spirit AG
4+
* Copyright (C) 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
55
* %%
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/com/espirit/moddev/basicworkflows/delete/WfCheckPrerequisitesExecutable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BasicWorkflows Module
33
* %%
4-
* Copyright (C) 2012 - 2018 e-Spirit AG
4+
* Copyright (C) 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
55
* %%
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/com/espirit/moddev/basicworkflows/delete/WfDeleteExecutable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BasicWorkflows Module
33
* %%
4-
* Copyright (C) 2012 - 2018 e-Spirit AG
4+
* Copyright (C) 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
55
* %%
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

src/main/java/com/espirit/moddev/basicworkflows/delete/WfDeleteTestExecutable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* BasicWorkflows Module
33
* %%
4-
* Copyright (C) 2012 - 2018 e-Spirit AG
4+
* Copyright (C) 2012 - 2023 Crownpeak Technology GmbH - https://www.crownpeak.com
55
* %%
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)