mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Compare commits
45 Commits
23.1.0.164
...
21.15
Author | SHA1 | Date | |
---|---|---|---|
|
5799c0943c | ||
|
9defe1c2ed | ||
|
10f2894503 | ||
|
604369fd2a | ||
|
647e17e4a0 | ||
|
397d6fdaee | ||
|
35052404fe | ||
|
6ba66513f2 | ||
|
e5886e2104 | ||
|
5ad1d9752c | ||
|
67deb82f06 | ||
|
a067b1dba5 | ||
|
55f9c9d46d | ||
|
f070ed46a7 | ||
|
c9636c84a2 | ||
|
4e764a3106 | ||
|
bbb668b446 | ||
|
c9b9a9b239 | ||
|
01fb7f45a3 | ||
|
41c4b34d8d | ||
|
36bf081b59 | ||
|
2a5892de78 | ||
|
d302606318 | ||
|
7ebad61406 | ||
|
587087389e | ||
|
57c3605d63 | ||
|
2cb318a18e | ||
|
bd7af1f39c | ||
|
7885c6a78b | ||
|
d42e9ef993 | ||
|
197590eef4 | ||
|
102f59cde1 | ||
|
529699b5e1 | ||
|
96456ec719 | ||
|
71bbb579e6 | ||
|
51dcf28756 | ||
|
1639a17451 | ||
|
585e6042cb | ||
|
8364211384 | ||
|
f68d304d57 | ||
|
b55e1114e6 | ||
|
0e23ba37c6 | ||
|
38a4d378d9 | ||
|
65a562cd73 | ||
|
8eab098317 |
70
.github/workflows/ci.yml
vendored
70
.github/workflows/ci.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
((github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) && github.event_name != 'pull_request') &&
|
((github.ref_name == 'master' || startsWith(github.ref_name, 'release/')) && github.event_name != 'pull_request') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -66,20 +66,6 @@ jobs:
|
|||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
pmd_scan:
|
|
||||||
name: "PMD Scan"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [prepare]
|
|
||||||
if: >
|
|
||||||
github.event_name == 'pull_request' &&
|
|
||||||
!contains(github.event.head_commit.message, '[skip pmd]') &&
|
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
|
||||||
steps:
|
|
||||||
- uses: Alfresco/ya-pmd-scan@v1.0.0
|
|
||||||
with:
|
|
||||||
fail-on-new-issues: "false"
|
|
||||||
|
|
||||||
all_unit_tests_suite:
|
all_unit_tests_suite:
|
||||||
name: "Core, Data-Model, Repository - AllUnitTestsSuite - Build and test"
|
name: "Core, Data-Model, Repository - AllUnitTestsSuite - Build and test"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -87,7 +73,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip repo]') &&
|
!contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -108,7 +94,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip repo]') &&
|
!contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -153,7 +139,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip db]')) ||
|
!contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
contains(github.event.head_commit.message, '[db]')) &&
|
contains(github.event.head_commit.message, '[db]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -183,7 +169,7 @@ jobs:
|
|||||||
contains(github.event.head_commit.message, '[latest db]') ||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
contains(github.event.head_commit.message, '[db]')) &&
|
contains(github.event.head_commit.message, '[db]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -209,7 +195,7 @@ jobs:
|
|||||||
contains(github.event.head_commit.message, '[latest db]') ||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
contains(github.event.head_commit.message, '[db]')) &&
|
contains(github.event.head_commit.message, '[db]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -234,7 +220,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip db]')) ||
|
!contains(github.event.head_commit.message, '[skip db]')) ||
|
||||||
contains(github.event.head_commit.message, '[db]')) &&
|
contains(github.event.head_commit.message, '[db]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -259,7 +245,7 @@ jobs:
|
|||||||
contains(github.event.head_commit.message, '[latest db]') ||
|
contains(github.event.head_commit.message, '[latest db]') ||
|
||||||
contains(github.event.head_commit.message, '[db]')) &&
|
contains(github.event.head_commit.message, '[db]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -282,7 +268,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip repo]') &&
|
!contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -303,7 +289,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip repo]') &&
|
!contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -372,7 +358,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip tas]')) ||
|
!contains(github.event.head_commit.message, '[skip tas]')) ||
|
||||||
contains(github.event.head_commit.message, '[tas]')) &&
|
contains(github.event.head_commit.message, '[tas]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -439,7 +425,7 @@ jobs:
|
|||||||
if: >
|
if: >
|
||||||
!contains(github.event.head_commit.message, '[skip repo]') &&
|
!contains(github.event.head_commit.message, '[skip repo]') &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
||||||
@@ -462,7 +448,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip ags]')) ||
|
!contains(github.event.head_commit.message, '[skip ags]')) ||
|
||||||
contains(github.event.head_commit.message, '[ags]')) &&
|
contains(github.event.head_commit.message, '[ags]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -493,7 +479,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip ags]')) ||
|
!contains(github.event.head_commit.message, '[skip ags]')) ||
|
||||||
contains(github.event.head_commit.message, '[ags on MySQL]')) &&
|
contains(github.event.head_commit.message, '[ags on MySQL]')) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -524,7 +510,7 @@ jobs:
|
|||||||
!contains(github.event.head_commit.message, '[skip ags]') && !contains(github.event.head_commit.message, '[skip tas]')) ||
|
!contains(github.event.head_commit.message, '[skip ags]') && !contains(github.event.head_commit.message, '[skip tas]')) ||
|
||||||
(contains(github.event.head_commit.message, '[ags]') && contains(github.event.head_commit.message, '[tas]'))) &&
|
(contains(github.event.head_commit.message, '[ags]') && contains(github.event.head_commit.message, '[tas]'))) &&
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
!contains(github.event.head_commit.message, '[skip tests]') &&
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
!contains(github.event.head_commit.message, '[force')
|
||||||
env:
|
env:
|
||||||
REQUIRES_LOCAL_IMAGES: true
|
REQUIRES_LOCAL_IMAGES: true
|
||||||
steps:
|
steps:
|
||||||
@@ -561,27 +547,3 @@ jobs:
|
|||||||
aws s3 cp --acl private ./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports/rm-automation-community-rest-api.log s3://ags-travis-artifacts/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests/rm-automation-community-rest-api.log
|
aws s3 cp --acl private ./amps/ags/rm-automation/rm-automation-community-rest-api/target/reports/rm-automation-community-rest-api.log s3://ags-travis-artifacts/community/${{ github.run_number }}/AGS-Community-Rest-API-Tests/rm-automation-community-rest-api.log
|
||||||
- name: "Clean Maven cache"
|
- name: "Clean Maven cache"
|
||||||
run: bash ./scripts/ci/cleanup_cache.sh
|
run: bash ./scripts/ci/cleanup_cache.sh
|
||||||
|
|
||||||
ags_start_api_explorer:
|
|
||||||
name: "Test Tomcat deployment of api explorer"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [ prepare ]
|
|
||||||
if: >
|
|
||||||
(((github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request' ) &&
|
|
||||||
!contains(github.event.head_commit.message, '[skip ags]')) ||
|
|
||||||
contains(github.event.head_commit.message, '[ags]')) &&
|
|
||||||
!contains(github.event.head_commit.message, '[skip tests]') &&
|
|
||||||
!contains(github.event.head_commit.message, '[force]')
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.33.0
|
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.33.0
|
|
||||||
- name: "Build"
|
|
||||||
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
||||||
run: |
|
|
||||||
bash ./scripts/ci/init.sh
|
|
||||||
bash ./scripts/ci/build.sh
|
|
||||||
- name: "Test Tomcat deployment"
|
|
||||||
run: |
|
|
||||||
mvn verify -Pags,start-api-explorer -DskipTests &
|
|
||||||
${{ env.TAS_SCRIPTS }}/wait-for-alfresco-start.sh "http://localhost:8085/api-explorer"
|
|
||||||
|
@@ -3,12 +3,14 @@ Thanks for your interest in contributing to this project!
|
|||||||
|
|
||||||
The following is a set of guidelines for contributing to this library. Most of them will make the life of the reviewer easier and therefore decrease the time required for the patch be included in the next version.
|
The following is a set of guidelines for contributing to this library. Most of them will make the life of the reviewer easier and therefore decrease the time required for the patch be included in the next version.
|
||||||
|
|
||||||
Because this project forms a part of Alfresco Content Services, the guidelines are hosted in the [Alfresco Social Community](https://hub.alfresco.com/t5/alfresco-content-services-ecm/ct-p/ECM-software) where they can be referenced from multiple projects.
|
Because this project forms a part of Alfresco Content Services, the guidelines are hosted in the [Alfresco Social Community](http://community.alfresco.com/community/ecm) where they can be referenced from multiple projects.
|
||||||
|
|
||||||
|
Read an [overview on how this project is goverened](https://community.alfresco.com/docs/DOC-6385-project-overview-repository).
|
||||||
|
|
||||||
You can report an issue in the ALF project of the [Alfresco issue tracker](http://issues.alfresco.com).
|
You can report an issue in the ALF project of the [Alfresco issue tracker](http://issues.alfresco.com).
|
||||||
|
|
||||||
Read [instructions for a good issue report](https://hub.alfresco.com/t5/alfresco-content-services-hub/reporting-an-issue/ba-p/289727).
|
Read [instructions for a good issue report](https://community.alfresco.com/docs/DOC-6263-reporting-an-issue).
|
||||||
|
|
||||||
Read [instructions for making a contribution](https://hub.alfresco.com/t5/alfresco-content-services-hub/alfresco-contribution-agreement/ba-p/293276).
|
Read [instructions for making a contribution](https://community.alfresco.com/docs/DOC-6269-submitting-contributions).
|
||||||
|
|
||||||
Please follow [the coding standards](https://hub.alfresco.com/t5/alfresco-content-services-hub/coding-standards-for-alfresco-content-services/ba-p/290457).
|
Please follow [the coding standards](https://community.alfresco.com/docs/DOC-4658-coding-standards).
|
||||||
|
@@ -26,7 +26,7 @@ Repository is a library packaged as a jar file which contains the following:
|
|||||||
|
|
||||||
Remote API is a library packaged as a jar file which contains the following:
|
Remote API is a library packaged as a jar file which contains the following:
|
||||||
* REST API framework
|
* REST API framework
|
||||||
* WebScript implementations including [V1 REST APIs](https://hub.alfresco.com/t5/alfresco-content-services-blog/v1-rest-api-10-things-you-should-know/ba-p/287692)
|
* WebScript implementations including [V1 REST APIs](https://community.alfresco.com/community/ecm/blog/2017/05/02/v1-rest-api-10-things-you-should-know)
|
||||||
* [OpenCMIS](https://chemistry.apache.org/java/opencmis.html) implementations
|
* [OpenCMIS](https://chemistry.apache.org/java/opencmis.html) implementations
|
||||||
|
|
||||||
#### Artifacts
|
#### Artifacts
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-amps</artifactId>
|
<artifactId>alfresco-community-repo-amps</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-automation-community-repo</artifactId>
|
<artifactId>alfresco-governance-services-automation-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.docker-java</groupId>
|
<groupId>com.github.docker-java</groupId>
|
||||||
<artifactId>docker-java</artifactId>
|
<artifactId>docker-java</artifactId>
|
||||||
<version>3.3.2</version>
|
<version>3.2.13</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -512,12 +512,7 @@ public abstract class BaseAPI
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpResponse httpResponse = doRequestJson(HttpPost.class, requestUrl, adminUser, adminPassword, requestParams);
|
HttpResponse httpResponse = doRequestJson(HttpPost.class, requestUrl, adminUser, adminPassword, requestParams);
|
||||||
if (httpResponse.getStatusLine().getStatusCode() != expectedStatusCode)
|
assertEquals("POST request to " + requestUrl + " was not successful.", expectedStatusCode, httpResponse.getStatusLine().getStatusCode());
|
||||||
{
|
|
||||||
// It's only possible to stream the response body once, so ensure we only do this if the test has failed.
|
|
||||||
JSONObject responseJson = responseBodyToJson(httpResponse);
|
|
||||||
assertEquals("POST request to " + requestUrl + " was not successful. Response: " + responseJson, expectedStatusCode, httpResponse.getStatusLine().getStatusCode());
|
|
||||||
}
|
|
||||||
return httpResponse;
|
return httpResponse;
|
||||||
}
|
}
|
||||||
catch (InstantiationException | IllegalAccessException error)
|
catch (InstantiationException | IllegalAccessException error)
|
||||||
@@ -526,32 +521,6 @@ public abstract class BaseAPI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Try to convert the response body to a JSON object.
|
|
||||||
*
|
|
||||||
* @param response The response.
|
|
||||||
* @return The JSON object or null if it was not possible to convert the response.
|
|
||||||
*/
|
|
||||||
private JSONObject responseBodyToJson(HttpResponse response)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return new JSONObject(EntityUtils.toString(response.getEntity()));
|
|
||||||
}
|
|
||||||
catch (JSONException error)
|
|
||||||
{
|
|
||||||
LOGGER.error("Converting message body to JSON failed. Body: {}", response.getEntity().getContent(), error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (ParseException | IOException error)
|
|
||||||
{
|
|
||||||
LOGGER.error("Parsing message body failed.", error);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper method for handling generic HTTP requests
|
* Helper method for handling generic HTTP requests
|
||||||
* @param requestType request type (a subclass of {@link HttpRequestBase})
|
* @param requestType request type (a subclass of {@link HttpRequestBase})
|
||||||
@@ -589,7 +558,18 @@ public abstract class BaseAPI
|
|||||||
HttpResponse response = client.execute(adminUser, adminPassword, request);
|
HttpResponse response = client.execute(adminUser, adminPassword, request);
|
||||||
LOGGER.info("Response: {}", response.getStatusLine());
|
LOGGER.info("Response: {}", response.getStatusLine());
|
||||||
|
|
||||||
responseBody = responseBodyToJson(response);
|
try
|
||||||
|
{
|
||||||
|
responseBody = new JSONObject(EntityUtils.toString(response.getEntity()));
|
||||||
|
}
|
||||||
|
catch (JSONException error)
|
||||||
|
{
|
||||||
|
LOGGER.error("Converting message body to JSON failed. Body: {}", responseBody, error);
|
||||||
|
}
|
||||||
|
catch (ParseException | IOException error)
|
||||||
|
{
|
||||||
|
LOGGER.error("Parsing message body failed.", error);
|
||||||
|
}
|
||||||
|
|
||||||
switch (response.getStatusLine().getStatusCode())
|
switch (response.getStatusLine().getStatusCode())
|
||||||
{
|
{
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
SOLR6_TAG=2.0.7-A5
|
SOLR6_TAG=2.0.7-A5
|
||||||
POSTGRES_TAG=14.4
|
POSTGRES_TAG=14.4
|
||||||
ACTIVEMQ_TAG=5.17.4-jre17-rockylinux8
|
ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -436,7 +436,7 @@
|
|||||||
</run>
|
</run>
|
||||||
</image>
|
</image>
|
||||||
<image>
|
<image>
|
||||||
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre17-rockylinux8</name>
|
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre11-rockylinux8</name>
|
||||||
<run>
|
<run>
|
||||||
<ports>
|
<ports>
|
||||||
<port>${activemq.port1}:${activemq.port1}</port>
|
<port>${activemq.port1}:${activemq.port1}</port>
|
||||||
@@ -507,7 +507,7 @@
|
|||||||
</run>
|
</run>
|
||||||
</image>
|
</image>
|
||||||
<image>
|
<image>
|
||||||
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre17-rockylinux8</name>
|
<name>alfresco/alfresco-activemq:${dependency.activemq.version}-jre11-rockylinux8</name>
|
||||||
<run>
|
<run>
|
||||||
<ports>
|
<ports>
|
||||||
<port>${activemq.port1}:${activemq.port1}</port>
|
<port>${activemq.port1}:${activemq.port1}</port>
|
||||||
|
@@ -3,9 +3,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Version label
|
# Version label
|
||||||
version.major=23
|
version.major=7
|
||||||
version.minor=1
|
version.minor=4
|
||||||
version.revision=0
|
version.revision=1
|
||||||
version.label=
|
version.label=
|
||||||
|
|
||||||
# Edition label
|
# Edition label
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
<artifactId>alfresco-governance-services-community-repo-parent</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
@@ -37,37 +37,21 @@
|
|||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.cargo</groupId>
|
<groupId>org.apache.tomcat.maven</groupId>
|
||||||
<artifactId>cargo-maven3-plugin</artifactId>
|
<artifactId>tomcat7-maven-plugin</artifactId>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>run-war</id>
|
<id>run-war</id>
|
||||||
<phase>verify</phase>
|
|
||||||
<goals>
|
<goals>
|
||||||
<goal>run</goal>
|
<goal>run-war</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<phase>verify</phase>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
<configuration>
|
<configuration>
|
||||||
<container>
|
<useSeparateTomcatClassLoader>true</useSeparateTomcatClassLoader>
|
||||||
<containerId>tomcat9x</containerId>
|
<path>/api-explorer</path>
|
||||||
<type>embedded</type>
|
<port>8085</port>
|
||||||
<log>target/cargo.log</log>
|
|
||||||
</container>
|
|
||||||
<configuration>
|
|
||||||
<properties>
|
|
||||||
<cargo.servlet.port>8085</cargo.servlet.port>
|
|
||||||
</properties>
|
|
||||||
</configuration>
|
|
||||||
<deployables>
|
|
||||||
<deployable>
|
|
||||||
<type>war</type>
|
|
||||||
<properties>
|
|
||||||
<context>/api-explorer</context>
|
|
||||||
</properties>
|
|
||||||
<pingURL>http://localhost:8085/api-explorer</pingURL>
|
|
||||||
</deployable>
|
|
||||||
</deployables>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-amps</artifactId>
|
<artifactId>alfresco-community-repo-amps</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
Binary file not shown.
@@ -48,7 +48,7 @@ function tagQuery()
|
|||||||
}
|
}
|
||||||
query += "ASPECT:\"{http://www.alfresco.org/model/content/1.0}taggable\"";
|
query += "ASPECT:\"{http://www.alfresco.org/model/content/1.0}taggable\"";
|
||||||
//MNT-2118 Share inconsistencies when displaying locked files with tags
|
//MNT-2118 Share inconsistencies when displaying locked files with tags
|
||||||
query += " -ASPECT:\"{http://www.alfresco.org/model/content/1.0}workingcopy\"";
|
query += " AND -ASPECT:\"{http://www.alfresco.org/model/content/1.0}workingcopy\"";
|
||||||
|
|
||||||
// MNT-20091 check to prevent cm:taggable with NULL
|
// MNT-20091 check to prevent cm:taggable with NULL
|
||||||
query += " AND ISNOTNULL:\"{http://www.alfresco.org/model/content/1.0}taggable\"";
|
query += " AND ISNOTNULL:\"{http://www.alfresco.org/model/content/1.0}taggable\"";
|
||||||
@@ -60,7 +60,7 @@ function tagQuery()
|
|||||||
query: query,
|
query: query,
|
||||||
language: "lucene",
|
language: "lucene",
|
||||||
page: {
|
page: {
|
||||||
// query minimum rows because all usefull info will come with facets
|
// query minimum rows because all useful info will come with facets
|
||||||
maxItems: 1,
|
maxItems: 1,
|
||||||
skipCount: 0
|
skipCount: 0
|
||||||
},
|
},
|
||||||
|
@@ -23,10 +23,6 @@ function runAction(p_params)
|
|||||||
if (p_params.destNode.hasAspect("cm:lockable") && !p_params.destNode.hasAspect("trx:transferred"))
|
if (p_params.destNode.hasAspect("cm:lockable") && !p_params.destNode.hasAspect("trx:transferred"))
|
||||||
{
|
{
|
||||||
p_params.destNode.unlock();
|
p_params.destNode.unlock();
|
||||||
if(p_params.destNode.hasAspect("gd2:editingInGoogle"))
|
|
||||||
{
|
|
||||||
p_params.destNode.removeAspect("gd2:editingInGoogle");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var resultId = originalDoc.name,
|
var resultId = originalDoc.name,
|
||||||
|
@@ -24,7 +24,7 @@ function getCategoryNode()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var queryPath = "/" + catAspect + "/" + encodePath(path);
|
var queryPath = "/" + catAspect + "/" + encodePath(path);
|
||||||
categoryResults = search.luceneSearch("+PATH:\"" + queryPath + "/*\" -PATH:\"" + queryPath + "/member\"");
|
categoryResults = search.luceneSearch("+PATH:\"" + queryPath + "/*\" AND -PATH:\"" + queryPath + "/member\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
// make each result an object and indicate it is selectable in the UI
|
// make each result an object and indicate it is selectable in the UI
|
||||||
|
@@ -29,7 +29,7 @@ function main()
|
|||||||
{
|
{
|
||||||
query = "+PATH:\"" + parsedArgs.pathNode.qnamePath + "//*\" ";
|
query = "+PATH:\"" + parsedArgs.pathNode.qnamePath + "//*\" ";
|
||||||
}
|
}
|
||||||
query += "+TYPE:\"cm:content\" +@cm\\:content.mimetype:image/*";
|
query += "AND +TYPE:\"cm:content\" AND +@cm\\:content.mimetype:\"image/*\"";
|
||||||
|
|
||||||
// Sort the list before trimming to page chunks
|
// Sort the list before trimming to page chunks
|
||||||
assets = search.query(
|
assets = search.query(
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -92,15 +92,16 @@ public class HttpClient4Factory
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Setting a connectionManager overrides these properties
|
//Setting a connectionManager overrides these properties
|
||||||
clientBuilder.setMaxConnTotal(config.getMaxTotalConnections());
|
config.getMaxTotalConnections().ifPresent(v -> clientBuilder.setMaxConnTotal(v));
|
||||||
clientBuilder.setMaxConnPerRoute(config.getMaxHostConnections());
|
config.getMaxHostConnections().ifPresent(v -> clientBuilder.setMaxConnPerRoute(v));
|
||||||
}
|
}
|
||||||
|
|
||||||
RequestConfig requestConfig = RequestConfig.custom()
|
RequestConfig.Builder requestConfigBuilder = RequestConfig.custom();
|
||||||
.setConnectTimeout(config.getConnectionTimeout())
|
config.getConnectionTimeout().ifPresent(v -> requestConfigBuilder.setConnectTimeout(v));
|
||||||
.setSocketTimeout(config.getSocketTimeout())
|
config.getConnectionRequestTimeout().ifPresent(v -> requestConfigBuilder.setConnectionRequestTimeout(v));
|
||||||
.setConnectionRequestTimeout(config.getConnectionRequestTimeout())
|
config.getSocketTimeout().ifPresent(v -> requestConfigBuilder.setSocketTimeout(v));
|
||||||
.build();
|
|
||||||
|
RequestConfig requestConfig = requestConfigBuilder.build();
|
||||||
|
|
||||||
clientBuilder.setDefaultRequestConfig(requestConfig);
|
clientBuilder.setDefaultRequestConfig(requestConfig);
|
||||||
|
|
||||||
@@ -135,8 +136,8 @@ public class HttpClient4Factory
|
|||||||
.register("http", PlainConnectionSocketFactory.getSocketFactory())
|
.register("http", PlainConnectionSocketFactory.getSocketFactory())
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
poolingHttpClientConnectionManager.setMaxTotal(config.getMaxTotalConnections());
|
config.getMaxTotalConnections().ifPresent(v -> poolingHttpClientConnectionManager.setMaxTotal(v));
|
||||||
poolingHttpClientConnectionManager.setDefaultMaxPerRoute(config.getMaxHostConnections());
|
config.getMaxHostConnections().ifPresent(v -> poolingHttpClientConnectionManager.setDefaultMaxPerRoute(v));
|
||||||
|
|
||||||
return poolingHttpClientConnectionManager;
|
return poolingHttpClientConnectionManager;
|
||||||
}
|
}
|
||||||
|
@@ -85,17 +85,27 @@ public class HttpClientConfig
|
|||||||
this.keyStore = new AlfrescoKeyStoreImpl(sslEncryptionParameters.getKeyStoreParameters(), keyResourceLoader);
|
this.keyStore = new AlfrescoKeyStoreImpl(sslEncryptionParameters.getKeyStoreParameters(), keyResourceLoader);
|
||||||
this.trustStore = new AlfrescoKeyStoreImpl(sslEncryptionParameters.getTrustStoreParameters(), keyResourceLoader);
|
this.trustStore = new AlfrescoKeyStoreImpl(sslEncryptionParameters.getTrustStoreParameters(), keyResourceLoader);
|
||||||
|
|
||||||
config = retrieveConfig(serviceName);
|
config = retrieveConfig();
|
||||||
checkUnsupportedProperties(config);
|
checkUnsupportedProperties(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method used for retrieving HttpClient config from Global Properties
|
* Method used for retrieving HttpClient config from Global Properties
|
||||||
* @param serviceName name of used service
|
* that can also have values provided/overridden through System Properties
|
||||||
|
*
|
||||||
* @return map of properties
|
* @return map of properties
|
||||||
*/
|
*/
|
||||||
private Map<String, String> retrieveConfig(String serviceName)
|
private Map<String, String> retrieveConfig()
|
||||||
{
|
{
|
||||||
|
Map<String, String> resultProperties = getHttpClientPropertiesForService(properties);
|
||||||
|
Map<String, String> systemProperties = getHttpClientPropertiesForService(System.getProperties());
|
||||||
|
|
||||||
|
systemProperties.forEach((k, v) -> resultProperties.put(k, v)); //Override/Add to Global Properties results with values from System Properties
|
||||||
|
|
||||||
|
return resultProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Map<String, String> getHttpClientPropertiesForService(Properties properties) {
|
||||||
return properties.keySet().stream()
|
return properties.keySet().stream()
|
||||||
.filter(key -> key instanceof String)
|
.filter(key -> key instanceof String)
|
||||||
.map(Object::toString)
|
.map(Object::toString)
|
||||||
@@ -112,79 +122,75 @@ public class HttpClientConfig
|
|||||||
.forEach(propertyName -> LOGGER.warn(String.format("For service [%s], an unsupported property [%s] is set", serviceName, propertyName)));
|
.forEach(propertyName -> LOGGER.warn(String.format("For service [%s], an unsupported property [%s] is set", serviceName, propertyName)));
|
||||||
}
|
}
|
||||||
|
|
||||||
private Integer getIntegerProperty(HttpClientPropertiesEnum property)
|
private Optional<Integer> getIntegerProperty(HttpClientPropertiesEnum property)
|
||||||
{
|
{
|
||||||
return Integer.parseInt(extractValueFromConfig(property).orElse("0"));
|
Optional<String> optionalProperty = extractValueFromConfig(property);
|
||||||
|
|
||||||
|
return optionalProperty.isPresent() ? Optional.of(Integer.parseInt(optionalProperty.get())) : Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Boolean getBooleanProperty(HttpClientPropertiesEnum property)
|
private Optional<Boolean> getBooleanProperty(HttpClientPropertiesEnum property)
|
||||||
{
|
{
|
||||||
return Boolean.parseBoolean(extractValueFromConfig(property).orElse("false"));
|
Optional<String> optionalProperty = extractValueFromConfig(property);
|
||||||
|
|
||||||
|
return optionalProperty.isPresent() ? Optional.of(Boolean.parseBoolean(optionalProperty.get())) : Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Optional<String> extractValueFromConfig(HttpClientPropertiesEnum property)
|
private Optional<String> extractValueFromConfig(HttpClientPropertiesEnum property)
|
||||||
{
|
{
|
||||||
Optional<String> optionalProperty = Optional.ofNullable(config.get(property.name));
|
return Optional.ofNullable(config.get(property.name));
|
||||||
if(property.isRequired && optionalProperty.isEmpty())
|
|
||||||
{
|
|
||||||
String msg = String.format("Required property: '%s' is empty.", property.name);
|
|
||||||
throw new HttpClientException(msg);
|
|
||||||
}
|
|
||||||
return optionalProperty;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getConnectionTimeout()
|
public Optional<Integer> getConnectionTimeout()
|
||||||
{
|
{
|
||||||
return getIntegerProperty(HttpClientPropertiesEnum.CONNECTION_REQUEST_TIMEOUT);
|
return getIntegerProperty(HttpClientPropertiesEnum.CONNECTION_REQUEST_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getSocketTimeout()
|
public Optional<Integer> getSocketTimeout()
|
||||||
{
|
{
|
||||||
return getIntegerProperty(HttpClientPropertiesEnum.SOCKET_TIMEOUT);
|
return getIntegerProperty(HttpClientPropertiesEnum.SOCKET_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getConnectionRequestTimeout()
|
public Optional<Integer> getConnectionRequestTimeout()
|
||||||
{
|
{
|
||||||
return getIntegerProperty(HttpClientPropertiesEnum.CONNECTION_REQUEST_TIMEOUT);
|
return getIntegerProperty(HttpClientPropertiesEnum.CONNECTION_REQUEST_TIMEOUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getMaxTotalConnections()
|
public Optional<Integer> getMaxTotalConnections()
|
||||||
{
|
{
|
||||||
return getIntegerProperty(HttpClientPropertiesEnum.MAX_TOTAL_CONNECTIONS);
|
return getIntegerProperty(HttpClientPropertiesEnum.MAX_TOTAL_CONNECTIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Integer getMaxHostConnections()
|
public Optional<Integer> getMaxHostConnections()
|
||||||
{
|
{
|
||||||
return getIntegerProperty(HttpClientPropertiesEnum.MAX_HOST_CONNECTIONS);
|
return getIntegerProperty(HttpClientPropertiesEnum.MAX_HOST_CONNECTIONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Boolean isMTLSEnabled()
|
public boolean isMTLSEnabled()
|
||||||
{
|
{
|
||||||
return getBooleanProperty(HttpClientPropertiesEnum.MTLS_ENABLED);
|
return getBooleanProperty(HttpClientPropertiesEnum.MTLS_ENABLED).orElse(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isHostnameVerificationDisabled()
|
public boolean isHostnameVerificationDisabled()
|
||||||
{
|
{
|
||||||
return getBooleanProperty(HttpClientPropertiesEnum.HOSTNAME_VERIFICATION_DISABLED);
|
return getBooleanProperty(HttpClientPropertiesEnum.HOSTNAME_VERIFICATION_DISABLED).orElse(Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private enum HttpClientPropertiesEnum
|
private enum HttpClientPropertiesEnum
|
||||||
{
|
{
|
||||||
CONNECTION_TIMEOUT("connectionTimeout", true),
|
CONNECTION_TIMEOUT("connectionTimeout"),
|
||||||
SOCKET_TIMEOUT("socketTimeout", true),
|
SOCKET_TIMEOUT("socketTimeout"),
|
||||||
CONNECTION_REQUEST_TIMEOUT("connectionRequestTimeout", true),
|
CONNECTION_REQUEST_TIMEOUT("connectionRequestTimeout"),
|
||||||
MAX_TOTAL_CONNECTIONS("maxTotalConnections", true),
|
MAX_TOTAL_CONNECTIONS("maxTotalConnections"),
|
||||||
MAX_HOST_CONNECTIONS("maxHostConnections", true),
|
MAX_HOST_CONNECTIONS("maxHostConnections"),
|
||||||
HOSTNAME_VERIFICATION_DISABLED("hostnameVerificationDisabled", false),
|
HOSTNAME_VERIFICATION_DISABLED("hostnameVerificationDisabled"),
|
||||||
MTLS_ENABLED("mTLSEnabled", true);
|
MTLS_ENABLED("mTLSEnabled");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private final Boolean isRequired;
|
|
||||||
|
|
||||||
HttpClientPropertiesEnum(String propertyName, Boolean isRequired)
|
HttpClientPropertiesEnum(String propertyName)
|
||||||
{
|
{
|
||||||
this.name = propertyName;
|
this.name = propertyName;
|
||||||
this.isRequired = isRequired;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final List<String> supportedProperties = new ArrayList<>();
|
private static final List<String> supportedProperties = new ArrayList<>();
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jibx</groupId>
|
<groupId>org.jibx</groupId>
|
||||||
<artifactId>jibx-run</artifactId>
|
<artifactId>jibx-run</artifactId>
|
||||||
<version>1.4.2</version>
|
<version>1.3.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.jackson.core</groupId>
|
<groupId>com.fasterxml.jackson.core</groupId>
|
||||||
@@ -134,7 +134,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.woodstox</groupId>
|
<groupId>com.fasterxml.woodstox</groupId>
|
||||||
<artifactId>woodstox-core</artifactId>
|
<artifactId>woodstox-core</artifactId>
|
||||||
<version>6.5.1</version>
|
<version>6.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- the cxf libs were updated, see dependencyManagement section -->
|
<!-- the cxf libs were updated, see dependencyManagement section -->
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
@@ -9,6 +9,6 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
</project>
|
</project>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
SOLR6_TAG=2.0.7-A5
|
SOLR6_TAG=2.0.7-A5
|
||||||
POSTGRES_TAG=14.4
|
POSTGRES_TAG=14.4
|
||||||
ACTIVEMQ_TAG=5.17.4-jre17-rockylinux8
|
ACTIVEMQ_TAG=5.17.1-jre11-rockylinux8
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
@@ -16,12 +16,12 @@
|
|||||||
</organization>
|
</organization>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.build.sourceVersion>17</maven.build.sourceVersion>
|
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<chemistry-opencmis-commons-api>1.1.0</chemistry-opencmis-commons-api>
|
<chemistry-opencmis-commons-api>1.1.0</chemistry-opencmis-commons-api>
|
||||||
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
<maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
|
||||||
<maven-release.version>2.5.3</maven-release.version>
|
<maven-release.version>2.5.3</maven-release.version>
|
||||||
<java.version>17</java.version>
|
<java.version>11</java.version>
|
||||||
<suiteXmlFile>${project.basedir}/src/test/resources/cmis-suite.xml</suiteXmlFile>
|
<suiteXmlFile>${project.basedir}/src/test/resources/cmis-suite.xml</suiteXmlFile>
|
||||||
<cmis.binding />
|
<cmis.binding />
|
||||||
<cmis.basePath />
|
<cmis.basePath />
|
||||||
@@ -58,6 +58,12 @@
|
|||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jboss.resteasy</groupId>
|
||||||
|
<artifactId>resteasy-jackson2-provider</artifactId>
|
||||||
|
<version>4.7.1.Final</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- alfresco tester settings -->
|
<!-- alfresco tester settings -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco.tas</groupId>
|
<groupId>org.alfresco.tas</groupId>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -8,19 +8,20 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<suiteXmlFile>${project.basedir}/src/test/resources/restapi-suite.xml</suiteXmlFile>
|
<suiteXmlFile>${project.basedir}/src/test/resources/restapi-suite.xml</suiteXmlFile>
|
||||||
<maven.build.sourceVersion>17</maven.build.sourceVersion>
|
<maven.build.sourceVersion>11</maven.build.sourceVersion>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<rest.api.explorer.branch>master</rest.api.explorer.branch>
|
<rest.api.explorer.branch>master</rest.api.explorer.branch>
|
||||||
<httpclient-osgi-version>4.5.6</httpclient-osgi-version>
|
<httpclient-osgi-version>4.5.6</httpclient-osgi-version>
|
||||||
<org.glassfish.version>1.1.4</org.glassfish.version>
|
<org.glassfish.version>1.1.4</org.glassfish.version>
|
||||||
<commons-lang3.version>3.12.0</commons-lang3.version>
|
<commons-lang3.version>3.12.0</commons-lang3.version>
|
||||||
<scribejava-apis.version>8.3.3</scribejava-apis.version>
|
<scribejava-apis.version>8.3.1</scribejava-apis.version>
|
||||||
<java.version>17</java.version>
|
<license-maven-plugin.version>2.0.1.alfresco-2</license-maven-plugin.version>
|
||||||
|
<java.version>11</java.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<profiles>
|
<profiles>
|
||||||
@@ -84,13 +85,6 @@
|
|||||||
<version>${commons-lang3.version}</version>
|
<version>${commons-lang3.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.awaitility</groupId>
|
|
||||||
<artifactId>awaitility</artifactId>
|
|
||||||
<version>${dependency.awaitility.version}</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<!-- REST ASSURED -->
|
<!-- REST ASSURED -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.httpcomponents</groupId>
|
<groupId>org.apache.httpcomponents</groupId>
|
||||||
@@ -171,14 +165,14 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy</artifactId>
|
<artifactId>groovy</artifactId>
|
||||||
<version>3.0.18</version>
|
<version>3.0.16</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-json-->
|
<!-- https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-json-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.codehaus.groovy</groupId>
|
<groupId>org.codehaus.groovy</groupId>
|
||||||
<artifactId>groovy-json</artifactId>
|
<artifactId>groovy-json</artifactId>
|
||||||
<version>3.0.18</version>
|
<version>3.0.16</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
@@ -1,190 +0,0 @@
|
|||||||
package org.alfresco.rest.search;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generated by 'krystian' on '2023-06-12 18:46' from 'Alfresco Content Services REST API' swagger file
|
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
|
||||||
* Base Path {@linkplain /alfresco/api/-default-/public/search/versions/1}
|
|
||||||
*/
|
|
||||||
public class RestRequestDefaultsModel extends TestModel implements IRestModel<RestRequestDefaultsModel>
|
|
||||||
{
|
|
||||||
@JsonProperty(value = "entry")
|
|
||||||
RestRequestDefaultsModel model;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public RestRequestDefaultsModel onModel()
|
|
||||||
{
|
|
||||||
return model;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
A list of query fields/properties used to expand TEXT: queries.
|
|
||||||
The default is cm:content.
|
|
||||||
You could include all content properties using d:content or list all individual content properties or types.
|
|
||||||
As more terms are included the query size, complexity, memory impact and query time will increase.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
private List<String> textAttributes;
|
|
||||||
/**
|
|
||||||
The default way to combine query parts when AND or OR is not explicitly stated - includes ! - +
|
|
||||||
one two three
|
|
||||||
(one two three)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
private String defaultFTSOperator;
|
|
||||||
/**
|
|
||||||
The default way to combine query parts in field query groups when AND or OR is not explicitly stated - includes ! - +
|
|
||||||
FIELD:(one two three)
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
private String defaultFTSFieldOperator;
|
|
||||||
/**
|
|
||||||
The default name space to use if one is not provided
|
|
||||||
*/
|
|
||||||
|
|
||||||
private String namespace;
|
|
||||||
|
|
||||||
private String defaultFieldName;
|
|
||||||
|
|
||||||
public List<String> getTextAttributes()
|
|
||||||
{
|
|
||||||
return this.textAttributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTextAttributes(List<String> textAttributes)
|
|
||||||
{
|
|
||||||
this.textAttributes = textAttributes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDefaultFTSOperator()
|
|
||||||
{
|
|
||||||
return this.defaultFTSOperator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefaultFTSOperator(String defaultFTSOperator)
|
|
||||||
{
|
|
||||||
this.defaultFTSOperator = defaultFTSOperator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDefaultFTSFieldOperator()
|
|
||||||
{
|
|
||||||
return this.defaultFTSFieldOperator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefaultFTSFieldOperator(String defaultFTSFieldOperator)
|
|
||||||
{
|
|
||||||
this.defaultFTSFieldOperator = defaultFTSFieldOperator;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getNamespace()
|
|
||||||
{
|
|
||||||
return this.namespace;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setNamespace(String namespace)
|
|
||||||
{
|
|
||||||
this.namespace = namespace;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDefaultFieldName()
|
|
||||||
{
|
|
||||||
return this.defaultFieldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefaultFieldName(String defaultFieldName)
|
|
||||||
{
|
|
||||||
this.defaultFieldName = defaultFieldName;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "RestRequestDefaultsModel{" + "textAttributes=" + textAttributes + ", defaultFTSOperator='" + defaultFTSOperator + '\'' + ", defaultFTSFieldOperator='"
|
|
||||||
+ defaultFTSFieldOperator + '\'' + ", namespace='" + namespace + '\'' + ", defaultFieldName='" + defaultFieldName + '\'' + '}';
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o)
|
|
||||||
{
|
|
||||||
if (this == o)
|
|
||||||
return true;
|
|
||||||
if (o == null || getClass() != o.getClass())
|
|
||||||
return false;
|
|
||||||
RestRequestDefaultsModel that = (RestRequestDefaultsModel) o;
|
|
||||||
return Objects.equals(textAttributes, that.textAttributes) && Objects.equals(defaultFTSOperator, that.defaultFTSOperator) && Objects.equals(
|
|
||||||
defaultFTSFieldOperator, that.defaultFTSFieldOperator) && Objects.equals(namespace, that.namespace) && Objects.equals(defaultFieldName, that.defaultFieldName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
return Objects.hash(textAttributes, defaultFTSOperator, defaultFTSFieldOperator, namespace, defaultFieldName);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Builder builder()
|
|
||||||
{
|
|
||||||
return new Builder();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class Builder
|
|
||||||
{
|
|
||||||
private List<String> textAttributes;
|
|
||||||
private String defaultFTSOperator;
|
|
||||||
private String defaultFTSFieldOperator;
|
|
||||||
private String namespace;
|
|
||||||
private String defaultFieldName;
|
|
||||||
|
|
||||||
public Builder textAttributes(List<String> textAttributes)
|
|
||||||
{
|
|
||||||
this.textAttributes = textAttributes;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder defaultFTSOperator(String defaultFTSOperator)
|
|
||||||
{
|
|
||||||
this.defaultFTSOperator = defaultFTSOperator;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder defaultFTSFieldOperator(String defaultFTSFieldOperator)
|
|
||||||
{
|
|
||||||
this.defaultFTSFieldOperator = defaultFTSFieldOperator;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder namespace(String namespace)
|
|
||||||
{
|
|
||||||
this.namespace = namespace;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder defaultFieldName(String defaultFieldName)
|
|
||||||
{
|
|
||||||
this.defaultFieldName = defaultFieldName;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RestRequestDefaultsModel create()
|
|
||||||
{
|
|
||||||
RestRequestDefaultsModel defaults = new RestRequestDefaultsModel();
|
|
||||||
defaults.setTextAttributes(this.textAttributes);
|
|
||||||
defaults.setDefaultFTSOperator(this.defaultFTSOperator);
|
|
||||||
defaults.setDefaultFTSFieldOperator(this.defaultFTSFieldOperator);
|
|
||||||
defaults.setNamespace(this.namespace);
|
|
||||||
defaults.setDefaultFieldName(this.defaultFieldName);
|
|
||||||
|
|
||||||
return defaults;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@@ -1,105 +0,0 @@
|
|||||||
package org.alfresco.rest.search;
|
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import org.alfresco.rest.core.IRestModel;
|
|
||||||
import org.alfresco.utility.model.TestModel;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Generated by 'krystian' on '2023-06-12 18:46' from 'Alfresco Content Services REST API' swagger file
|
|
||||||
* Generated from 'Alfresco Content Services REST API' swagger file
|
|
||||||
* Base Path {@linkplain /alfresco/api/-default-/public/search/versions/1}
|
|
||||||
*/
|
|
||||||
public class RestRequestTemplatesModel extends TestModel implements IRestModel<RestRequestTemplatesModel>
|
|
||||||
{
|
|
||||||
@JsonProperty(value = "entry")
|
|
||||||
RestRequestTemplatesModel model;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public RestRequestTemplatesModel onModel()
|
|
||||||
{
|
|
||||||
return model;
|
|
||||||
}
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
private String template;
|
|
||||||
|
|
||||||
public String getName()
|
|
||||||
{
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTemplate()
|
|
||||||
{
|
|
||||||
return template;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTemplate(String template)
|
|
||||||
{
|
|
||||||
this.template = template;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString()
|
|
||||||
{
|
|
||||||
return "RestRequestTemplatesModel{" + "name='" + name + '\'' + ", template='" + template + '\'' + '}';
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o)
|
|
||||||
{
|
|
||||||
if (this == o)
|
|
||||||
return true;
|
|
||||||
if (o == null || getClass() != o.getClass())
|
|
||||||
return false;
|
|
||||||
RestRequestTemplatesModel that = (RestRequestTemplatesModel) o;
|
|
||||||
return Objects.equals(name, that.name) && Objects.equals(template, that.template);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode()
|
|
||||||
{
|
|
||||||
return Objects.hash(name, template);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Builder builder()
|
|
||||||
{
|
|
||||||
return new Builder();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class Builder
|
|
||||||
{
|
|
||||||
private String name;
|
|
||||||
private String template;
|
|
||||||
|
|
||||||
public Builder name(String name)
|
|
||||||
{
|
|
||||||
this.name = name;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder template(String template)
|
|
||||||
{
|
|
||||||
this.template = template;
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RestRequestTemplatesModel create()
|
|
||||||
{
|
|
||||||
RestRequestTemplatesModel template = new RestRequestTemplatesModel();
|
|
||||||
template.setName(this.name);
|
|
||||||
template.setTemplate(this.template);
|
|
||||||
|
|
||||||
return template;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@@ -43,15 +43,14 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.search;
|
package org.alfresco.rest.search;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import org.alfresco.rest.model.RestRequestRangesModel;
|
import org.alfresco.rest.model.RestRequestRangesModel;
|
||||||
import org.alfresco.rest.model.RestRequestSpellcheckModel;
|
import org.alfresco.rest.model.RestRequestSpellcheckModel;
|
||||||
import org.alfresco.utility.model.TestModel;
|
import org.alfresco.utility.model.TestModel;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search Query object.
|
* Search Query object.
|
||||||
* @author msuzuki
|
* @author msuzuki
|
||||||
@@ -77,8 +76,6 @@ public class SearchRequest extends TestModel
|
|||||||
String facetFormat;
|
String facetFormat;
|
||||||
List<String> include;
|
List<String> include;
|
||||||
List<SortClause> sort;
|
List<SortClause> sort;
|
||||||
RestRequestDefaultsModel defaults;
|
|
||||||
List<RestRequestTemplatesModel> templates;
|
|
||||||
RestRequestLimitsModel limits;
|
RestRequestLimitsModel limits;
|
||||||
|
|
||||||
public SearchRequest()
|
public SearchRequest()
|
||||||
@@ -259,26 +256,6 @@ public class SearchRequest extends TestModel
|
|||||||
this.fields = fields;
|
this.fields = fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RestRequestDefaultsModel getDefaults()
|
|
||||||
{
|
|
||||||
return defaults;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDefaults(RestRequestDefaultsModel defaults)
|
|
||||||
{
|
|
||||||
this.defaults = defaults;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<RestRequestTemplatesModel> getTemplates()
|
|
||||||
{
|
|
||||||
return templates;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTemplates(List<RestRequestTemplatesModel> templates)
|
|
||||||
{
|
|
||||||
this.templates = templates;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<SortClause> getSort()
|
public List<SortClause> getSort()
|
||||||
{
|
{
|
||||||
if (sort == null)
|
if (sort == null)
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
package org.alfresco.rest.renditions;
|
package org.alfresco.rest.renditions;
|
||||||
|
|
||||||
import java.time.Duration;
|
|
||||||
import com.google.common.base.Predicates;
|
|
||||||
import org.alfresco.rest.RestTest;
|
import org.alfresco.rest.RestTest;
|
||||||
import org.alfresco.rest.core.RestResponse;
|
import org.alfresco.rest.core.RestResponse;
|
||||||
import org.alfresco.rest.model.RestNodeModel;
|
import org.alfresco.rest.model.RestNodeModel;
|
||||||
@@ -10,8 +8,6 @@ import org.alfresco.utility.model.FileModel;
|
|||||||
import org.alfresco.utility.model.FolderModel;
|
import org.alfresco.utility.model.FolderModel;
|
||||||
import org.alfresco.utility.model.SiteModel;
|
import org.alfresco.utility.model.SiteModel;
|
||||||
import org.alfresco.utility.model.UserModel;
|
import org.alfresco.utility.model.UserModel;
|
||||||
import org.awaitility.Awaitility;
|
|
||||||
import org.awaitility.Durations;
|
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
import org.testng.Assert;
|
import org.testng.Assert;
|
||||||
import org.testng.annotations.BeforeClass;
|
import org.testng.annotations.BeforeClass;
|
||||||
@@ -72,15 +68,8 @@ public abstract class RenditionIntegrationTests extends RestTest
|
|||||||
*/
|
*/
|
||||||
protected RestNodeModel uploadFile(String sourceFile) throws Exception
|
protected RestNodeModel uploadFile(String sourceFile) throws Exception
|
||||||
{
|
{
|
||||||
FolderModel folder = Awaitility
|
FolderModel folder = FolderModel.getRandomFolderModel();
|
||||||
.await()
|
folder = dataContent.usingUser(user).usingSite(site).createFolder(folder);
|
||||||
.atMost(Duration.ofSeconds(30))
|
|
||||||
.pollInterval(Durations.ONE_SECOND)
|
|
||||||
.ignoreExceptions()
|
|
||||||
.until(() -> {
|
|
||||||
FolderModel randomFolderModel = FolderModel.getRandomFolderModel();
|
|
||||||
return dataContent.usingUser(user).usingSite(site).createFolder(randomFolderModel);
|
|
||||||
}, Predicates.notNull());
|
|
||||||
restClient.authenticateUser(user).configureRequestSpec()
|
restClient.authenticateUser(user).configureRequestSpec()
|
||||||
.addMultiPart("filedata", Utility.getResourceTestDataFile(sourceFile));
|
.addMultiPart("filedata", Utility.getResourceTestDataFile(sourceFile));
|
||||||
RestNodeModel fileNode = restClient.authenticateUser(user).withCoreAPI().usingNode(folder).createNode();
|
RestNodeModel fileNode = restClient.authenticateUser(user).withCoreAPI().usingNode(folder).createNode();
|
||||||
@@ -90,5 +79,4 @@ public abstract class RenditionIntegrationTests extends RestTest
|
|||||||
|
|
||||||
return fileNode;
|
return fileNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-tests</artifactId>
|
<artifactId>alfresco-community-repo-tests</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<developers>
|
<developers>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo-packaging</artifactId>
|
<artifactId>alfresco-community-repo-packaging</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
@@ -30,6 +30,10 @@
|
|||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-trashcan-cleaner</artifactId>
|
<artifactId>alfresco-trashcan-cleaner</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.services</groupId>
|
||||||
|
<artifactId>alfresco-messaging-repo</artifactId>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>xalan</groupId>
|
<groupId>xalan</groupId>
|
||||||
<artifactId>xalan</artifactId>
|
<artifactId>xalan</artifactId>
|
||||||
@@ -136,7 +140,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
<version>3.2.0</version>
|
<version>3.0.0</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>validate</phase>
|
<phase>validate</phase>
|
||||||
|
109
pom.xml
109
pom.xml
@@ -2,7 +2,7 @@
|
|||||||
<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">
|
<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">
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<name>Alfresco Community Repo Parent</name>
|
<name>Alfresco Community Repo Parent</name>
|
||||||
|
|
||||||
@@ -23,9 +23,9 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<acs.version.major>23</acs.version.major>
|
<acs.version.major>7</acs.version.major>
|
||||||
<acs.version.minor>1</acs.version.minor>
|
<acs.version.minor>4</acs.version.minor>
|
||||||
<acs.version.revision>0</acs.version.revision>
|
<acs.version.revision>1</acs.version.revision>
|
||||||
<acs.version.label />
|
<acs.version.label />
|
||||||
<amp.min.version>${acs.version.major}.0.0</amp.min.version>
|
<amp.min.version>${acs.version.major}.0.0</amp.min.version>
|
||||||
|
|
||||||
@@ -38,46 +38,46 @@
|
|||||||
<builder.name>entitled-builder</builder.name>
|
<builder.name>entitled-builder</builder.name>
|
||||||
<local.registry>127.0.0.1:5000</local.registry>
|
<local.registry>127.0.0.1:5000</local.registry>
|
||||||
|
|
||||||
<java.version>17</java.version>
|
<java.version>11</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<maven.build.sourceVersion>${java.version}</maven.build.sourceVersion>
|
<maven.build.sourceVersion>${java.version}</maven.build.sourceVersion>
|
||||||
|
|
||||||
<dir.root>${project.build.directory}/alf_data</dir.root>
|
<dir.root>${project.build.directory}/alf_data</dir.root>
|
||||||
|
|
||||||
<dependency.alfresco-hb-data-sender.version>1.1.1</dependency.alfresco-hb-data-sender.version>
|
<dependency.alfresco-hb-data-sender.version>1.0.12</dependency.alfresco-hb-data-sender.version>
|
||||||
<dependency.alfresco-trashcan-cleaner.version>2.4.2</dependency.alfresco-trashcan-cleaner.version>
|
<dependency.alfresco-trashcan-cleaner.version>2.4.1</dependency.alfresco-trashcan-cleaner.version>
|
||||||
<dependency.alfresco-jlan.version>7.5</dependency.alfresco-jlan.version>
|
<dependency.alfresco-jlan.version>7.4</dependency.alfresco-jlan.version>
|
||||||
<dependency.alfresco-server-root.version>6.0.1</dependency.alfresco-server-root.version>
|
<dependency.alfresco-server-root.version>6.0.1</dependency.alfresco-server-root.version>
|
||||||
|
<dependency.alfresco-messaging-repo.version>1.2.20</dependency.alfresco-messaging-repo.version>
|
||||||
<dependency.activiti-engine.version>5.23.0</dependency.activiti-engine.version>
|
<dependency.activiti-engine.version>5.23.0</dependency.activiti-engine.version>
|
||||||
<dependency.activiti.version>5.23.0</dependency.activiti.version>
|
<dependency.activiti.version>5.23.0</dependency.activiti.version>
|
||||||
<dependency.alfresco-transform-service.version>3.0.0</dependency.alfresco-transform-service.version>
|
<dependency.alfresco-transform-service.version>2.1.0</dependency.alfresco-transform-service.version>
|
||||||
<dependency.alfresco-transform-core.version>4.0.0</dependency.alfresco-transform-core.version>
|
<dependency.alfresco-transform-core.version>3.1.0</dependency.alfresco-transform-core.version>
|
||||||
<dependency.alfresco-greenmail.version>6.9</dependency.alfresco-greenmail.version>
|
<dependency.alfresco-greenmail.version>6.5</dependency.alfresco-greenmail.version>
|
||||||
<dependency.acs-event-model.version>0.0.23</dependency.acs-event-model.version>
|
<dependency.acs-event-model.version>0.0.18</dependency.acs-event-model.version>
|
||||||
|
|
||||||
<dependency.spring.version>5.3.27</dependency.spring.version>
|
<dependency.spring.version>5.3.27</dependency.spring.version>
|
||||||
<dependency.antlr.version>3.5.3</dependency.antlr.version>
|
<dependency.antlr.version>3.5.3</dependency.antlr.version>
|
||||||
<dependency.jackson.version>2.15.2</dependency.jackson.version>
|
<dependency.jackson.version>2.15.0-rc1</dependency.jackson.version>
|
||||||
<dependency.cxf.version>3.5.5</dependency.cxf.version>
|
<dependency.cxf.version>3.5.5</dependency.cxf.version>
|
||||||
<dependency.opencmis.version>1.0.0</dependency.opencmis.version>
|
<dependency.opencmis.version>1.0.0</dependency.opencmis.version>
|
||||||
<dependency.webscripts.version>8.45</dependency.webscripts.version>
|
<dependency.webscripts.version>8.47</dependency.webscripts.version>
|
||||||
<dependency.bouncycastle.version>1.70</dependency.bouncycastle.version>
|
<dependency.bouncycastle.version>1.70</dependency.bouncycastle.version>
|
||||||
<dependency.mockito-core.version>4.9.0</dependency.mockito-core.version>
|
<dependency.mockito-core.version>4.9.0</dependency.mockito-core.version>
|
||||||
<dependency.assertj.version>3.24.2</dependency.assertj.version>
|
<dependency.assertj.version>3.24.2</dependency.assertj.version>
|
||||||
<dependency.org-json.version>20230618</dependency.org-json.version>
|
<dependency.org-json.version>20230227</dependency.org-json.version>
|
||||||
<dependency.commons-dbcp.version>2.9.0</dependency.commons-dbcp.version>
|
<dependency.commons-dbcp.version>2.9.0</dependency.commons-dbcp.version>
|
||||||
<dependency.commons-io.version>2.11.0</dependency.commons-io.version>
|
<dependency.commons-io.version>2.11.0</dependency.commons-io.version>
|
||||||
<dependency.gson.version>2.8.9</dependency.gson.version>
|
<dependency.gson.version>2.8.9</dependency.gson.version>
|
||||||
<dependency.guava.version>32.1.1-jre</dependency.guava.version>
|
|
||||||
<dependency.httpclient.version>4.5.13</dependency.httpclient.version>
|
<dependency.httpclient.version>4.5.13</dependency.httpclient.version>
|
||||||
<dependency.httpcore.version>4.4.16</dependency.httpcore.version>
|
<dependency.httpcore.version>4.4.15</dependency.httpcore.version>
|
||||||
<dependency.commons-httpclient.version>3.1-HTTPCLIENT-1265</dependency.commons-httpclient.version>
|
<dependency.commons-httpclient.version>3.1-HTTPCLIENT-1265</dependency.commons-httpclient.version>
|
||||||
<dependency.xercesImpl.version>2.12.2</dependency.xercesImpl.version>
|
<dependency.xercesImpl.version>2.12.2</dependency.xercesImpl.version>
|
||||||
<dependency.slf4j.version>2.0.7</dependency.slf4j.version>
|
<dependency.slf4j.version>2.0.3</dependency.slf4j.version>
|
||||||
<dependency.log4j.version>2.20.0</dependency.log4j.version>
|
<dependency.log4j.version>2.19.0</dependency.log4j.version>
|
||||||
<dependency.gytheio.version>0.20.0-A1</dependency.gytheio.version>
|
<dependency.gytheio.version>0.18</dependency.gytheio.version>
|
||||||
<dependency.groovy.version>3.0.18</dependency.groovy.version>
|
<dependency.groovy.version>3.0.16</dependency.groovy.version>
|
||||||
<dependency.tika.version>2.4.1</dependency.tika.version>
|
<dependency.tika.version>2.4.1</dependency.tika.version>
|
||||||
<dependency.spring-security.version>5.8.3</dependency.spring-security.version>
|
<dependency.spring-security.version>5.8.3</dependency.spring-security.version>
|
||||||
<dependency.truezip.version>7.7.10</dependency.truezip.version>
|
<dependency.truezip.version>7.7.10</dependency.truezip.version>
|
||||||
@@ -89,11 +89,11 @@
|
|||||||
<dependency.netty.qpid.version>4.1.82.Final</dependency.netty.qpid.version> <!-- must be in sync with camels transitive dependencies: native-unix-common/native-epoll/native-kqueue -->
|
<dependency.netty.qpid.version>4.1.82.Final</dependency.netty.qpid.version> <!-- must be in sync with camels transitive dependencies: native-unix-common/native-epoll/native-kqueue -->
|
||||||
<dependency.netty-tcnative.version>2.0.56.Final</dependency.netty-tcnative.version> <!-- must be in sync with camels transitive dependencies -->
|
<dependency.netty-tcnative.version>2.0.56.Final</dependency.netty-tcnative.version> <!-- must be in sync with camels transitive dependencies -->
|
||||||
<dependency.activemq.version>5.17.4</dependency.activemq.version>
|
<dependency.activemq.version>5.17.4</dependency.activemq.version>
|
||||||
<dependency.apache-compress.version>1.23.0</dependency.apache-compress.version>
|
<dependency.apache-compress.version>1.22</dependency.apache-compress.version>
|
||||||
<dependency.apache.taglibs.version>1.2.5</dependency.apache.taglibs.version>
|
<dependency.apache.taglibs.version>1.2.5</dependency.apache.taglibs.version>
|
||||||
<dependency.awaitility.version>4.2.0</dependency.awaitility.version>
|
<dependency.awaitility.version>4.2.0</dependency.awaitility.version>
|
||||||
<dependency.swagger-ui.version>3.38.0</dependency.swagger-ui.version>
|
<dependency.swagger-ui.version>3.38.0</dependency.swagger-ui.version>
|
||||||
<dependency.swagger-parser.version>1.0.67</dependency.swagger-parser.version>
|
<dependency.swagger-parser.version>1.0.63</dependency.swagger-parser.version>
|
||||||
<dependency.maven-filtering.version>3.1.1</dependency.maven-filtering.version>
|
<dependency.maven-filtering.version>3.1.1</dependency.maven-filtering.version>
|
||||||
<dependency.maven-artifact.version>3.8.6</dependency.maven-artifact.version>
|
<dependency.maven-artifact.version>3.8.6</dependency.maven-artifact.version>
|
||||||
<dependency.jdom2.version>2.0.6.1</dependency.jdom2.version>
|
<dependency.jdom2.version>2.0.6.1</dependency.jdom2.version>
|
||||||
@@ -108,25 +108,25 @@
|
|||||||
<dependency.jakarta-mail-api.version>1.6.5</dependency.jakarta-mail-api.version>
|
<dependency.jakarta-mail-api.version>1.6.5</dependency.jakarta-mail-api.version>
|
||||||
<dependency.jakarta-json-api.version>1.1.6</dependency.jakarta-json-api.version>
|
<dependency.jakarta-json-api.version>1.1.6</dependency.jakarta-json-api.version>
|
||||||
<dependency.jakarta-json-path.version>2.8.0</dependency.jakarta-json-path.version>
|
<dependency.jakarta-json-path.version>2.8.0</dependency.jakarta-json-path.version>
|
||||||
<dependency.json-smart.version>2.5.0</dependency.json-smart.version>
|
<dependency.json-smart.version>2.4.10</dependency.json-smart.version>
|
||||||
<dependency.jakarta-rpc-api.version>1.1.4</dependency.jakarta-rpc-api.version>
|
<dependency.jakarta-rpc-api.version>1.1.4</dependency.jakarta-rpc-api.version>
|
||||||
|
|
||||||
<alfresco.googledrive.version>3.4.2-A2</alfresco.googledrive.version>
|
<alfresco.googledrive.version>3.4.0</alfresco.googledrive.version>
|
||||||
<alfresco.aos-module.version>1.6.1</alfresco.aos-module.version>
|
<alfresco.aos-module.version>1.6.0</alfresco.aos-module.version>
|
||||||
<alfresco.api-explorer.version>23.1.0-A1</alfresco.api-explorer.version> <!-- Also in alfresco-enterprise-share -->
|
<alfresco.api-explorer.version>7.4.0</alfresco.api-explorer.version> <!-- Also in alfresco-enterprise-share -->
|
||||||
|
|
||||||
<alfresco.maven-plugin.version>2.2.0</alfresco.maven-plugin.version>
|
<alfresco.maven-plugin.version>2.2.0</alfresco.maven-plugin.version>
|
||||||
<license-maven-plugin.version>2.0.1</license-maven-plugin.version>
|
<license-maven-plugin.version>2.0.1.alfresco-2</license-maven-plugin.version>
|
||||||
|
|
||||||
<dependency.postgresql.version>42.6.0</dependency.postgresql.version>
|
<dependency.postgresql.version>42.5.2</dependency.postgresql.version>
|
||||||
<dependency.mysql.version>8.0.30</dependency.mysql.version>
|
<dependency.mysql.version>8.0.30</dependency.mysql.version>
|
||||||
<dependency.mysql-image.version>8</dependency.mysql-image.version>
|
<dependency.mysql-image.version>8</dependency.mysql-image.version>
|
||||||
<dependency.mariadb.version>2.7.4</dependency.mariadb.version>
|
<dependency.mariadb.version>2.7.4</dependency.mariadb.version>
|
||||||
<dependency.tas-utility.version>4.0.4</dependency.tas-utility.version>
|
<dependency.tas-utility.version>4.0.0</dependency.tas-utility.version>
|
||||||
<dependency.rest-assured.version>5.3.1</dependency.rest-assured.version>
|
<dependency.rest-assured.version>5.2.0</dependency.rest-assured.version>
|
||||||
<dependency.tas-email.version>1.24</dependency.tas-email.version>
|
<dependency.tas-email.version>1.11</dependency.tas-email.version>
|
||||||
<dependency.tas-webdav.version>1.20</dependency.tas-webdav.version>
|
<dependency.tas-webdav.version>1.7</dependency.tas-webdav.version>
|
||||||
<dependency.tas-ftp.version>1.18</dependency.tas-ftp.version>
|
<dependency.tas-ftp.version>1.7</dependency.tas-ftp.version>
|
||||||
<dependency.tas-dataprep.version>2.6</dependency.tas-dataprep.version>
|
<dependency.tas-dataprep.version>2.6</dependency.tas-dataprep.version>
|
||||||
|
|
||||||
<!-- AGS properties shared between community and enterprise -->
|
<!-- AGS properties shared between community and enterprise -->
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
<connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
|
<connection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</connection>
|
||||||
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
|
<developerConnection>scm:git:https://github.com/Alfresco/alfresco-community-repo.git</developerConnection>
|
||||||
<url>https://github.com/Alfresco/alfresco-community-repo</url>
|
<url>https://github.com/Alfresco/alfresco-community-repo</url>
|
||||||
<tag>23.1.0.164</tag>
|
<tag>21.15</tag>
|
||||||
</scm>
|
</scm>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
@@ -297,6 +297,17 @@
|
|||||||
</exclusion>
|
</exclusion>
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.alfresco.services</groupId>
|
||||||
|
<artifactId>alfresco-messaging-repo</artifactId>
|
||||||
|
<version>${dependency.alfresco-messaging-repo.version}</version>
|
||||||
|
<exclusions>
|
||||||
|
<exclusion>
|
||||||
|
<groupId>org.apache.activemq</groupId>
|
||||||
|
<artifactId>activemq-broker</artifactId>
|
||||||
|
</exclusion>
|
||||||
|
</exclusions>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-server-root</artifactId>
|
<artifactId>alfresco-server-root</artifactId>
|
||||||
@@ -360,7 +371,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-codec</groupId>
|
<groupId>commons-codec</groupId>
|
||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
<version>1.16.0</version>
|
<version>1.15</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>commons-lang</groupId>
|
||||||
@@ -646,7 +657,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jsoup</groupId>
|
<groupId>org.jsoup</groupId>
|
||||||
<artifactId>jsoup</artifactId>
|
<artifactId>jsoup</artifactId>
|
||||||
<version>1.16.1</version>
|
<version>1.15.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- upgrade dependency from TIKA -->
|
<!-- upgrade dependency from TIKA -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -730,7 +741,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>joda-time</groupId>
|
<groupId>joda-time</groupId>
|
||||||
<artifactId>joda-time</artifactId>
|
<artifactId>joda-time</artifactId>
|
||||||
<version>2.12.5</version>
|
<version>2.12.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- provided dependencies -->
|
<!-- provided dependencies -->
|
||||||
@@ -772,11 +783,6 @@
|
|||||||
<artifactId>gson</artifactId>
|
<artifactId>gson</artifactId>
|
||||||
<version>${dependency.gson.version}</version>
|
<version>${dependency.gson.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.guava</groupId>
|
|
||||||
<artifactId>guava</artifactId>
|
|
||||||
<version>${dependency.guava.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.camel</groupId>
|
<groupId>org.apache.camel</groupId>
|
||||||
<artifactId>camel-core</artifactId>
|
<artifactId>camel-core</artifactId>
|
||||||
@@ -892,7 +898,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.projectlombok</groupId>
|
<groupId>org.projectlombok</groupId>
|
||||||
<artifactId>lombok</artifactId>
|
<artifactId>lombok</artifactId>
|
||||||
<version>1.18.28</version>
|
<version>1.18.24</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -930,7 +936,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>io.fabric8</groupId>
|
<groupId>io.fabric8</groupId>
|
||||||
<artifactId>docker-maven-plugin</artifactId>
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
<version>0.43.0</version>
|
<version>0.42.1</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
@@ -951,21 +957,21 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-javadoc-plugin</artifactId>
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
<version>3.5.0</version>
|
<version>3.4.1</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>3.3.1</version>
|
<version>3.3.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
<artifactId>maven-dependency-plugin</artifactId>
|
||||||
<version>3.6.0</version>
|
<version>3.3.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
<version>3.6.0</version>
|
<version>3.4.2</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.alfresco.maven.plugin</groupId>
|
<groupId>org.alfresco.maven.plugin</groupId>
|
||||||
@@ -1009,11 +1015,6 @@
|
|||||||
<skipDeploy>true</skipDeploy>
|
<skipDeploy>true</skipDeploy>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.cargo</groupId>
|
|
||||||
<artifactId>cargo-maven3-plugin</artifactId>
|
|
||||||
<version>1.10.8</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.santuario</groupId>
|
<groupId>org.apache.santuario</groupId>
|
||||||
<artifactId>xmlsec</artifactId>
|
<artifactId>xmlsec</artifactId>
|
||||||
<version>3.0.2</version>
|
<version>3.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- newer version, see REPO-3133 -->
|
<!-- newer version, see REPO-3133 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
<groupId>org.eclipse.jetty</groupId>
|
||||||
<artifactId>jetty-server</artifactId>
|
<artifactId>jetty-server</artifactId>
|
||||||
<version>10.0.14</version>
|
<version>10.0.11</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<exclusion>
|
<exclusion>
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.alfresco.cmis.client</groupId>
|
<groupId>org.alfresco.cmis.client</groupId>
|
||||||
<artifactId>alfresco-opencmis-extension</artifactId>
|
<artifactId>alfresco-opencmis-extension</artifactId>
|
||||||
<version>2.3</version>
|
<version>2.1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
<exclusions>
|
<exclusions>
|
||||||
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api -->
|
<!-- Duplicates classes from jakarta.transaction:jakarta.transaction-api -->
|
||||||
|
@@ -32,8 +32,10 @@ import java.util.List;
|
|||||||
|
|
||||||
import org.alfresco.rest.api.model.Category;
|
import org.alfresco.rest.api.model.Category;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
|
|
||||||
|
@Experimental
|
||||||
public interface Categories
|
public interface Categories
|
||||||
{
|
{
|
||||||
Category getCategoryById(StoreRef storeRef, String id, Parameters parameters);
|
Category getCategoryById(StoreRef storeRef, String id, Parameters parameters);
|
||||||
|
@@ -32,6 +32,7 @@ import java.util.List;
|
|||||||
import org.alfresco.rest.api.model.Tag;
|
import org.alfresco.rest.api.model.Tag;
|
||||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
|
|
||||||
public interface Tags
|
public interface Tags
|
||||||
@@ -43,8 +44,10 @@ public interface Tags
|
|||||||
Tag changeTag(StoreRef storeRef, String tagId, Tag tag, Parameters parameters);
|
Tag changeTag(StoreRef storeRef, String tagId, Tag tag, Parameters parameters);
|
||||||
CollectionWithPagingInfo<Tag> getTags(String nodeId, Parameters params);
|
CollectionWithPagingInfo<Tag> getTags(String nodeId, Parameters params);
|
||||||
|
|
||||||
|
@Experimental
|
||||||
List<Tag> createTags(StoreRef storeRef, List<Tag> tags, Parameters parameters);
|
List<Tag> createTags(StoreRef storeRef, List<Tag> tags, Parameters parameters);
|
||||||
|
|
||||||
|
@Experimental
|
||||||
default List<Tag> createTags(List<Tag> tags, Parameters parameters)
|
default List<Tag> createTags(List<Tag> tags, Parameters parameters)
|
||||||
{
|
{
|
||||||
return createTags(STORE_REF_WORKSPACE_SPACESSTORE, tags, parameters);
|
return createTags(STORE_REF_WORKSPACE_SPACESSTORE, tags, parameters);
|
||||||
|
@@ -49,6 +49,7 @@ import org.alfresco.rest.framework.core.exceptions.InvalidArgumentException;
|
|||||||
import org.alfresco.rest.framework.core.exceptions.InvalidNodeTypeException;
|
import org.alfresco.rest.framework.core.exceptions.InvalidNodeTypeException;
|
||||||
import org.alfresco.rest.framework.core.exceptions.PermissionDeniedException;
|
import org.alfresco.rest.framework.core.exceptions.PermissionDeniedException;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeService;
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
@@ -64,6 +65,7 @@ import org.alfresco.util.TypeConstraint;
|
|||||||
import org.apache.commons.collections.CollectionUtils;
|
import org.apache.commons.collections.CollectionUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
|
@Experimental
|
||||||
public class CategoriesImpl implements Categories
|
public class CategoriesImpl implements Categories
|
||||||
{
|
{
|
||||||
static final String INCLUDE_COUNT_PARAM = "count";
|
static final String INCLUDE_COUNT_PARAM = "count";
|
||||||
|
@@ -36,6 +36,8 @@ import static org.alfresco.service.cmr.tagging.TaggingService.TAG_ROOT_NODE_REF;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.HashMap;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -61,9 +63,12 @@ import org.alfresco.rest.framework.core.exceptions.UnsupportedResourceOperationE
|
|||||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Paging;
|
import org.alfresco.rest.framework.resource.parameters.Paging;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||||
|
import org.alfresco.rest.framework.resource.parameters.SortColumn;
|
||||||
import org.alfresco.rest.framework.resource.parameters.where.Query;
|
import org.alfresco.rest.framework.resource.parameters.where.Query;
|
||||||
import org.alfresco.rest.framework.resource.parameters.where.QueryHelper;
|
import org.alfresco.rest.framework.resource.parameters.where.QueryHelper;
|
||||||
import org.alfresco.rest.framework.resource.parameters.where.QueryImpl;
|
import org.alfresco.rest.framework.resource.parameters.where.QueryImpl;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeService;
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
@@ -268,6 +273,7 @@ public class TagsImpl implements Tags
|
|||||||
return CollectionWithPagingInfo.asPaged(params.getPaging(), tags, results.hasMoreItems(), (totalItems == null ? null : totalItems.intValue()));
|
return CollectionWithPagingInfo.asPaged(params.getPaging(), tags, results.hasMoreItems(), (totalItems == null ? null : totalItems.intValue()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Experimental
|
||||||
@Override
|
@Override
|
||||||
public List<Tag> createTags(final StoreRef storeRef, final List<Tag> tags, final Parameters parameters)
|
public List<Tag> createTags(final StoreRef storeRef, final List<Tag> tags, final Parameters parameters)
|
||||||
{
|
{
|
||||||
|
@@ -36,6 +36,7 @@ import org.alfresco.rest.framework.resource.EntityResource;
|
|||||||
import org.alfresco.rest.framework.resource.actions.interfaces.EntityResourceAction;
|
import org.alfresco.rest.framework.resource.actions.interfaces.EntityResourceAction;
|
||||||
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
import org.alfresco.rest.framework.resource.parameters.CollectionWithPagingInfo;
|
||||||
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
import org.alfresco.rest.framework.resource.parameters.Parameters;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
import org.alfresco.util.ParameterCheck;
|
import org.alfresco.util.ParameterCheck;
|
||||||
import org.springframework.beans.factory.InitializingBean;
|
import org.springframework.beans.factory.InitializingBean;
|
||||||
@@ -84,6 +85,7 @@ public class TagsEntityResource implements EntityResourceAction.Read<Tag>,
|
|||||||
/**
|
/**
|
||||||
* POST /tags
|
* POST /tags
|
||||||
*/
|
*/
|
||||||
|
@Experimental
|
||||||
@WebApiDescription(
|
@WebApiDescription(
|
||||||
title = "Create an orphan tag",
|
title = "Create an orphan tag",
|
||||||
description = "Creates a tag, which is not associated with any node",
|
description = "Creates a tag, which is not associated with any node",
|
||||||
|
@@ -30,9 +30,11 @@ import org.alfresco.rest.api.categories.CategoriesEntityResourceTest;
|
|||||||
import org.alfresco.rest.api.categories.NodesCategoryLinksRelationTest;
|
import org.alfresco.rest.api.categories.NodesCategoryLinksRelationTest;
|
||||||
import org.alfresco.rest.api.categories.SubcategoriesRelationTest;
|
import org.alfresco.rest.api.categories.SubcategoriesRelationTest;
|
||||||
import org.alfresco.rest.api.impl.CategoriesImplTest;
|
import org.alfresco.rest.api.impl.CategoriesImplTest;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Suite;
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@Experimental
|
||||||
@RunWith(Suite.class)
|
@RunWith(Suite.class)
|
||||||
@Suite.SuiteClasses({
|
@Suite.SuiteClasses({
|
||||||
CategoriesImplTest.class,
|
CategoriesImplTest.class,
|
||||||
|
@@ -27,9 +27,11 @@ package org.alfresco.rest.api;
|
|||||||
|
|
||||||
import org.alfresco.rest.api.impl.TagsImplTest;
|
import org.alfresco.rest.api.impl.TagsImplTest;
|
||||||
import org.alfresco.rest.api.tags.TagsEntityResourceTest;
|
import org.alfresco.rest.api.tags.TagsEntityResourceTest;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.junit.runners.Suite;
|
import org.junit.runners.Suite;
|
||||||
|
|
||||||
|
@Experimental
|
||||||
@RunWith(Suite.class)
|
@RunWith(Suite.class)
|
||||||
@Suite.SuiteClasses({
|
@Suite.SuiteClasses({
|
||||||
TagsImplTest.class,
|
TagsImplTest.class,
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.alfresco</groupId>
|
<groupId>org.alfresco</groupId>
|
||||||
<artifactId>alfresco-community-repo</artifactId>
|
<artifactId>alfresco-community-repo</artifactId>
|
||||||
<version>23.1.0.164</version>
|
<version>21.15</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.ibm.icu</groupId>
|
<groupId>com.ibm.icu</groupId>
|
||||||
<artifactId>icu4j</artifactId>
|
<artifactId>icu4j</artifactId>
|
||||||
<version>73.2</version>
|
<version>72.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.googlecode.json-simple</groupId>
|
<groupId>com.googlecode.json-simple</groupId>
|
||||||
@@ -375,9 +375,20 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fasterxml.woodstox</groupId>
|
<groupId>com.fasterxml.woodstox</groupId>
|
||||||
<artifactId>woodstox-core</artifactId>
|
<artifactId>woodstox-core</artifactId>
|
||||||
<version>6.5.1</version>
|
<version>6.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- GData -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.gdata</groupId>
|
||||||
|
<artifactId>gdata-core-1.0</artifactId>
|
||||||
|
<version>1.47.1</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.gdata</groupId>
|
||||||
|
<artifactId>gdata-media-1.0</artifactId>
|
||||||
|
<version>1.47.1</version>
|
||||||
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.security</groupId>
|
<groupId>org.springframework.security</groupId>
|
||||||
<artifactId>spring-security-crypto</artifactId>
|
<artifactId>spring-security-crypto</artifactId>
|
||||||
@@ -736,7 +747,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.aspectj</groupId>
|
<groupId>org.aspectj</groupId>
|
||||||
<artifactId>aspectjrt</artifactId>
|
<artifactId>aspectjrt</artifactId>
|
||||||
<version>1.9.19</version>
|
<version>1.9.9.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-net</groupId>
|
<groupId>commons-net</groupId>
|
||||||
|
@@ -44,7 +44,6 @@ import java.util.zip.ZipException;
|
|||||||
import org.alfresco.error.AlfrescoRuntimeException;
|
import org.alfresco.error.AlfrescoRuntimeException;
|
||||||
import org.alfresco.model.ApplicationModel;
|
import org.alfresco.model.ApplicationModel;
|
||||||
import org.alfresco.model.ContentModel;
|
import org.alfresco.model.ContentModel;
|
||||||
import org.alfresco.repo.action.ActionServiceImpl;
|
|
||||||
import org.alfresco.repo.action.ParameterDefinitionImpl;
|
import org.alfresco.repo.action.ParameterDefinitionImpl;
|
||||||
import org.alfresco.repo.content.MimetypeMap;
|
import org.alfresco.repo.content.MimetypeMap;
|
||||||
import org.alfresco.repo.importer.ACPImportPackageHandler;
|
import org.alfresco.repo.importer.ACPImportPackageHandler;
|
||||||
@@ -66,8 +65,6 @@ import org.alfresco.util.TempFileProvider;
|
|||||||
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
|
||||||
import org.apache.commons.compress.archivers.zip.ZipFile;
|
import org.apache.commons.compress.archivers.zip.ZipFile;
|
||||||
import org.apache.commons.compress.utils.InputStreamStatistics;
|
import org.apache.commons.compress.utils.InputStreamStatistics;
|
||||||
import org.apache.commons.logging.Log;
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Importer action executor
|
* Importer action executor
|
||||||
@@ -76,7 +73,6 @@ import org.apache.commons.logging.LogFactory;
|
|||||||
*/
|
*/
|
||||||
public class ImporterActionExecuter extends ActionExecuterAbstractBase
|
public class ImporterActionExecuter extends ActionExecuterAbstractBase
|
||||||
{
|
{
|
||||||
private static Log logger = LogFactory.getLog(ImporterActionExecuter.class);
|
|
||||||
public static final String NAME = "import";
|
public static final String NAME = "import";
|
||||||
public static final String PARAM_ENCODING = "encoding";
|
public static final String PARAM_ENCODING = "encoding";
|
||||||
public static final String PARAM_DESTINATION_FOLDER = "destination";
|
public static final String PARAM_DESTINATION_FOLDER = "destination";
|
||||||
@@ -246,21 +242,17 @@ public class ImporterActionExecuter extends ActionExecuterAbstractBase
|
|||||||
// http://bugs.sun.com/bugdatabase/view_bug.do;:WuuT?bug_id=4820807
|
// http://bugs.sun.com/bugdatabase/view_bug.do;:WuuT?bug_id=4820807
|
||||||
// We also try to use the extra encoding information if present
|
// We also try to use the extra encoding information if present
|
||||||
String encoding = (String) ruleAction.getParameterValue(PARAM_ENCODING);
|
String encoding = (String) ruleAction.getParameterValue(PARAM_ENCODING);
|
||||||
logger.info("Encoding before: "+encoding);
|
|
||||||
if (encoding == null)
|
if (encoding == null)
|
||||||
{
|
{
|
||||||
logger.info("Encoding is null ");
|
encoding = "UTF-8";
|
||||||
encoding = "Cp437";
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (encoding.equalsIgnoreCase("default"))
|
if (encoding.equalsIgnoreCase("default"))
|
||||||
{
|
{
|
||||||
logger.info("Encoding is default ");
|
encoding = null;
|
||||||
encoding = "Cp437";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
logger.info("Encoding after: "+encoding);
|
|
||||||
zipFile = new ZipFile(tempFile, encoding, true);
|
zipFile = new ZipFile(tempFile, encoding, true);
|
||||||
// build a temp dir name based on the ID of the noderef we are importing
|
// build a temp dir name based on the ID of the noderef we are importing
|
||||||
// also use the long life temp folder as large ZIP files can take a while
|
// also use the long life temp folder as large ZIP files can take a while
|
||||||
|
@@ -0,0 +1,158 @@
|
|||||||
|
/*
|
||||||
|
* #%L
|
||||||
|
* Alfresco Repository
|
||||||
|
* %%
|
||||||
|
* Copyright (C) 2005 - 2016 Alfresco Software Limited
|
||||||
|
* %%
|
||||||
|
* This file is part of the Alfresco software.
|
||||||
|
* If the software was purchased under a paid Alfresco license, the terms of
|
||||||
|
* the paid license agreement will prevail. Otherwise, the software is
|
||||||
|
* provided under the following open source license terms:
|
||||||
|
*
|
||||||
|
* Alfresco is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* Alfresco is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
* #L%
|
||||||
|
*/
|
||||||
|
package org.alfresco.repo.config.source;
|
||||||
|
|
||||||
|
import java.io.InputStream;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.springframework.extensions.config.ConfigException;
|
||||||
|
import org.springframework.extensions.config.source.UrlConfigSource;
|
||||||
|
import org.alfresco.model.ContentModel;
|
||||||
|
import org.alfresco.repo.tenant.TenantService;
|
||||||
|
import org.alfresco.service.cmr.repository.ContentReader;
|
||||||
|
import org.alfresco.service.cmr.repository.ContentService;
|
||||||
|
import org.alfresco.service.cmr.repository.InvalidStoreRefException;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
|
import org.alfresco.service.cmr.repository.NodeService;
|
||||||
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
|
import org.alfresco.service.cmr.search.SearchService;
|
||||||
|
import org.alfresco.service.namespace.NamespaceService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConfigSource that looks for a prefix to determine where to look for the config.</br>
|
||||||
|
* Valid prefixes are:
|
||||||
|
* <ul>
|
||||||
|
* <li><b><storeProtocol>://<storeIdentifier></b> the location provided is a path to a repository file</li>
|
||||||
|
* </ul>
|
||||||
|
* as well as those defined in the core (UrlConfigSource)
|
||||||
|
*
|
||||||
|
* Example store URLs
|
||||||
|
* <code>workspace://SpacesStore/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.webclient_extension.childname}/cm:web-client-config-custom.xml</code>
|
||||||
|
* <code>workspace://SpacesStore/app:company_home/app:dictionary/app:webclient_extension/cm:web-client-config-custom.xml</code>
|
||||||
|
*/
|
||||||
|
public class RepoUrlConfigSource extends UrlConfigSource
|
||||||
|
{
|
||||||
|
private TenantService tenantService;
|
||||||
|
private SearchService searchService;
|
||||||
|
private ContentService contentService;
|
||||||
|
private NamespaceService namespaceService;
|
||||||
|
private NodeService nodeService;
|
||||||
|
|
||||||
|
|
||||||
|
public void setTenantService(TenantService tenantService)
|
||||||
|
{
|
||||||
|
this.tenantService = tenantService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSearchService(SearchService searchService)
|
||||||
|
{
|
||||||
|
this.searchService = searchService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setContentService(ContentService contentService)
|
||||||
|
{
|
||||||
|
this.contentService = contentService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNamespaceService(NamespaceService namespaceService)
|
||||||
|
{
|
||||||
|
this.namespaceService = namespaceService;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNodeService(NodeService nodeService)
|
||||||
|
{
|
||||||
|
this.nodeService = nodeService;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public RepoUrlConfigSource(String sourceLocation)
|
||||||
|
{
|
||||||
|
super(sourceLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
public RepoUrlConfigSource(List<String> sourceLocations)
|
||||||
|
{
|
||||||
|
super(sourceLocations);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public InputStream getInputStream(String sourceUrl)
|
||||||
|
{
|
||||||
|
// determine the config source
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return super.getInputStream(sourceUrl);
|
||||||
|
}
|
||||||
|
catch (ConfigException ce)
|
||||||
|
{
|
||||||
|
int idx = sourceUrl.indexOf(StoreRef.URI_FILLER);
|
||||||
|
if (idx != -1)
|
||||||
|
{
|
||||||
|
// assume this is a repository location
|
||||||
|
int idx2 = sourceUrl.indexOf("/", idx+3);
|
||||||
|
|
||||||
|
String store = sourceUrl.substring(0, idx2);
|
||||||
|
String path = sourceUrl.substring(idx2);
|
||||||
|
|
||||||
|
StoreRef storeRef = tenantService.getName(new StoreRef(store));
|
||||||
|
NodeRef rootNode = null;
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
rootNode = nodeService.getRootNode(storeRef);
|
||||||
|
}
|
||||||
|
catch (InvalidStoreRefException e)
|
||||||
|
{
|
||||||
|
throw ce;
|
||||||
|
}
|
||||||
|
|
||||||
|
List<NodeRef> nodeRefs = searchService.selectNodes(rootNode, path, null, namespaceService, false);
|
||||||
|
|
||||||
|
if (nodeRefs.size() == 0)
|
||||||
|
{
|
||||||
|
// if none found, then simply skip
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
else if (nodeRefs.size() > 1)
|
||||||
|
{
|
||||||
|
// unexpected
|
||||||
|
throw new ConfigException("Found duplicate config sources in the repository " + sourceUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
NodeRef nodeRef = nodeRefs.get(0);
|
||||||
|
|
||||||
|
ContentReader cr = contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);
|
||||||
|
|
||||||
|
return cr.getContentInputStream();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// not a repository url
|
||||||
|
throw ce;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.repo.search.impl;
|
package org.alfresco.repo.search.impl;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
@@ -49,6 +50,7 @@ import org.alfresco.query.PagingResults;
|
|||||||
import org.alfresco.repo.search.IndexerAndSearcher;
|
import org.alfresco.repo.search.IndexerAndSearcher;
|
||||||
import org.alfresco.repo.search.IndexerException;
|
import org.alfresco.repo.search.IndexerException;
|
||||||
import org.alfresco.repo.tenant.TenantService;
|
import org.alfresco.repo.tenant.TenantService;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.dictionary.AspectDefinition;
|
import org.alfresco.service.cmr.dictionary.AspectDefinition;
|
||||||
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
import org.alfresco.service.cmr.dictionary.DataTypeDefinition;
|
||||||
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
import org.alfresco.service.cmr.dictionary.DictionaryService;
|
||||||
@@ -635,6 +637,7 @@ public abstract class AbstractCategoryServiceImpl implements CategoryService
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@Experimental
|
||||||
public Optional<NodeRef> getRootCategoryNodeRef(final StoreRef storeRef)
|
public Optional<NodeRef> getRootCategoryNodeRef(final StoreRef storeRef)
|
||||||
{
|
{
|
||||||
return getRootCategoryNodeRef(storeRef, ContentModel.ASPECT_GEN_CLASSIFIABLE);
|
return getRootCategoryNodeRef(storeRef, ContentModel.ASPECT_GEN_CLASSIFIABLE);
|
||||||
|
@@ -65,6 +65,7 @@ import org.alfresco.repo.audit.AuditComponent;
|
|||||||
import org.alfresco.repo.coci.CheckOutCheckInServicePolicies.OnCheckOut;
|
import org.alfresco.repo.coci.CheckOutCheckInServicePolicies.OnCheckOut;
|
||||||
import org.alfresco.repo.copy.CopyServicePolicies.BeforeCopyPolicy;
|
import org.alfresco.repo.copy.CopyServicePolicies.BeforeCopyPolicy;
|
||||||
import org.alfresco.repo.copy.CopyServicePolicies.OnCopyCompletePolicy;
|
import org.alfresco.repo.copy.CopyServicePolicies.OnCopyCompletePolicy;
|
||||||
|
import org.alfresco.repo.domain.query.QueryException;
|
||||||
import org.alfresco.repo.event2.EventGenerator;
|
import org.alfresco.repo.event2.EventGenerator;
|
||||||
import org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy;
|
import org.alfresco.repo.node.NodeServicePolicies.BeforeDeleteNodePolicy;
|
||||||
import org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy;
|
import org.alfresco.repo.node.NodeServicePolicies.OnCreateNodePolicy;
|
||||||
@@ -77,6 +78,7 @@ import org.alfresco.repo.security.authentication.AuthenticationUtil;
|
|||||||
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
import org.alfresco.repo.security.authentication.AuthenticationUtil.RunAsWork;
|
||||||
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
import org.alfresco.repo.transaction.AlfrescoTransactionSupport;
|
||||||
import org.alfresco.repo.transaction.TransactionListener;
|
import org.alfresco.repo.transaction.TransactionListener;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.action.Action;
|
import org.alfresco.service.cmr.action.Action;
|
||||||
import org.alfresco.service.cmr.action.ActionService;
|
import org.alfresco.service.cmr.action.ActionService;
|
||||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||||
@@ -1698,6 +1700,7 @@ public class TaggingServiceImpl implements TaggingService,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Experimental
|
||||||
@Override
|
@Override
|
||||||
public List<Pair<String, NodeRef>> createTags(final StoreRef storeRef, final List<String> tagNames)
|
public List<Pair<String, NodeRef>> createTags(final StoreRef storeRef, final List<String> tagNames)
|
||||||
{
|
{
|
||||||
|
@@ -35,6 +35,7 @@ import org.alfresco.query.EmptyPagingResults;
|
|||||||
import org.alfresco.query.PagingRequest;
|
import org.alfresco.query.PagingRequest;
|
||||||
import org.alfresco.query.PagingResults;
|
import org.alfresco.query.PagingResults;
|
||||||
import org.alfresco.service.Auditable;
|
import org.alfresco.service.Auditable;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
import org.alfresco.service.cmr.repository.ChildAssociationRef;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
@@ -282,6 +283,7 @@ public interface CategoryService
|
|||||||
*
|
*
|
||||||
* @return NodeRef for category root node
|
* @return NodeRef for category root node
|
||||||
*/
|
*/
|
||||||
|
@Experimental
|
||||||
@Auditable(parameters = {"storeRef"})
|
@Auditable(parameters = {"storeRef"})
|
||||||
default Optional<NodeRef> getRootCategoryNodeRef(final StoreRef storeRef)
|
default Optional<NodeRef> getRootCategoryNodeRef(final StoreRef storeRef)
|
||||||
{
|
{
|
||||||
|
@@ -35,6 +35,7 @@ import org.alfresco.query.EmptyPagingResults;
|
|||||||
import org.alfresco.query.PagingRequest;
|
import org.alfresco.query.PagingRequest;
|
||||||
import org.alfresco.query.PagingResults;
|
import org.alfresco.query.PagingResults;
|
||||||
import org.alfresco.service.Auditable;
|
import org.alfresco.service.Auditable;
|
||||||
|
import org.alfresco.service.Experimental;
|
||||||
import org.alfresco.service.NotAuditable;
|
import org.alfresco.service.NotAuditable;
|
||||||
import org.alfresco.service.cmr.repository.NodeRef;
|
import org.alfresco.service.cmr.repository.NodeRef;
|
||||||
import org.alfresco.service.cmr.repository.StoreRef;
|
import org.alfresco.service.cmr.repository.StoreRef;
|
||||||
@@ -367,6 +368,7 @@ public interface TaggingService
|
|||||||
* @return {@link List} of {@link Pair}s of tag names and node references.
|
* @return {@link List} of {@link Pair}s of tag names and node references.
|
||||||
* @throws org.alfresco.service.cmr.repository.DuplicateChildNodeNameException if tag already exists.
|
* @throws org.alfresco.service.cmr.repository.DuplicateChildNodeNameException if tag already exists.
|
||||||
*/
|
*/
|
||||||
|
@Experimental
|
||||||
@Auditable(parameters = {"tagNames"})
|
@Auditable(parameters = {"tagNames"})
|
||||||
default List<Pair<String, NodeRef>> createTags(StoreRef storeRef, List<String> tagNames)
|
default List<Pair<String, NodeRef>> createTags(StoreRef storeRef, List<String> tagNames)
|
||||||
{
|
{
|
||||||
|
@@ -25,66 +25,27 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.util.remote.server;
|
package org.alfresco.util.remote.server;
|
||||||
|
|
||||||
import org.alfresco.util.remote.server.socket.HostConfigurableSocketFactory;
|
import org.springframework.remoting.rmi.RmiRegistryFactoryBean;
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
import org.springframework.beans.factory.DisposableBean;
|
|
||||||
import org.springframework.beans.factory.FactoryBean;
|
|
||||||
|
|
||||||
import java.rmi.RemoteException;
|
import java.rmi.RemoteException;
|
||||||
import java.rmi.registry.LocateRegistry;
|
|
||||||
import java.rmi.registry.Registry;
|
import java.rmi.registry.Registry;
|
||||||
import java.rmi.server.UnicastRemoteObject;
|
import java.rmi.server.RMIClientSocketFactory;
|
||||||
|
import java.rmi.server.RMIServerSocketFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class controls the RMI connectivity via <code>alfresco.jmx.connector.enabled</code> property
|
* This class controls the RMI connectivity via <code>alfresco.jmx.connector.enabled</code> property
|
||||||
*
|
*
|
||||||
* @author alex.mukha
|
* @author alex.mukha
|
||||||
*/
|
*/
|
||||||
public class AlfrescoRmiRegistryFactoryBean implements FactoryBean<Registry>, DisposableBean
|
public class AlfrescoRmiRegistryFactoryBean extends RmiRegistryFactoryBean
|
||||||
{
|
{
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(AlfrescoRmiRegistryFactoryBean.class);
|
private static final String ERR_MSG_NOT_ENABLED = "The RMI registry factory is disabled.";
|
||||||
|
|
||||||
private boolean created = false;
|
private boolean enabled = true;
|
||||||
|
|
||||||
private final boolean enabled;
|
public void setEnabled(boolean enabled)
|
||||||
|
|
||||||
private final int port;
|
|
||||||
|
|
||||||
private final Registry registry;
|
|
||||||
|
|
||||||
public AlfrescoRmiRegistryFactoryBean(boolean enabled, int port, HostConfigurableSocketFactory socketFactory) throws Exception {
|
|
||||||
this.enabled = enabled;
|
|
||||||
this.port = port;
|
|
||||||
if(this.enabled)
|
|
||||||
{
|
{
|
||||||
this.registry = initRegistry(socketFactory);
|
this.enabled = enabled;
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.registry = null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private Registry initRegistry(HostConfigurableSocketFactory socketFactory) throws RemoteException {
|
|
||||||
if (LOG.isDebugEnabled()) {
|
|
||||||
LOG.debug("Looking for RMI registry at port '" + this.port + "', using custom socket factory");
|
|
||||||
}
|
|
||||||
Registry registry;
|
|
||||||
synchronized (LocateRegistry.class) {
|
|
||||||
try {
|
|
||||||
// Retrieve existing registry.
|
|
||||||
registry = LocateRegistry.getRegistry(null, this.port, socketFactory);
|
|
||||||
testRegistry(this.registry);
|
|
||||||
}
|
|
||||||
catch (RemoteException ex) {
|
|
||||||
LOG.trace("RMI registry access threw exception", ex);
|
|
||||||
LOG.debug("Could not detect RMI registry - creating new one");
|
|
||||||
// Assume no registry found -> create new one.
|
|
||||||
this.created = true;
|
|
||||||
registry = LocateRegistry.createRegistry(this.port, socketFactory, socketFactory);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return registry;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isEnabled()
|
public boolean isEnabled()
|
||||||
@@ -93,34 +54,57 @@ public class AlfrescoRmiRegistryFactoryBean implements FactoryBean<Registry>, Di
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroy() throws Exception {
|
public void afterPropertiesSet() throws Exception
|
||||||
if (this.created) {
|
{
|
||||||
LOG.debug("Unexporting RMI registry");
|
if (enabled)
|
||||||
UnicastRemoteObject.unexportObject(this.registry, true);
|
{
|
||||||
|
super.afterPropertiesSet();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Registry getObject() throws Exception {
|
protected Registry getRegistry(
|
||||||
return this.registry;
|
String registryHost,
|
||||||
|
int registryPort,
|
||||||
|
RMIClientSocketFactory clientSocketFactory,
|
||||||
|
RMIServerSocketFactory serverSocketFactory) throws RemoteException
|
||||||
|
{
|
||||||
|
if(enabled)
|
||||||
|
{
|
||||||
|
return super.getRegistry(registryHost, registryPort, clientSocketFactory, serverSocketFactory);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new RemoteException(ERR_MSG_NOT_ENABLED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Class<?> getObjectType() {
|
protected Registry getRegistry(
|
||||||
return (this.registry != null ? this.registry.getClass() : Registry.class);
|
int registryPort,
|
||||||
}
|
RMIClientSocketFactory clientSocketFactory,
|
||||||
|
RMIServerSocketFactory serverSocketFactory) throws RemoteException
|
||||||
public boolean isCreated()
|
|
||||||
{
|
{
|
||||||
return created;
|
if(enabled)
|
||||||
}
|
|
||||||
|
|
||||||
public int getPort() {
|
|
||||||
return port;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void testRegistry(Registry registry) throws RemoteException
|
|
||||||
{
|
{
|
||||||
registry.list();
|
return super.getRegistry(registryPort, clientSocketFactory, serverSocketFactory);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new RemoteException(ERR_MSG_NOT_ENABLED);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected Registry getRegistry(int registryPort) throws RemoteException
|
||||||
|
{
|
||||||
|
if(enabled)
|
||||||
|
{
|
||||||
|
return super.getRegistry(registryPort);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new RemoteException(ERR_MSG_NOT_ENABLED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -75,9 +75,6 @@
|
|||||||
<property name="propertiesPersister">
|
<property name="propertiesPersister">
|
||||||
<bean class="org.alfresco.config.AlfrescoPropertiesPersister"/>
|
<bean class="org.alfresco.config.AlfrescoPropertiesPersister"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="order">
|
|
||||||
<value>9999999</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Expand global properties and version information in bean definitions -->
|
<!-- Expand global properties and version information in bean definitions -->
|
||||||
@@ -104,18 +101,6 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="default-properties-resolver" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
||||||
<property name="ignoreUnresolvablePlaceholders">
|
|
||||||
<value>true</value>
|
|
||||||
</property>
|
|
||||||
<property name="searchSystemEnvironment">
|
|
||||||
<value>false</value>
|
|
||||||
</property>
|
|
||||||
<property name="order">
|
|
||||||
<value>2147483647</value>
|
|
||||||
</property>
|
|
||||||
</bean>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Load properties that must be shared between the -->
|
<!-- Load properties that must be shared between the -->
|
||||||
<!-- Alfresco server and its remote clients. -->
|
<!-- Alfresco server and its remote clients. -->
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
repository.name=Main Repository
|
repository.name=Main Repository
|
||||||
|
|
||||||
# Schema number
|
# Schema number
|
||||||
version.schema=19000
|
version.schema=18100
|
||||||
|
|
||||||
# Directory configuration
|
# Directory configuration
|
||||||
|
|
||||||
@@ -754,13 +754,6 @@ encryption.ssl.truststore.keyMetaData.location=
|
|||||||
httpclient.config.transform.mTLSEnabled=false
|
httpclient.config.transform.mTLSEnabled=false
|
||||||
httpclient.config.transform.maxTotalConnections=20
|
httpclient.config.transform.maxTotalConnections=20
|
||||||
httpclient.config.transform.maxHostConnections=20
|
httpclient.config.transform.maxHostConnections=20
|
||||||
httpclient.config.transform.socketTimeout=5000
|
|
||||||
httpclient.config.transform.connectionRequestTimeout=5000
|
|
||||||
httpclient.config.transform.connectionTimeout=5000
|
|
||||||
|
|
||||||
# Property is disabled by default for security reasons, never enable it on for production environments.
|
|
||||||
# It will stop verification of hostnames placed in certificates returned with server responses to Repository requests towards transform services
|
|
||||||
httpclient.config.transform.hostnameVerificationDisabled=false
|
|
||||||
|
|
||||||
# Re-encryptor properties
|
# Re-encryptor properties
|
||||||
encryption.reencryptor.chunkSize=100
|
encryption.reencryptor.chunkSize=100
|
||||||
|
@@ -34,7 +34,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "3307:3306"
|
- "3307:3306"
|
||||||
activemq:
|
activemq:
|
||||||
image: alfresco/alfresco-activemq:5.17.4-jre17-rockylinux8
|
image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
|
||||||
ports:
|
ports:
|
||||||
- "5672:5672" # AMQP
|
- "5672:5672" # AMQP
|
||||||
- "61616:61616" # OpenWire
|
- "61616:61616" # OpenWire
|
@@ -20,7 +20,7 @@ services:
|
|||||||
- "5433:5432"
|
- "5433:5432"
|
||||||
activemq:
|
activemq:
|
||||||
profiles: ["default", "with-transform-core-aio", "activemq", "with-mtls-transform-core-aio"]
|
profiles: ["default", "with-transform-core-aio", "activemq", "with-mtls-transform-core-aio"]
|
||||||
image: alfresco/alfresco-activemq:5.17.4-jre17-rockylinux8
|
image: alfresco/alfresco-activemq:5.17.1-jre11-rockylinux8
|
||||||
ports:
|
ports:
|
||||||
- "5672:5672" # AMQP
|
- "5672:5672" # AMQP
|
||||||
- "61616:61616" # OpenWire
|
- "61616:61616" # OpenWire
|
||||||
|
@@ -35,10 +35,10 @@ git add pom.xml
|
|||||||
|
|
||||||
if [[ "${COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
|
if [[ "${COMMIT_MESSAGE}" =~ \[force[^\]]*\] ]]; then
|
||||||
FORCE_TOKEN=$(echo "${COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
|
FORCE_TOKEN=$(echo "${COMMIT_MESSAGE}" | sed "s|^.*\(\[force[^]]*\]\).*$|\1|g")
|
||||||
git commit --allow-empty -m "${FORCE_TOKEN} Update community-repo version to ${VERSION}"
|
git commit --allow-empty -m "${FORCE_TOKEN} Update upstream version to ${VERSION}"
|
||||||
git push
|
git push
|
||||||
elif git status --untracked-files=no --porcelain | grep -q '^' ; then
|
elif git status --untracked-files=no --porcelain | grep -q '^' ; then
|
||||||
git commit -m "Update community-repo version to ${VERSION}"
|
git commit -m "Update upstream version to ${VERSION}"
|
||||||
git push
|
git push
|
||||||
else
|
else
|
||||||
echo "Dependencies are already up to date."
|
echo "Dependencies are already up to date."
|
||||||
|
Reference in New Issue
Block a user