mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-09-10 14:11:58 +00:00
Compare commits
56 Commits
dependabot
...
23.3.7.3
Author | SHA1 | Date | |
---|---|---|---|
|
67195f6dda | ||
|
d060c548b3 | ||
|
9de39009a7 | ||
|
b920670ebd | ||
|
94fd1f4c98 | ||
|
5a04dabd72 | ||
|
00eef170ef | ||
|
43dd274b6c | ||
|
842687e25d | ||
|
3306879d8c | ||
|
8276344ce6 | ||
|
bb534040a1 | ||
|
b14526e7e1 | ||
|
7c7c2548aa | ||
|
f0daad17fe | ||
|
b2044531db | ||
|
09cc78f4f3 | ||
|
b734eb6f78 | ||
|
069f886b1f | ||
|
cdfa16093d | ||
|
5474d91dae | ||
|
42d07fe59c | ||
|
231ac79977 | ||
|
8fcdac6d1f | ||
|
534b6f444f | ||
|
31f9883cc8 | ||
|
130e4ff363 | ||
|
5ae22f75d0 | ||
|
1e386f9d98 | ||
|
5d4a859617 | ||
|
01b4859b73 | ||
|
fd0f50d7c9 | ||
|
afff08edfb | ||
|
84c83a1d3f | ||
|
df5607e11b | ||
|
8ff1f976f1 | ||
|
24dee74d77 | ||
|
99db3f275c | ||
|
fd8744af7f | ||
|
bce301d392 | ||
|
f397daf9f1 | ||
|
4b549bf474 | ||
|
e7a8cc2b2b | ||
|
386c33c3c0 | ||
|
45d6a114c6 | ||
|
3f2f654ac9 | ||
|
27e955e947 | ||
|
91a8d6deb2 | ||
|
c9b0389533 | ||
|
27177f6ea3 | ||
|
1c7fb4fa32 | ||
|
ae63f29c1f | ||
|
252f177d8e | ||
|
5df64264ed | ||
|
656f5e29a5 | ||
|
58cb8bf389 |
817
.github/workflows/ci.yml
vendored
817
.github/workflows/ci.yml
vendored
File diff suppressed because it is too large
Load Diff
16
.github/workflows/master_release.yml
vendored
16
.github/workflows/master_release.yml
vendored
@@ -34,12 +34,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
- name: "Init"
|
||||
run: bash ./scripts/ci/init.sh
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.16.0
|
||||
with:
|
||||
username: ${{ env.GIT_USERNAME }}
|
||||
email: ${{ env.GIT_EMAIL }}
|
||||
@@ -63,12 +63,12 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0
|
||||
- name: "Init"
|
||||
run: bash ./scripts/ci/init.sh
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.24.1
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.16.0
|
||||
with:
|
||||
username: ${{ env.GIT_USERNAME }}
|
||||
email: ${{ env.GIT_EMAIL }}
|
||||
|
32
.github/workflows/precommit_formatter.yml
vendored
32
.github/workflows/precommit_formatter.yml
vendored
@@ -1,32 +0,0 @@
|
||||
name: Pre-Commit formatter
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- precommit/**
|
||||
|
||||
jobs:
|
||||
format-code:
|
||||
name: "Reformat code"
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.head_commit.message, '[reformat code]')
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ inputs.python-version }}
|
||||
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
||||
with:
|
||||
python-version: "3.9"
|
||||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
|
||||
continue-on-error: true
|
||||
with:
|
||||
extra_args: --all-files
|
||||
- name: Update secrets baseline
|
||||
run: pip install detect-secrets && detect-secrets scan --baseline .secrets.baseline
|
||||
- uses: Alfresco/alfresco-build-tools/.github/actions/git-commit-changes@v8.24.1
|
||||
with:
|
||||
username: ${{ secrets.BOT_GITHUB_USERNAME }}
|
||||
add-options: -u
|
||||
commit-message: "Apply Pre-Commit code formatting"
|
||||
skip-if-no-changes: true
|
||||
- name: Push changes
|
||||
run: git push
|
@@ -127,6 +127,29 @@
|
||||
}
|
||||
],
|
||||
"results": {
|
||||
".github/workflows/ci.yml": [
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": ".github/workflows/ci.yml",
|
||||
"hashed_secret": "b86dc2f033a63f2b7b9e7d270ab806d2910d7572",
|
||||
"is_verified": false,
|
||||
"line_number": 293
|
||||
},
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": ".github/workflows/ci.yml",
|
||||
"hashed_secret": "1bfb0e20f886150ba59b853bcd49dea893e00966",
|
||||
"is_verified": false,
|
||||
"line_number": 368
|
||||
},
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": ".github/workflows/ci.yml",
|
||||
"hashed_secret": "128f14373ccfaff49e3664045d3a11b50cbb7b39",
|
||||
"is_verified": false,
|
||||
"line_number": 901
|
||||
}
|
||||
],
|
||||
".github/workflows/master_release.yml": [
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
@@ -224,7 +247,7 @@
|
||||
"filename": "core/src/main/java/org/alfresco/encryption/AlfrescoKeyStore.java",
|
||||
"hashed_secret": "a718763bca0f328b0e7ce2a98d9e79fc271bf827",
|
||||
"is_verified": false,
|
||||
"line_number": 34,
|
||||
"line_number": 35,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -234,7 +257,7 @@
|
||||
"filename": "core/src/main/java/org/alfresco/httpclient/HttpClientFactory.java",
|
||||
"hashed_secret": "5d3c708390e5f51413e414393d4ad2a6d0e59a45",
|
||||
"is_verified": false,
|
||||
"line_number": 128,
|
||||
"line_number": 126,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -400,7 +423,7 @@
|
||||
"filename": "packaging/tests/tas-cmis/src/main/java/org/alfresco/cmis/AuthParameterProviderFactory.java",
|
||||
"hashed_secret": "a28cecdb5056cf30135809b921e38a84deb6c345",
|
||||
"is_verified": false,
|
||||
"line_number": 100,
|
||||
"line_number": 102,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -408,7 +431,7 @@
|
||||
"filename": "packaging/tests/tas-cmis/src/main/java/org/alfresco/cmis/AuthParameterProviderFactory.java",
|
||||
"hashed_secret": "5e39d8e2991ef9705998de26b33f11be0f3cdcde",
|
||||
"is_verified": false,
|
||||
"line_number": 101,
|
||||
"line_number": 103,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -516,7 +539,7 @@
|
||||
"filename": "packaging/tests/tas-restapi/src/main/java/org/alfresco/rest/model/RestSitePersonMembershipRequestModelsCollection.java",
|
||||
"hashed_secret": "8b30a14989d7b8093ac29462fe29423d836625b4",
|
||||
"is_verified": false,
|
||||
"line_number": 33,
|
||||
"line_number": 39,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -600,7 +623,7 @@
|
||||
"filename": "remote-api/src/main/java/org/alfresco/repo/web/scripts/tenant/AbstractTenantAdminWebScript.java",
|
||||
"hashed_secret": "889d2688743fdce6115117a5ba7dbc5f33e0ce03",
|
||||
"is_verified": false,
|
||||
"line_number": 39,
|
||||
"line_number": 38,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -610,7 +633,7 @@
|
||||
"filename": "remote-api/src/main/java/org/alfresco/web/app/servlet/AlfrescoX509ServletFilter.java",
|
||||
"hashed_secret": "43d52295ed5cb7e2b772f2b8be9695ddde971c49",
|
||||
"is_verified": false,
|
||||
"line_number": 60,
|
||||
"line_number": 62,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -618,7 +641,7 @@
|
||||
"filename": "remote-api/src/main/java/org/alfresco/web/app/servlet/AlfrescoX509ServletFilter.java",
|
||||
"hashed_secret": "1bd5147ff91b8b1220d2f1ffde850ebabbc5ec8c",
|
||||
"is_verified": false,
|
||||
"line_number": 61,
|
||||
"line_number": 63,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -648,7 +671,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/repo/remoteticket/RemoteAlfrescoTicketServiceTest.java",
|
||||
"hashed_secret": "a926a50b320cea0d6c008a04322627400fe33f55",
|
||||
"is_verified": false,
|
||||
"line_number": 73,
|
||||
"line_number": 74,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -658,7 +681,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/repo/web/scripts/node/NodeWebScripTest.java",
|
||||
"hashed_secret": "a926a50b320cea0d6c008a04322627400fe33f55",
|
||||
"is_verified": false,
|
||||
"line_number": 96,
|
||||
"line_number": 95,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -668,7 +691,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/repo/web/scripts/servlet/RemoteAuthenticatorFactoryAdminConsoleAccessTest.java",
|
||||
"hashed_secret": "4ffa743f28fc949c19e65ab045d7906d0609a2c2",
|
||||
"is_verified": false,
|
||||
"line_number": 268,
|
||||
"line_number": 269,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -678,7 +701,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/repo/web/scripts/solr/SOLRAuthenticationFilterTest.java",
|
||||
"hashed_secret": "76ed0a056aa77060de25754586440cff390791d0",
|
||||
"is_verified": false,
|
||||
"line_number": 59,
|
||||
"line_number": 63,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -688,7 +711,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/repo/webdav/LockMethodTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 108,
|
||||
"line_number": 109,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -708,7 +731,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/AbstractBaseApiTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 111,
|
||||
"line_number": 120,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -718,7 +741,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/RepoService.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 412,
|
||||
"line_number": 418,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -728,7 +751,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestCMIS.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 175,
|
||||
"line_number": 182,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -738,7 +761,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestPeople.java",
|
||||
"hashed_secret": "e5e9fa1ba31ecd1ae84f75caaa474f3a663f05f4",
|
||||
"is_verified": false,
|
||||
"line_number": 595,
|
||||
"line_number": 592,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -746,7 +769,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestPeople.java",
|
||||
"hashed_secret": "53dad674827218e94c8fe9c1984c8dd9db512a17",
|
||||
"is_verified": false,
|
||||
"line_number": 731,
|
||||
"line_number": 728,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -754,7 +777,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestPeople.java",
|
||||
"hashed_secret": "be66cf01c56d963de61462f37a43df2305367216",
|
||||
"is_verified": false,
|
||||
"line_number": 1434,
|
||||
"line_number": 1429,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -762,7 +785,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestPeople.java",
|
||||
"hashed_secret": "283d47a9338ed1100b5fe2a5aff2d1f7c799bfd0",
|
||||
"is_verified": false,
|
||||
"line_number": 1435,
|
||||
"line_number": 1430,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -770,7 +793,7 @@
|
||||
"filename": "remote-api/src/test/java/org/alfresco/rest/api/tests/TestPeople.java",
|
||||
"hashed_secret": "425a715491af2bbec1eef2def6fa8d79c3050401",
|
||||
"is_verified": false,
|
||||
"line_number": 1457,
|
||||
"line_number": 1452,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -860,7 +883,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/heartbeat/jobs/LockingJob.java",
|
||||
"hashed_secret": "b003370e1497c5003e21f1ec5da89e3d2d819506",
|
||||
"is_verified": false,
|
||||
"line_number": 59,
|
||||
"line_number": 60,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -868,7 +891,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/heartbeat/jobs/LockingJob.java",
|
||||
"hashed_secret": "fc99e6a90240c45f46ed33a4d96a3dbecef41c60",
|
||||
"is_verified": false,
|
||||
"line_number": 60,
|
||||
"line_number": 61,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -878,7 +901,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/heartbeat/jobs/NonLockingJob.java",
|
||||
"hashed_secret": "b003370e1497c5003e21f1ec5da89e3d2d819506",
|
||||
"is_verified": false,
|
||||
"line_number": 54,
|
||||
"line_number": 52,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -888,7 +911,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/admin/patch/impl/AdminUserPatch.java",
|
||||
"hashed_secret": "87a754b00f7ee047d496808125d6259104e9382a",
|
||||
"is_verified": false,
|
||||
"line_number": 62,
|
||||
"line_number": 60,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -908,7 +931,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/remoteconnector/RemoteConnectorServiceImpl.java",
|
||||
"hashed_secret": "a172ffc990129fe6f68b50f6037c54a1894ee3fd",
|
||||
"is_verified": false,
|
||||
"line_number": 205,
|
||||
"line_number": 204,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -916,7 +939,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/remoteconnector/RemoteConnectorServiceImpl.java",
|
||||
"hashed_secret": "a172ffc990129fe6f68b50f6037c54a1894ee3fd",
|
||||
"is_verified": false,
|
||||
"line_number": 205,
|
||||
"line_number": 204,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -926,7 +949,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/security/authentication/ResetPasswordServiceImpl.java",
|
||||
"hashed_secret": "e25df0eeed8d8eb4e198c3464c7bf747bc26eff8",
|
||||
"is_verified": false,
|
||||
"line_number": 91,
|
||||
"line_number": 92,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -936,7 +959,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/security/authentication/SimpleAcceptOrRejectAllAuthenticationComponentImpl.java",
|
||||
"hashed_secret": "304de25a3d73b68ad408ca3843356b5cf67f6f14",
|
||||
"is_verified": false,
|
||||
"line_number": 89,
|
||||
"line_number": 93,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -946,7 +969,7 @@
|
||||
"filename": "repository/src/main/java/org/alfresco/repo/transfer/TransferServiceImpl2.java",
|
||||
"hashed_secret": "9ae9f2be7702b726809545808a8a9ba2e5a38410",
|
||||
"is_verified": false,
|
||||
"line_number": 129,
|
||||
"line_number": 130,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1250,7 +1273,7 @@
|
||||
"filename": "repository/src/main/resources/alfresco/repository.properties",
|
||||
"hashed_secret": "84551ae5442affc9f1a2d3b4c86ae8b24860149d",
|
||||
"is_verified": false,
|
||||
"line_number": 771,
|
||||
"line_number": 770,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1280,7 +1303,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/filesys/FTPServerTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 86,
|
||||
"line_number": 88,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1288,7 +1311,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/filesys/FTPServerTest.java",
|
||||
"hashed_secret": "c464af817287343305cbd6493c593885695df531",
|
||||
"is_verified": false,
|
||||
"line_number": 90,
|
||||
"line_number": 92,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1296,7 +1319,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/filesys/FTPServerTest.java",
|
||||
"hashed_secret": "8ad8572a0b3fc4cb3afc1baaebc97a2cae58eb8c",
|
||||
"is_verified": false,
|
||||
"line_number": 91,
|
||||
"line_number": 93,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1304,7 +1327,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/filesys/FTPServerTest.java",
|
||||
"hashed_secret": "915692b4d7465b0084354173d552ac90145dc315",
|
||||
"is_verified": false,
|
||||
"line_number": 92,
|
||||
"line_number": 94,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1314,7 +1337,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/filesys/repo/ContentDiskDriverTest.java",
|
||||
"hashed_secret": "8c85434f6f339a24b808810bd95629d0f5856355",
|
||||
"is_verified": false,
|
||||
"line_number": 1257,
|
||||
"line_number": 1280,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1324,7 +1347,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/opencmis/CMISTest.java",
|
||||
"hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
|
||||
"is_verified": false,
|
||||
"line_number": 4001,
|
||||
"line_number": 4134,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1334,7 +1357,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/coci/CheckOutCheckInServiceImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 141,
|
||||
"line_number": 140,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1344,7 +1367,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/i18n/MessageServiceImplTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 101,
|
||||
"line_number": 102,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1354,7 +1377,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/imap/ImapMessageTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 116,
|
||||
"line_number": 118,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1364,7 +1387,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/imap/ImapServiceImplCacheTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 66,
|
||||
"line_number": 68,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1374,7 +1397,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/imap/ImapServiceImplTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 111,
|
||||
"line_number": 116,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1384,7 +1407,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/imap/LoadTester.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 79,
|
||||
"line_number": 80,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1394,7 +1417,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/imap/RemoteLoadTester.java",
|
||||
"hashed_secret": "678721c0433c8cf5c9069a0e70784cf1839e866b",
|
||||
"is_verified": false,
|
||||
"line_number": 55,
|
||||
"line_number": 58,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1404,7 +1427,27 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/invitation/site/InviteSenderTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 108,
|
||||
"line_number": 109,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
"repository/src/test/java/org/alfresco/repo/lock/LockBehaviourImplTest.java": [
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/lock/LockBehaviourImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 112,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
"repository/src/test/java/org/alfresco/repo/lock/LockServiceImplTest.java": [
|
||||
{
|
||||
"type": "Secret Keyword",
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/lock/LockServiceImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 103,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1440,7 +1483,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/model/filefolder/FileFolderServiceImplTest.java",
|
||||
"hashed_secret": "9e10e28cb9c3e381c13d13fa97dd97148982cdaa",
|
||||
"is_verified": false,
|
||||
"line_number": 590,
|
||||
"line_number": 595,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1450,7 +1493,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/notification/NotificationServiceImplSystemTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 75,
|
||||
"line_number": 74,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1460,7 +1503,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/oauth1/OAuth1CredentialsStoreServiceTest.java",
|
||||
"hashed_secret": "c60646de4c4893cf860a12ecb7ba4f5317b1a1d0",
|
||||
"is_verified": false,
|
||||
"line_number": 62,
|
||||
"line_number": 61,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1468,7 +1511,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/oauth1/OAuth1CredentialsStoreServiceTest.java",
|
||||
"hashed_secret": "c60646de4c4893cf860a12ecb7ba4f5317b1a1d0",
|
||||
"is_verified": false,
|
||||
"line_number": 62,
|
||||
"line_number": 61,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1476,7 +1519,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/oauth1/OAuth1CredentialsStoreServiceTest.java",
|
||||
"hashed_secret": "ad8a621976e9a19cc78af501a84638a04fca9b83",
|
||||
"is_verified": false,
|
||||
"line_number": 66,
|
||||
"line_number": 65,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1486,7 +1529,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/oauth2/OAuth2CredentialsStoreServiceTest.java",
|
||||
"hashed_secret": "c60646de4c4893cf860a12ecb7ba4f5317b1a1d0",
|
||||
"is_verified": false,
|
||||
"line_number": 64,
|
||||
"line_number": 70,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1506,7 +1549,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/replication/ReplicationServiceIntegrationTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 1317,
|
||||
"line_number": 1328,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1516,7 +1559,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/AuthenticationServiceImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 69,
|
||||
"line_number": 68,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1526,7 +1569,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/AuthenticationTest.java",
|
||||
"hashed_secret": "607e729c2f77c4e821e68e26b4c1f5a4398624e9",
|
||||
"is_verified": false,
|
||||
"line_number": 2121,
|
||||
"line_number": 2129,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1536,7 +1579,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/AuthorizationTest.java",
|
||||
"hashed_secret": "9d4e1e23bd5b727046a9e3b4b7db57bd8d6ee684",
|
||||
"is_verified": false,
|
||||
"line_number": 36,
|
||||
"line_number": 37,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1546,7 +1589,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/CompositePasswordEncoderTest.java",
|
||||
"hashed_secret": "4360136f24381dcec1d35d79fbf7dac4b54dfe97",
|
||||
"is_verified": false,
|
||||
"line_number": 310,
|
||||
"line_number": 301,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1556,7 +1599,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/identityservice/IdentityServiceFacadeFactoryBeanTest.java",
|
||||
"hashed_secret": "c4b66dbe168ad1d2b19119494a0da063801bc3bb",
|
||||
"is_verified": false,
|
||||
"line_number": 82,
|
||||
"line_number": 83,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1564,7 +1607,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/identityservice/IdentityServiceFacadeFactoryBeanTest.java",
|
||||
"hashed_secret": "c5aad1895e1dcff195992938f1bcc9954d575ac9",
|
||||
"is_verified": false,
|
||||
"line_number": 91,
|
||||
"line_number": 92,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1574,7 +1617,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/identityservice/LazyInstantiatingIdentityServiceFacadeUnitTest.java",
|
||||
"hashed_secret": "12e59296b0d17c1ceb345a7adca98574c835ba24",
|
||||
"is_verified": false,
|
||||
"line_number": 46,
|
||||
"line_number": 45,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1584,7 +1627,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/security/authentication/identityservice/SpringBasedIdentityServiceFacadeUnitTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 48,
|
||||
"line_number": 46,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1604,7 +1647,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/HttpClientTransmitterImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 73,
|
||||
"line_number": 75,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1614,7 +1657,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceCallbackTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 658,
|
||||
"line_number": 664,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1624,7 +1667,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceImplTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 202,
|
||||
"line_number": 203,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1632,7 +1675,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceImplTest.java",
|
||||
"hashed_secret": "ad782ecdac770fc6eb9a62e44f90873fb97fb26b",
|
||||
"is_verified": false,
|
||||
"line_number": 512,
|
||||
"line_number": 513,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1640,7 +1683,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceImplTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 3593,
|
||||
"line_number": 3687,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1650,7 +1693,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceToBeRefactoredTest.java",
|
||||
"hashed_secret": "8be3c943b1609fffbfc51aad666d0a04adf83c9d",
|
||||
"is_verified": false,
|
||||
"line_number": 2510,
|
||||
"line_number": 2682,
|
||||
"is_secret": false
|
||||
},
|
||||
{
|
||||
@@ -1658,7 +1701,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/TransferServiceToBeRefactoredTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 3517,
|
||||
"line_number": 3772,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1668,7 +1711,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/manifest/ManifestIntegrationTest.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 114,
|
||||
"line_number": 115,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1678,7 +1721,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/transfer/manifest/TransferManifestTest.java",
|
||||
"hashed_secret": "5395ebfd174b0a5617e6f409dfbb3e064e3fdf0a",
|
||||
"is_verified": false,
|
||||
"line_number": 126,
|
||||
"line_number": 127,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1688,7 +1731,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/version/BaseVersionStoreTest.java",
|
||||
"hashed_secret": "d033e22ae348aeb5660fc2140aec35850c4da997",
|
||||
"is_verified": false,
|
||||
"line_number": 144,
|
||||
"line_number": 149,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1708,7 +1751,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/repo/version/VersionServiceImplTest.java",
|
||||
"hashed_secret": "dee17075a8c96d9c57c15d56b1f64e5abc1caf0b",
|
||||
"is_verified": false,
|
||||
"line_number": 121,
|
||||
"line_number": 122,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1718,7 +1761,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/util/test/junitrules/AlfrescoTenant.java",
|
||||
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
|
||||
"is_verified": false,
|
||||
"line_number": 73,
|
||||
"line_number": 67,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1728,7 +1771,7 @@
|
||||
"filename": "repository/src/test/java/org/alfresco/util/test/testusers/TestUserComponentImpl.java",
|
||||
"hashed_secret": "f73e110427648014568f7144031a6d48060eab0a",
|
||||
"is_verified": false,
|
||||
"line_number": 63,
|
||||
"line_number": 55,
|
||||
"is_secret": false
|
||||
}
|
||||
],
|
||||
@@ -1845,5 +1888,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"generated_at": "2025-06-09T16:43:14Z"
|
||||
"generated_at": "2025-03-31T12:42:09Z"
|
||||
}
|
||||
|
@@ -10,9 +10,7 @@ pre-commit install
|
||||
When you make a commit then these hooks will run and check the modified files. If it makes changes then you can review them and then `git commit` again to accept the changes.
|
||||
|
||||
#### Code Quality
|
||||
This project uses `spotless` that enforces `alfresco-formatter.xml` to ensure code quality.
|
||||
The code style definition file is taken always form the `master` branch of `alfresco-community-repo`.
|
||||
All downstream projects use this code style definition file as well.
|
||||
This project uses `spotless` that enforces `alfresco-formatter.xml` to ensure code quality.
|
||||
|
||||
To check code-style violations you can use:
|
||||
```bash
|
||||
|
@@ -126,3 +126,4 @@ Please use [**this guide**](CONTRIBUTING.md) to make a contribution to the proje
|
||||
|
||||
- [Alfresco Content Services Documentation](https://docs.alfresco.com/content-services/latest/)
|
||||
- [Alfresco Platform](https://www.hyland.com/en/products/alfresco-platform)
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-community-repo-amps</artifactId>
|
||||
<version>25.3.0.25-SNAPSHOT</version>
|
||||
<version>23.3.7.3</version>
|
||||
</parent>
|
||||
|
||||
<modules>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||
<version>25.3.0.25-SNAPSHOT</version>
|
||||
<version>23.3.7.3</version>
|
||||
</parent>
|
||||
|
||||
<modules>
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-governance-services-automation-community-repo</artifactId>
|
||||
<version>25.3.0.25-SNAPSHOT</version>
|
||||
<version>23.3.7.3</version>
|
||||
</parent>
|
||||
|
||||
<build>
|
||||
@@ -74,6 +74,16 @@
|
||||
<artifactId>alfresco-testng</artifactId>
|
||||
<version>1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.epam.reportportal</groupId>
|
||||
<artifactId>agent-java-testng</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.awaitility</groupId>
|
||||
<artifactId>awaitility</artifactId>
|
||||
@@ -83,12 +93,12 @@
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-collections4</artifactId>
|
||||
<version>4.5.0</version>
|
||||
<version>4.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.docker-java</groupId>
|
||||
<artifactId>docker-java</artifactId>
|
||||
<version>3.6.0</version>
|
||||
<version>3.3.6</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
|
@@ -127,7 +127,7 @@ public abstract class BaseAPI
|
||||
|
||||
/**
|
||||
* Helper method to extract the property value for the given nodeRef and property name
|
||||
*
|
||||
*
|
||||
* @param result
|
||||
* @param nodeRef
|
||||
* @param propertyName
|
||||
|
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2025 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.rest.rm.community.model;
|
||||
|
||||
public record CapabilityModel(String name, String title, String description, GroupModel group, int index)
|
||||
{}
|
@@ -1,30 +0,0 @@
|
||||
/*
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2025 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.rest.rm.community.model;
|
||||
|
||||
public record GroupModel(String id, String title)
|
||||
{}
|
@@ -1,91 +0,0 @@
|
||||
/*-
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2025 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.rest.rm.community.model.role;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import org.alfresco.rest.rm.community.model.CapabilityModel;
|
||||
import org.alfresco.utility.model.TestModel;
|
||||
|
||||
/**
|
||||
* POJO for role
|
||||
*/
|
||||
@Builder
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class Role extends TestModel
|
||||
{
|
||||
|
||||
@JsonProperty(required = true)
|
||||
private String name;
|
||||
|
||||
@JsonProperty(required = true)
|
||||
private List<CapabilityModel> capabilities;
|
||||
|
||||
@JsonProperty(required = true)
|
||||
private String displayLabel;
|
||||
|
||||
@JsonProperty(required = true)
|
||||
private String groupShortName;
|
||||
|
||||
private List<String> assignedUsers;
|
||||
|
||||
private List<String> assignedGroups;
|
||||
|
||||
private String roleGroupName;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (this == o)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
Role role = (Role) o;
|
||||
return Objects.equals(name, role.name) && Objects.equals(capabilities, role.capabilities)
|
||||
&& Objects.equals(displayLabel, role.displayLabel) && Objects.equals(groupShortName, role.groupShortName) && Objects.equals(assignedUsers, role.assignedUsers)
|
||||
&& Objects.equals(assignedGroups, role.assignedGroups) && Objects.equals(roleGroupName, role.roleGroupName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return Objects.hash(name, capabilities, displayLabel, groupShortName, assignedUsers, assignedGroups, roleGroupName);
|
||||
}
|
||||
}
|
@@ -1,32 +0,0 @@
|
||||
/*-
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2025 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.rest.rm.community.model.role;
|
||||
|
||||
import org.alfresco.rest.core.RestModels;
|
||||
|
||||
public class RoleCollection extends RestModels<RoleEntry, RoleCollection>
|
||||
{}
|
@@ -1,47 +0,0 @@
|
||||
/*-
|
||||
* #%L
|
||||
* Alfresco Records Management Module
|
||||
* %%
|
||||
* Copyright (C) 2005 - 2025 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.rest.rm.community.model.role;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import org.alfresco.rest.core.RestModels;
|
||||
|
||||
@Builder
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class RoleEntry extends RestModels<Role, RoleEntry>
|
||||
{
|
||||
@JsonProperty
|
||||
private Role entry;
|
||||
}
|
@@ -28,7 +28,7 @@ package org.alfresco.rest.rm.community.model.user;
|
||||
|
||||
/**
|
||||
* Constants for RM user capabilities
|
||||
*
|
||||
*
|
||||
* @author Kristijan Conkas
|
||||
* @since 2.6
|
||||
*/
|
||||
|
@@ -35,7 +35,7 @@ package org.alfresco.rest.rm.community.model.user;
|
||||
*/
|
||||
public enum UserRoles
|
||||
{
|
||||
IN_PLACE_WRITERS("ExtendedWriters", "In-Place Writers"), ROLE_RM_ADMIN("Administrator", "Records Management Administrator"), ROLE_RM_MANAGER("RecordsManager", "Records Management Manager"), ROLE_RM_POWER_USER("PowerUser", "Records Management Power User"), ROLE_RM_SECURITY_OFFICER("SecurityOfficer", "Records Management Security Officer"), ROLE_RM_USER("User", "Records Management User"), IN_PLACE_READERS("ExtendedReaders", "In-Place Readers");
|
||||
IN_PLACE_WRITERS("ExtendedWriters", "In-Place Writers"), ROLE_RM_ADMIN("Administrator", "Records Management Administrator"), ROLE_RM_MANAGER("RecordsManager", "Records Management Manager"), ROLE_RM_POWER_USER("PowerUser", "Records Management Power User"), ROLE_RM_SECURITY_OFFICER("SecurityOfficer", "Records Management Security Officer"), ROLE_RM_USER("User", "Records Management User");
|
||||
|
||||
public final String roleId;
|
||||
public final String displayName;
|
||||
|
@@ -43,7 +43,6 @@ import org.alfresco.rest.rm.community.model.hold.Hold;
|
||||
import org.alfresco.rest.rm.community.model.hold.HoldCollection;
|
||||
import org.alfresco.rest.rm.community.model.recordcategory.RecordCategory;
|
||||
import org.alfresco.rest.rm.community.model.recordcategory.RecordCategoryCollection;
|
||||
import org.alfresco.rest.rm.community.model.role.RoleCollection;
|
||||
import org.alfresco.rest.rm.community.requests.RMModelRequest;
|
||||
|
||||
/**
|
||||
@@ -304,39 +303,4 @@ public class FilePlanAPI extends RMModelRequest
|
||||
{
|
||||
return getHolds(filePlanId, EMPTY);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the roles of a file plan.
|
||||
*
|
||||
* @param filePlanId
|
||||
* The identifier of a file plan
|
||||
* @param parameters
|
||||
* The URL parameters to add
|
||||
* @return The {Pagination and RoleModel Entries} for the given {@code filePlanId}
|
||||
* @throws RuntimeException
|
||||
* for the following cases:
|
||||
* <ul>
|
||||
* <li>authentication fails</li>
|
||||
* <li>current user does not have permission to read {@code filePlanId}</li>
|
||||
* <li>{@code filePlanId} does not exist</li>
|
||||
* </ul>
|
||||
*/
|
||||
public RoleCollection getFilePlanRoles(String filePlanId, String parameters)
|
||||
{
|
||||
mandatoryString("filePlanId", filePlanId);
|
||||
return getRmRestWrapper().processModels(RoleCollection.class, simpleRequest(
|
||||
GET,
|
||||
"file-plans/{filePlanId}/roles?{parameters}",
|
||||
filePlanId,
|
||||
parameters));
|
||||
}
|
||||
|
||||
/**
|
||||
* See {@link #getFilePlanRoles(String, String)}
|
||||
*/
|
||||
public RoleCollection getFilePlanRoles(String filePlanId)
|
||||
{
|
||||
return getFilePlanRoles(filePlanId, EMPTY);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -40,7 +40,7 @@ import org.alfresco.rest.core.v0.BaseAPI;
|
||||
|
||||
/**
|
||||
* The v0 REST API for nodes
|
||||
*
|
||||
*
|
||||
* @author jcule
|
||||
* @since 2.7EA1
|
||||
*/
|
||||
@@ -58,7 +58,7 @@ public class NodeAPI extends BaseAPI
|
||||
|
||||
/**
|
||||
* Get the node metadata using the using the node data webscript: Document List v2 Component
|
||||
*
|
||||
*
|
||||
* @param username
|
||||
* @param password
|
||||
* @param nodeId
|
||||
|
@@ -142,7 +142,7 @@ public class SearchAPI extends BaseAPI
|
||||
|
||||
/**
|
||||
* Search as a user for nodes on site "rm" matching query, using SearchAPI.RM_DEFAULT_RECORD_FILTERS and sorted by sortby and returns the property value for the given nodeRef and property name
|
||||
*
|
||||
*
|
||||
* @param username
|
||||
* @param password
|
||||
* @param query
|
||||
@@ -238,7 +238,7 @@ public class SearchAPI extends BaseAPI
|
||||
|
||||
/**
|
||||
* Helper method to extract list of names from search result.
|
||||
*
|
||||
*
|
||||
* @param searchResult
|
||||
* @return list of document or record names in search result
|
||||
* @throws FileNotFoundException
|
||||
@@ -249,7 +249,7 @@ public class SearchAPI extends BaseAPI
|
||||
*/
|
||||
/**
|
||||
* Helper method to extract list of names from search result.
|
||||
*
|
||||
*
|
||||
* @param searchResult
|
||||
* @return
|
||||
*/
|
||||
@@ -260,7 +260,7 @@ public class SearchAPI extends BaseAPI
|
||||
|
||||
/**
|
||||
* Helper method to extract list of property values from search result for the given nodeRef.
|
||||
*
|
||||
*
|
||||
* @param searchResult
|
||||
* @param nodeRef
|
||||
* @param propertyName
|
||||
|
@@ -93,7 +93,6 @@ import org.alfresco.rest.rm.community.requests.gscore.api.RecordsAPI;
|
||||
import org.alfresco.rest.search.RestRequestQueryModel;
|
||||
import org.alfresco.rest.search.SearchNodeModel;
|
||||
import org.alfresco.rest.search.SearchRequest;
|
||||
import org.alfresco.rest.v0.RMRolesAndActionsAPI;
|
||||
import org.alfresco.rest.v0.SearchAPI;
|
||||
import org.alfresco.utility.Utility;
|
||||
import org.alfresco.utility.data.DataUserAIS;
|
||||
@@ -128,10 +127,6 @@ public class BaseRMRestTest extends RestTest
|
||||
@Getter(value = PROTECTED)
|
||||
private SearchAPI searchApi;
|
||||
|
||||
@Autowired
|
||||
@Getter(PROTECTED)
|
||||
private RMRolesAndActionsAPI rmRolesAndActionsV0API;
|
||||
|
||||
protected static final String iso8601_DateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX";
|
||||
|
||||
/**
|
||||
|
@@ -28,7 +28,6 @@ package org.alfresco.rest.rm.community.fileplans;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
|
||||
import static com.google.common.collect.Sets.newHashSet;
|
||||
import static org.springframework.http.HttpStatus.CONFLICT;
|
||||
import static org.springframework.http.HttpStatus.CREATED;
|
||||
import static org.springframework.http.HttpStatus.FORBIDDEN;
|
||||
@@ -57,27 +56,19 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentType.UNFILED_CONTAINER_TYPE;
|
||||
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentType.UNFILED_RECORD_FOLDER_TYPE;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserPermissions.PERMISSION_FILING;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.IN_PLACE_READERS;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.IN_PLACE_WRITERS;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.ROLE_RM_ADMIN;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.ROLE_RM_MANAGER;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.ROLE_RM_POWER_USER;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.ROLE_RM_SECURITY_OFFICER;
|
||||
import static org.alfresco.rest.rm.community.model.user.UserRoles.ROLE_RM_USER;
|
||||
import static org.alfresco.utility.data.RandomData.getRandomAlphanumeric;
|
||||
import static org.alfresco.utility.data.RandomData.getRandomName;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.util.Set;
|
||||
|
||||
import org.testng.annotations.DataProvider;
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import org.alfresco.rest.rm.community.base.BaseRMRestTest;
|
||||
import org.alfresco.rest.rm.community.base.DataProviderClass;
|
||||
import org.alfresco.rest.rm.community.model.CapabilityModel;
|
||||
import org.alfresco.rest.rm.community.model.fileplan.FilePlan;
|
||||
import org.alfresco.rest.rm.community.model.fileplan.FilePlanProperties;
|
||||
import org.alfresco.rest.rm.community.model.hold.Hold;
|
||||
@@ -85,9 +76,6 @@ import org.alfresco.rest.rm.community.model.hold.HoldCollection;
|
||||
import org.alfresco.rest.rm.community.model.recordcategory.RecordCategory;
|
||||
import org.alfresco.rest.rm.community.model.recordcategory.RecordCategoryCollection;
|
||||
import org.alfresco.rest.rm.community.model.recordcategory.RecordCategoryProperties;
|
||||
import org.alfresco.rest.rm.community.model.role.Role;
|
||||
import org.alfresco.rest.rm.community.model.role.RoleCollection;
|
||||
import org.alfresco.rest.rm.community.model.user.UserCapabilities;
|
||||
import org.alfresco.rest.rm.community.requests.gscore.api.RMSiteAPI;
|
||||
import org.alfresco.utility.constants.ContainerName;
|
||||
import org.alfresco.utility.model.UserModel;
|
||||
@@ -99,7 +87,6 @@ import org.alfresco.utility.report.Bug;
|
||||
* @author Rodica Sutu
|
||||
* @since 2.6
|
||||
*/
|
||||
@SuppressWarnings("PMD.UnitTestShouldIncludeAssert")
|
||||
public class FilePlanTests extends BaseRMRestTest
|
||||
{
|
||||
// ** Number of children (for children creation test) */
|
||||
@@ -279,7 +266,7 @@ public class FilePlanTests extends BaseRMRestTest
|
||||
* When I ask the API to create a root record category
|
||||
* Then it is created as a root record category
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When I use the API to create a folder (cm:folder type) into the fileplan
|
||||
@@ -327,7 +314,7 @@ public class FilePlanTests extends BaseRMRestTest
|
||||
* When I ask the API to create a root category having the same name
|
||||
* Then the response code received is 409 - name clashes with an existing node
|
||||
* </pre>
|
||||
*
|
||||
*
|
||||
* <pre>
|
||||
* Given a root category
|
||||
* When I ask the API to create a root category having the same name with autoRename parameter on true
|
||||
@@ -607,171 +594,4 @@ public class FilePlanTests extends BaseRMRestTest
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When rmAdmin user ask the API for roles
|
||||
* It provides list of all default roles
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void listFilePlanAllDefaultRoles()
|
||||
{
|
||||
List<String> defaultRolesDisplayNames = asList(IN_PLACE_READERS.displayName, ROLE_RM_ADMIN.displayName, ROLE_RM_MANAGER.displayName, ROLE_RM_POWER_USER.displayName, ROLE_RM_USER.displayName, IN_PLACE_WRITERS.displayName, ROLE_RM_SECURITY_OFFICER.displayName);
|
||||
// Call to new API to get the roles and capabilities
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI().getFilePlanRoles(FILE_PLAN_ALIAS);
|
||||
assertStatusCode(OK);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
Role role = roleModelEntry.getEntry();
|
||||
assertTrue(defaultRolesDisplayNames.contains(role.getDisplayLabel()));
|
||||
assertNotNull(role.getCapabilities());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When rmAdmin user ask the API for roles with SystemRoles as false
|
||||
* It provides list of all roles excluding SystemRoles
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void listFilePlanAllRolesExcludeSystemRoles()
|
||||
{
|
||||
String parameters = "where=(systemRoles=false)";
|
||||
List<String> systemRolesDisplayNames = asList(IN_PLACE_WRITERS.displayName, IN_PLACE_READERS.displayName);
|
||||
// Call to new API to get the roles and capabilities
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI().getFilePlanRoles(FILE_PLAN_ALIAS, parameters);
|
||||
assertStatusCode(OK);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
Role role = roleModelEntry.getEntry();
|
||||
assertFalse(systemRolesDisplayNames.contains(role.getDisplayLabel()));
|
||||
assertNotNull(role.getCapabilities());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When a non-RM user asks the API for the roles
|
||||
* Then the status code 403 (Permission denied) is return
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void nonRmUserFilePlanRoles()
|
||||
{
|
||||
// Create a random user
|
||||
UserModel nonRMuser = getDataUser().createRandomTestUser("testUser");
|
||||
// Call to new API to get the roles and capabilities
|
||||
getRestAPIFactory().getFilePlansAPI(nonRMuser).getFilePlanRoles(FILE_PLAN_ALIAS);
|
||||
assertStatusCode(FORBIDDEN);
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When a RM_Manager user asks the API for the roles
|
||||
* returns the RM_Manager role and capabilities
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void rmManagerFilePlanRolesAndCapabilities()
|
||||
{
|
||||
// Create a random user
|
||||
UserModel managerUser = getDataUser().createRandomTestUser("managerUser");
|
||||
// Assign RecordsManager role to user
|
||||
getRestAPIFactory().getRMUserAPI().assignRoleToUser(managerUser.getUsername(), ROLE_RM_MANAGER.roleId);
|
||||
String parameters = "where=(personId='" + managerUser.getUsername() + "')";
|
||||
// Call to new API to get the roles and capabilities
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI(managerUser).getFilePlanRoles(FILE_PLAN_ALIAS, parameters);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
Role role = roleModelEntry.getEntry();
|
||||
assertEquals(ROLE_RM_MANAGER.displayName, role.getDisplayLabel());
|
||||
assertNotNull(role.getCapabilities());
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When a User with more than one role asks the API for the roles and relation
|
||||
* returns the roles and capabilities
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void multipleRoleUserFilePlanRolesAndCapabilities()
|
||||
{
|
||||
// Create a random user
|
||||
UserModel rmUser = getDataUser().createRandomTestUser("rmUser");
|
||||
// Assign rmUser role to user
|
||||
getRestAPIFactory().getRMUserAPI().assignRoleToUser(rmUser.getUsername(), ROLE_RM_USER.roleId);
|
||||
getRestAPIFactory().getRMUserAPI().assignRoleToUser(rmUser.getUsername(), ROLE_RM_POWER_USER.roleId);
|
||||
String parameters = "where=(personId='" + rmUser.getUsername() + "')";
|
||||
// Call to new API to get the roles and capabilities
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI(rmUser).getFilePlanRoles(FILE_PLAN_ALIAS, parameters);
|
||||
assertStatusCode(OK);
|
||||
assertEquals(roleCollection.getEntries().size(), 2);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
Role role = roleModelEntry.getEntry();
|
||||
assertTrue(role.getDisplayLabel().equals(ROLE_RM_USER.displayName) || role.getDisplayLabel().equals(ROLE_RM_POWER_USER.displayName));
|
||||
assertNotNull(role.getCapabilities());
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When a new user with a new role asks the API for the roles and relation
|
||||
* returns the new role and new capabilities
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void newRoleUserFilePlanRolesAndCapabilities()
|
||||
{
|
||||
/** A list of capabilities. */
|
||||
Set<String> newCapabilities = newHashSet(UserCapabilities.VIEW_RECORDS_CAP, UserCapabilities.DECLARE_RECORDS_CAP);
|
||||
// Create a new role using old API
|
||||
getRmRolesAndActionsV0API().createRole(getAdminUser().getUsername(), getAdminUser().getPassword(), "NewTestRole",
|
||||
"New Role Label", newCapabilities);
|
||||
// Create a random user
|
||||
UserModel rmNewUser = getDataUser().createRandomTestUser("rmPowerUser");
|
||||
// Assign New role to user
|
||||
getRestAPIFactory().getRMUserAPI().assignRoleToUser(rmNewUser.getUsername(), "NewTestRole");
|
||||
String parameters = "where=(personId='" + rmNewUser.getUsername() + "')";
|
||||
// Call to new API to get the roles and capabilities
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI(rmNewUser).getFilePlanRoles(FILE_PLAN_ALIAS, parameters);
|
||||
assertStatusCode(OK);
|
||||
assertEquals(roleCollection.getEntries().size(), 1);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
List<CapabilityModel> capabilities = roleModelEntry.getEntry().getCapabilities();
|
||||
capabilities.forEach(capabilityModel -> {
|
||||
assertTrue(newCapabilities.contains(capabilityModel.name()));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* Given that a file plan exists
|
||||
* When API call happens with Capability filter
|
||||
* returns roles associated with the capability
|
||||
* </pre>
|
||||
*/
|
||||
@Test
|
||||
public void filePlanRolesAndCapabilitiesFilter()
|
||||
{
|
||||
String parameters = "where=(systemRoles=true and capabilityName in ('ManageRules'))";
|
||||
// Call to new API to get the roles and capabilities, filter by capability, include assigned users
|
||||
RoleCollection roleCollection = getRestAPIFactory().getFilePlansAPI().getFilePlanRoles(FILE_PLAN_ALIAS, parameters);
|
||||
assertStatusCode(OK);
|
||||
assertEquals(roleCollection.getEntries().size(), 1);
|
||||
roleCollection.getEntries().forEach(roleModelEntry -> {
|
||||
Role role = roleModelEntry.getEntry();
|
||||
assertEquals(ROLE_RM_ADMIN.displayName, role.getDisplayLabel());
|
||||
assertNotNull(role.getCapabilities());
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -134,16 +134,6 @@ public class AddToHoldsBulkV1Tests extends BaseRMRestTest
|
||||
.until(() -> getRestAPIFactory().getSearchAPI(null).search(searchRequest).getPagination()
|
||||
.getTotalItems() == NUMBER_OF_FILES);
|
||||
|
||||
RestRequestQueryModel ancestorReq = getContentFromFolderAndAllSubfoldersQuery(rootFolder.getNodeRefWithoutVersion());
|
||||
SearchRequest ancestorSearchRequest = new SearchRequest();
|
||||
ancestorSearchRequest.setQuery(ancestorReq);
|
||||
|
||||
STEP("Wait until paths are indexed.");
|
||||
// to improve stability on CI - seems that sometimes during big load we need to wait longer for the condition
|
||||
await().atMost(120, TimeUnit.SECONDS)
|
||||
.until(() -> getRestAPIFactory().getSearchAPI(null).search(ancestorSearchRequest).getPagination()
|
||||
.getTotalItems() == NUMBER_OF_FILES);
|
||||
|
||||
holdBulkOperation = HoldBulkOperation.builder()
|
||||
.query(queryReq)
|
||||
.op(HoldBulkOperationType.ADD).build();
|
||||
|
@@ -0,0 +1 @@
|
||||
com.epam.reportportal.testng.ReportPortalTestNGListener
|
@@ -23,7 +23,7 @@ Recorded content can be explicitly destroyed whilst maintaining the original nod
|
||||
* License: Alfresco Community
|
||||
* Issue Tracker Link: [JIRA RM](https://issues.alfresco.com/jira/projects/RM/summary)
|
||||
* Contribution Model: Alfresco Closed Source
|
||||
* Documentation: [docs.alfresco.com (Records Management)](https://support.hyland.com/access?dita:id=job1721300866386&vrm_version=25.1&component=Alfresco%20Governance%20Services%20Community%20Edition)
|
||||
* Documentation: [docs.alfresco.com (Records Management)](http://docs.alfresco.com/rm2.4/concepts/welcome-rm.html)
|
||||
|
||||
***
|
||||
|
||||
|
@@ -21,18 +21,18 @@ RM is split into two main parts - a repository integration and a Share integrati
|
||||
* [Community License](../LICENSE.txt)
|
||||
* [Enterprise License](../../rm-enterprise/LICENSE.txt) (this file will only be present in clones of the Enterprise repository)
|
||||
* [Issue Tracker Link](https://issues.alfresco.com/jira/projects/RM)
|
||||
* [Community Documentation Link](https://support.hyland.com/access?dita:id=job1721300866386&vrm_version=25.1&component=Alfresco%20Governance%20Services%20Community%20Edition)
|
||||
* [Enterprise Documentation Link](https://support.hyland.com/access?dita:id=job1721300866386&vrm_version=25.1)
|
||||
* [Community Documentation Link](http://docs.alfresco.com/rm-community/concepts/welcome-rm.html)
|
||||
* [Enterprise Documentation Link](http://docs.alfresco.com/rm/concepts/welcome-rm.html)
|
||||
* [Contribution Model](../../CONTRIBUTING.md)
|
||||
|
||||
***
|
||||
|
||||
### Prerequisite Knowledge
|
||||
An understanding of Alfresco Content Services is assumed. The following pages from the [developer documentation](https://support.hyland.com/access?dita:id=lsl1724405261585&vrm_version=25.2&component=Alfresco%20Content%20Services%20Community%20Edition) give useful background information:
|
||||
An understanding of Alfresco Content Services is assumed. The following pages from the [developer documentation](http://docs.alfresco.com/5.2/concepts/dev-for-developers.html) give useful background information:
|
||||
|
||||
* [ACS Architecture](https://support.hyland.com/access?dita:id=lfo1719554691023&vrm_version=25.2)
|
||||
* [Platform Extensions](https://support.hyland.com/access?dita:id=ifr1720080387005&vrm_version=25.2)
|
||||
* [Share Extensions](https://support.hyland.com/access?dita:id=wqu1720687386891&vrm_version=25.2)
|
||||
* [ACS Architecture](http://docs.alfresco.com/5.2/concepts/dev-arch-overview.html)
|
||||
* [Platform Extensions](http://docs.alfresco.com/5.2/concepts/dev-platform-extensions.html)
|
||||
* [Share Extensions](http://docs.alfresco.com/5.2/concepts/dev-extensions-share.html)
|
||||
|
||||
***
|
||||
|
||||
@@ -44,12 +44,12 @@ The RM Share module communicates with the repository module via REST APIs. Inter
|
||||
* A DAO layer responsible for CRUD operations against the database.
|
||||
|
||||
#### REST API
|
||||
The REST API endpoints fall into two main types - v0 (Webscripts) and v1. The [v0 API](https://support.hyland.com/access?dita:id=fga1720080409048&vrm_version=25.2) is older and not recommended for integrations. The [v1 API](https://support.hyland.com/access?dita:id=cmm1721136574006&vrm_version=25.2) is newer but isn't yet feature complete. If you are running RM locally then the GS API Explorer will be available at [this link](http://localhost:8080/gs-api-explorer/).
|
||||
The REST API endpoints fall into two main types - v0 (Webscripts) and v1. The [v0 API](http://docs.alfresco.com/5.2/references/dev-extension-points-webscripts.html) is older and not recommended for integrations. The [v1 API](http://docs.alfresco.com/5.1/pra/1/topics/pra-welcome-aara.html) is newer but isn't yet feature complete. If you are running RM locally then the GS API Explorer will be available at [this link](http://localhost:8080/gs-api-explorer/).
|
||||
|
||||
Internally the GS v1 REST API is built on the [Alfresco v1 REST API framework](https://community.alfresco.com/community/ecm/blog/2016/10/11/v1-rest-api-part-1-introduction). It aims to be consistent with this in terms of behaviour and naming.
|
||||
|
||||
#### Java Public API
|
||||
The Java service layer is fronted by a [Java Public API](https://support.hyland.com/access?dita:id=lol1721390191517&vrm_version=25.2), which we will ensure backward compatible with previous releases. Before we remove any methods there will first be a release containing that method deprecated to allow third party integrations to migrate to a new method. The Java Public API also includes a set of POJO objects which are needed to communicate with the services. It is easy to identify classes that are part of the Java Public API as they are annotated `@AlfrescoPublicApi`.
|
||||
The Java service layer is fronted by a [Java Public API](http://docs.alfresco.com/5.2/concepts/java-public-api-list.html), which we will ensure backward compatible with previous releases. Before we remove any methods there will first be a release containing that method deprecated to allow third party integrations to migrate to a new method. The Java Public API also includes a set of POJO objects which are needed to communicate with the services. It is easy to identify classes that are part of the Java Public API as they are annotated `@AlfrescoPublicApi`.
|
||||
|
||||
Each Java service will have at least four beans defined for it:
|
||||
|
||||
@@ -61,7 +61,7 @@ Each Java service will have at least four beans defined for it:
|
||||
#### DAOs
|
||||
The DAOs are not part of the Java Public API, but handle CRUD operations against RM stored data. We have some custom queries to improve performance for particularly heavy operations.
|
||||
|
||||
We use standard Alfresco [data modelling](https://support.hyland.com/access?dita:id=ekx1720080373621&vrm_version=25.2) to store RM metadata. We extend the [Alfresco patching mechanism](https://support.hyland.com/access?dita:id=ato1720080396825&vrm_version=25.2) to provide community and enterprise schema upgrades.
|
||||
We use standard Alfresco [data modelling](http://docs.alfresco.com/5.2/references/dev-extension-points-content-model.html) to store RM metadata. We extend the [Alfresco patching mechanism](http://docs.alfresco.com/5.2/references/dev-extension-points-patch.html) to provide community and enterprise schema upgrades.
|
||||
|
||||
***
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<parent>
|
||||
<groupId>org.alfresco</groupId>
|
||||
<artifactId>alfresco-governance-services-community-parent</artifactId>
|
||||
<version>25.3.0.25-SNAPSHOT</version>
|
||||
<version>23.3.7.3</version>
|
||||
</parent>
|
||||
|
||||
<modules>
|
||||
|
@@ -1,3 +1,3 @@
|
||||
SOLR6_TAG=2.0.16
|
||||
POSTGRES_TAG=16.6
|
||||
SOLR6_TAG=2.0.11
|
||||
POSTGRES_TAG=15.4
|
||||
ACTIVEMQ_TAG=5.18.3-jre17-rockylinux8
|
||||
|
@@ -119,11 +119,6 @@ rm.patch.v35.holdNewChildAssocPatch.batchSize=1000
|
||||
rm.haspermissionmap.read=Read
|
||||
rm.haspermissionmap.write=WriteProperties,AddChildren,ReadContent
|
||||
|
||||
# Extended Permissions
|
||||
# Enable matching the given username with the correct casing username when retrieving an IPR group.
|
||||
# Only needs to be used if there are owners that don't have the username in the correct casing.
|
||||
rm.extendedSecurity.enableUsernameNormalization=false
|
||||
|
||||
#
|
||||
# Extended auto-version behaviour. If true and other auto-version properties are satisfied, then
|
||||
# a document will be auto-versioned when its type is changed.
|
||||
|
@@ -147,4 +147,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -33,9 +33,9 @@ function main()
|
||||
{
|
||||
// Log debug message
|
||||
logger.log("Record " + node.name + " has been superseded. Sending notification");
|
||||
|
||||
|
||||
// Send notification
|
||||
rmService.sendSupersededNotification(node);
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -143,4 +143,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -141,4 +141,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -35,4 +35,4 @@ function main()
|
||||
logger.log("Sample RM script. No-op run on node " + node.name);
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -139,4 +139,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -148,4 +148,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@@ -110,4 +110,4 @@
|
||||
${transferNode.properties["declaredOn"]?string(message("file.report.date.format"))?html}
|
||||
</#if>
|
||||
</div>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
@@ -33,8 +33,5 @@
|
||||
|
||||
<!-- content cleanser -->
|
||||
<bean id="contentCleanser.522022M" class="org.alfresco.module.org_alfresco_module_rm.content.cleanser.ContentCleanser522022M"/>
|
||||
|
||||
<!-- content cleanser -->
|
||||
<bean id="contentCleanser.SevenPass" class="org.alfresco.module.org_alfresco_module_rm.content.cleanser.ContentCleanserSevenPass"/>
|
||||
|
||||
</beans>
|
||||
|
@@ -78,12 +78,6 @@
|
||||
<property name="transactionService" ref="transactionService" />
|
||||
</bean>
|
||||
|
||||
<bean class="org.alfresco.rm.rest.api.fileplans.FilePlanRolesRelation">
|
||||
<property name="apiUtils" ref="apiUtils" />
|
||||
<property name="rmRoles" ref="rm.roles" />
|
||||
<property name="filePlanService" ref="FilePlanService" />
|
||||
</bean>
|
||||
|
||||
<bean class="org.alfresco.rm.rest.api.holds.HoldsEntityResource" >
|
||||
<property name="holdService" ref="HoldService" />
|
||||
<property name="apiUtils" ref="apiUtils" />
|
||||
@@ -234,11 +228,6 @@
|
||||
<property name="siteSurfConfig" ref="rm.siteSurfConfig" />
|
||||
</bean>
|
||||
|
||||
<bean id="rm.roles" class="org.alfresco.rm.rest.api.impl.RMRolesImpl">
|
||||
<property name="nodesModelFactory" ref="nodesModelFactory" />
|
||||
<property name="filePlanRoleService" ref="FilePlanRoleService"/>
|
||||
</bean>
|
||||
|
||||
<bean id="rm.siteSurfConfig" class="org.alfresco.rest.api.impl.SiteSurfConfig">
|
||||
<property name="configPath" value="alfresco/module/org_alfresco_module_rm/bootstrap/site"/>
|
||||
</bean>
|
||||
@@ -291,4 +280,4 @@
|
||||
<property name="beanName" value="restJsonModule" />
|
||||
<property name="extendingBeanName" value="rm.restJsonModule" />
|
||||
</bean>
|
||||
</beans>
|
||||
</beans>
|
@@ -611,7 +611,6 @@
|
||||
<property name="authorityService" ref="authorityService"/>
|
||||
<property name="permissionService" ref="permissionService"/>
|
||||
<property name="transactionService" ref="transactionService"/>
|
||||
<property name="enableUsernameNormalization" value="${rm.extendedSecurity.enableUsernameNormalization}" />
|
||||
</bean>
|
||||
|
||||
<bean id="ExtendedSecurityService" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
<#include "classes.get.json.ftl">
|
||||
<#include "classes.get.json.ftl">
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
<#include "properties.get.json.ftl">
|
||||
<#include "properties.get.json.ftl">
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
{}
|
||||
{}
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
{}
|
||||
{}
|
||||
|
@@ -27,4 +27,4 @@
|
||||
{
|
||||
"responsestatus" : "${responsestatus?json_string}",
|
||||
"message" : "${message?json_string}"
|
||||
}
|
||||
}
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
<#include "actionconditiondefinitions.get.json.ftl">
|
||||
<#include "actionconditiondefinitions.get.json.ftl">
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
<#include "actiondefinitions.get.json.ftl">
|
||||
<#include "actiondefinitions.get.json.ftl">
|
||||
|
@@ -27,4 +27,4 @@
|
||||
{
|
||||
"responsestatus" : "${responsestatus?json_string}",
|
||||
"message" : "${message?json_string}"
|
||||
}
|
||||
}
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"${substitution}"<#if substitution_has_next>,</#if>
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@@ -99,10 +99,10 @@ function main()
|
||||
{
|
||||
version = versionHistory[i];
|
||||
p = getPerson(version.creator);
|
||||
|
||||
|
||||
recordNodeRef = version.getVersionProperty("recordNodeRef");
|
||||
isRecordedVersionDestroyed = version.getVersionProperty("RecordedVersionDestroyed");
|
||||
|
||||
|
||||
versions[versions.length] =
|
||||
{
|
||||
nodeRef: version.node.nodeRef.toString(),
|
||||
@@ -148,4 +148,4 @@ function main()
|
||||
model.versions = versions;
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -45,4 +45,4 @@
|
||||
}<#if (v_has_next)>,</#if>
|
||||
</#list>
|
||||
]
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -37,4 +37,4 @@
|
||||
]
|
||||
}
|
||||
</#escape>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@emailmapLib.emailmapJSON emailmap=emailmap />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -36,4 +36,4 @@
|
||||
]
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -41,4 +41,4 @@ function existsTitle(caveatConfig, title)
|
||||
}
|
||||
|
||||
return alreadyExists;
|
||||
}
|
||||
}
|
||||
|
@@ -26,19 +26,19 @@
|
||||
*/
|
||||
/**
|
||||
* Delete the rm constraint list
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
// Get the shortname
|
||||
var shortName = url.extension;
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
caveatConfig.deleteConstraintList(shortName);
|
||||
|
||||
|
||||
// Pass the constraint name to the template
|
||||
model.constraintName = shortName;
|
||||
}
|
||||
@@ -50,4 +50,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -28,4 +28,4 @@
|
||||
{
|
||||
"data": { }
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -26,15 +26,15 @@
|
||||
*/
|
||||
/**
|
||||
* Get the detail of the rm constraint
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
// Get the shortname
|
||||
var shortName = url.extension;
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
// Pass the constraint detail to the template
|
||||
@@ -48,4 +48,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data": <@rmconstraintLib.constraintJSON constraint=constraint />
|
||||
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -84,4 +84,4 @@
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
@@ -34,4 +34,4 @@
|
||||
"message" : "${msg(errorMessage, title)}"
|
||||
</#if>
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -84,4 +84,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -26,14 +26,14 @@
|
||||
*/
|
||||
/**
|
||||
* List the names of the rm constraints
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var wel = true;
|
||||
var withEmptyLists = args["withEmptyLists"];
|
||||
// Pass the information to the template
|
||||
if (withEmptyLists != null && withEmptyLists === 'false')
|
||||
{
|
||||
{
|
||||
model.constraints = caveatConfig.constraintsWithoutEmptyList;
|
||||
}
|
||||
else
|
||||
@@ -42,4 +42,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -36,4 +36,4 @@
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -34,4 +34,4 @@
|
||||
"message" : "${msg(errorMessage, title)}"
|
||||
</#if>
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -78,4 +78,4 @@ function main()
|
||||
model.constraint = caveatConfig.createConstraint(name, title, allowedValues);
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -26,15 +26,15 @@
|
||||
*/
|
||||
/**
|
||||
* Get the detail of the rm constraint
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var urlElements = url.extension.split("/");
|
||||
var shortName = urlElements[0];
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
// Pass the constraint detail to the template
|
||||
@@ -48,4 +48,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -26,33 +26,33 @@
|
||||
*/
|
||||
/**
|
||||
* Update the details of a value in an rm constraint
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var urlElements = url.extension.split("/");
|
||||
var shortName = urlElements[0];
|
||||
|
||||
|
||||
var values = null;
|
||||
|
||||
|
||||
if (json.has("values"))
|
||||
{
|
||||
values = json.getJSONArray("values");
|
||||
}
|
||||
|
||||
|
||||
if (values == null)
|
||||
{
|
||||
status.setCode(status.STATUS_BAD_REQUEST, "Values missing");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
constraint.updateValues(values);
|
||||
constraint.updateValues(values);
|
||||
model.constraint = caveatConfig.getConstraint(shortName);
|
||||
model.constraintName = shortName;
|
||||
model.constraintName = shortName;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -62,4 +62,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -26,13 +26,13 @@
|
||||
*/
|
||||
/**
|
||||
* Delete the rm constraint list
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var urlElements = url.extension.split("/");
|
||||
var shortName = urlElements[0];
|
||||
var authorityName = urlElements[1];
|
||||
|
||||
|
||||
if (shortName == null)
|
||||
{
|
||||
status.setCode(status.STATUS_BAD_REQUEST, "shortName missing");
|
||||
@@ -43,16 +43,16 @@ function main()
|
||||
status.setCode(status.STATUS_BAD_REQUEST, "value missing");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
caveatConfig.deleteRMConstraintListValue(shortName, valueName);
|
||||
|
||||
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
// Pass the constraint name to the template
|
||||
model.constraint = constraint;
|
||||
}
|
||||
@@ -64,4 +64,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@rmconstraintLib.constraintWithValuesJSON constraint=constraint />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -26,28 +26,28 @@
|
||||
*/
|
||||
/**
|
||||
* Get the detail of the rm constraint
|
||||
*/
|
||||
*/
|
||||
function main()
|
||||
{
|
||||
var urlElements = url.extension.split("/");
|
||||
var shortName = decodeURIComponent(urlElements[0]);
|
||||
var valueName = decodeURIComponent(urlElements[2])
|
||||
|
||||
|
||||
// Get the constraint
|
||||
var constraint = caveatConfig.getConstraint(shortName);
|
||||
|
||||
|
||||
if (constraint != null)
|
||||
{
|
||||
// Pass the constraint detail to the template
|
||||
var value = constraint.getValue(valueName);
|
||||
|
||||
|
||||
if(value == null)
|
||||
{
|
||||
// Return 404
|
||||
status.setCode(404, "Constraint List: " + shortName + " value: " + valueName + "does not exist");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
model.value = value;
|
||||
model.constraint = constraint;
|
||||
}
|
||||
@@ -59,4 +59,4 @@ function main()
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
main();
|
||||
|
@@ -30,4 +30,4 @@
|
||||
{
|
||||
"data": <@rmconstraintLib.constraintWithValueJSON constraint=constraint value=value/>
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
{}
|
||||
{}
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data":
|
||||
<@rmEventLib.eventJSON event=event />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -34,4 +34,5 @@
|
||||
"eventType":"${event.type}"
|
||||
}
|
||||
</#escape>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data":
|
||||
<@rmEventLib.eventJSON event=event />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -36,4 +36,4 @@
|
||||
</#list>
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -32,4 +32,4 @@
|
||||
<@rmEventLib.eventJSON event=event />
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -39,4 +39,4 @@
|
||||
</#list>
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -24,4 +24,4 @@
|
||||
along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
#L%
|
||||
-->
|
||||
{}
|
||||
{}
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data":
|
||||
<@rmRoleLib.roleJSON role=role />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -62,4 +62,4 @@
|
||||
</#if>
|
||||
}
|
||||
</#escape>
|
||||
</#macro>
|
||||
</#macro>
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data":
|
||||
<@rmRoleLib.roleJSON role=role />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -36,4 +36,4 @@
|
||||
</#list>
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"data":
|
||||
<@rmRoleLib.roleJSON role=role />
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -28,4 +28,4 @@
|
||||
{
|
||||
"success": ${success?string}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -28,4 +28,4 @@
|
||||
{
|
||||
"success": ${success?string}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -28,4 +28,4 @@
|
||||
{
|
||||
"success": ${success?string}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -56,4 +56,4 @@
|
||||
]
|
||||
</#if>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -37,4 +37,4 @@
|
||||
</#list>
|
||||
]
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -31,4 +31,4 @@
|
||||
"customProperty": "${propertyqname}"
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
"url": "${url!""}",
|
||||
"message": "${errorMessage!""}"
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -30,4 +30,4 @@
|
||||
"url": "${url!""}",
|
||||
"message": "${errorMessage!""}"
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -66,4 +66,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
@@ -26,4 +26,4 @@
|
||||
-->
|
||||
{
|
||||
"success": ${success?string}
|
||||
}
|
||||
}
|
||||
|
@@ -28,4 +28,4 @@
|
||||
{
|
||||
"success": ${success?string}
|
||||
}
|
||||
</#escape>
|
||||
</#escape>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user