Compare commits

..

1288 Commits

Author SHA1 Message Date
alfresco-build
8fd4ce6982 [maven-release-plugin] prepare release V3.3.0.2 2020-10-23 14:35:44 +01:00
tiagosalvado10
54b3d3d5b0 Merge pull request #1255 from Alfresco/hotfix-3.3/MNT-21935_RootNodeCache
[MNT-21935] Added cache to records management root, preventing the query from being executed multiple times
2020-10-22 15:31:04 +01:00
tiagos
292f1fff0a [RM-7162] Changed isCached flag logic. Code formatting.
(cherry picked from commit 2fd5e8ce78)
2020-10-21 19:33:15 +01:00
tiagos
25e57372e1 [RM-7162] Added validations to prevent having a cached empty set
(cherry picked from commit de54034b80)
2020-10-21 19:32:36 +01:00
tiagosalvado10
595b2c44db Merge pull request #1220 from Alfresco/hotfix-3.2/MNT-21818_fix_tests
[MNT-21818] Created records management root cache to avoid performing the same query multiple times

(cherry picked from commit 2538c12a92)
2020-10-21 19:21:22 +01:00
Claudia Agache
83da43729a Limit memory for new containers 2020-10-14 07:29:36 +03:00
Claudia Agache
3ddd4578d6 Merge remote-tracking branch 'remotes/origin/release/V3.2' into merge-3.3/APPS-237_RunERTests_no 2020-10-13 13:16:43 +03:00
Claudia Agache
76a827dd01 Merge remote-tracking branch 'remotes/origin/release/V3.2' into merge-3.3/APPS-236_and_APPS-488_no
# Conflicts:
#	rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/search/SearchRecordsV1CmisTests.java
2020-09-30 11:38:57 +03:00
Claudia Agache
b10a1a79ea Merge remote-tracking branch 'remotes/origin/release/V3.2' into merge-3.3/APPS-235_SetupEnv_no
# Conflicts:
#	.travis.yml
2020-07-16 14:57:52 +03:00
rodicasutu
b39e7ce9cc deploy parent pom file 2020-07-15 17:43:29 +03:00
rodicasutu
8f635d0a08 Merge remote-tracking branch 'remotes/origin/release/V3.2' into merge-3.3/APPS-230_BuildAGSOnTravis
# Conflicts:
#	.travis.settings.xml
#	.travis.yml
2020-07-15 11:31:49 +03:00
Claudia Agache
08a6393ed9 Change SCM URLs in order to switch to SSH authentication with 2FA for Github
(cherry picked from commit 53f26b5793)
2020-06-09 08:53:43 +01:00
Claudia Agache
ac0287bff4 RM-7131 Update old gitlab repo links with the new one from github
(cherry picked from commit c3cdd88873)
2020-06-09 08:31:29 +01:00
alfresco-build
5fbd659e73 [maven-release-plugin] prepare for next development iteration 2020-02-04 13:19:09 +00:00
alfresco-build
8546c0ab2a [maven-release-plugin] prepare release V3.3.0.1 2020-02-04 13:19:05 +00:00
Ramona Popa
66cf80d2b7 Merge branch 'feature-3.3/merge_RM-7053_to_3.3.0' into 'release/V3.3.0.x'
Merge branch 'feature-3.3/RM-7053_FixCmisQueryTest' into 'release/V3.3'

See merge request records-management/records-management!1374
2020-02-03 11:51:17 +00:00
Ramona Popa
c0657e8933 Merge branch 'feature-3.3/RM-7053_FixCmisQueryTest' into 'release/V3.3'
RM-7053_FixCmisQueryTest

See merge request records-management/records-management!1365
2020-02-03 11:51:17 +00:00
Ramona Popa
bb99613b8a Merge branch 'hotfix-3.3/RM-7110_UpgradeTo3.3Fails' into 'release/V3.3.0.x'
RM-7110: Patch rm.holdAuditValuesUpdatedPatch fails to be executed when doing...

See merge request records-management/records-management!1370
2020-01-31 14:24:07 +00:00
Ramona Popa
d73bd36674 RM-7110: Patch rm.holdAuditValuesUpdatedPatch fails to be executed when doing upgrade from 3.1 to 3.3
- check if property exists before trying to update it
2020-01-31 14:24:07 +00:00
Ramona Popa
7ce514359e Merge branch 'hotfix-3.3/RM-7111_AGS_3.3_with_ACS_6.1' into 'release/V3.3.0.x'
RM-7111: AGS 3.3 can't be installed on ACS 6.1

See merge request records-management/records-management!1371
2020-01-31 14:02:36 +00:00
Ramona Popa
fc4ecc13d2 RM-7111: AGS 3.3 can't be installed on ACS 6.1
- added alfresco.min.version to 6.1
2020-01-31 14:02:36 +00:00
Claudia Agache
2ebc64e577 Update version to 3.3.0.1-SNAPSHOT 2020-01-14 12:39:07 +02:00
alfresco-build
0353691b4e [maven-release-plugin] prepare release V3.3.0 2020-01-13 15:45:26 +00:00
Christopher Shields
34fb6224d9 Merge branch 'feature/RM-7101_DeleteHold_Upgrade_Patch' into 'master'
RM-7101: [Upgrade] Delete hold audit events are not properly migrated

Closes RM-7101

See merge request records-management/records-management!1348
2020-01-13 00:00:35 +00:00
Christopher Shields
d9c3d3c219 RM-7101: [Upgrade] Delete hold audit events are not properly migrated 2020-01-13 00:00:34 +00:00
Christopher Shields
b0032f69b2 Merge branch 'feature/RM-7098_AddRemoveFromHolds_Upgrade_Patch' into 'master'
RM-7098: [Upgrade] Add to Hold and Remove from hold audit events are not properly migrated

Closes RM-7098

See merge request records-management/records-management!1345
2020-01-10 09:23:06 +00:00
Ramona Popa
8027c10b4b RM-7098: [Upgrade] Add to Hold and Remove from hold audit events are not properly migrated 2020-01-10 09:23:06 +00:00
gbroadbent
41e06633b5 RUSSIAN: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Full fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 11:01:56 +00:00
gbroadbent
3995c8ef99 SIMPLIFIED CHINESE: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:21:57 +00:00
gbroadbent
d0aae1fd32 BRAZILIAN PORTUGUESE: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:20:39 +00:00
gbroadbent
7f66c4a90f DUTCH: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:20:05 +00:00
gbroadbent
c316c43157 NORWEGIAN Bokmal: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:19:30 +00:00
gbroadbent
cd2ff6e461 JAPANESE: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:19:01 +00:00
gbroadbent
31776aa101 ITALIAN: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:18:32 +00:00
gbroadbent
386fdb88d4 FRENCH: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:18:02 +00:00
gbroadbent
bdb2f80e74 SPANISH: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:17:37 +00:00
gbroadbent
7f74862eaa GERMAN: Updated files for AGS 3.3 based on EN version of 2020-01-03_master branch. Partial fix for https://issues.alfresco.com/jira/browse/LOC-185 2020-01-09 10:16:58 +00:00
Sara Aspery
d9e1c21cd6 Update license headers 2020-01-03 10:53:19 +00:00
Sara Aspery
187db478a5 Merge branch 'release/V3.2' 2020-01-03 10:45:13 +00:00
Sara Aspery
e1da6ab294 Update license headers 2020-01-02 20:19:58 +00:00
Sara Aspery
18b14ceca8 Merge branch 'release/V3.1' into release/V3.2 2020-01-02 20:15:28 +00:00
Sara Aspery
bd67c3bf6b Update license headers 2020-01-02 18:27:23 +00:00
Sara Aspery
f7e69629bb Merge branch 'release/V3.0' into release/V3.1 2020-01-02 18:21:48 +00:00
Sara Aspery
03eee1b8e3 Update license headers 2020-01-02 16:20:24 +00:00
Sara Aspery
841340c1e8 Merge branch 'release/V2.7' into release/V3.0
# Conflicts:
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/enterprise/security/apiTesting/SearchClassifiedContent.java
#	rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/job/AutomaticDispositionTest.java
#	rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/legacy/service/RMCaveatConfigServiceImplTest.java
#	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/util/SecurityMarkChecker.java
#	rm-enterprise/rm-enterprise-repo/src/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/classification/interceptor/DocumentSearchClassificationEnforcementTest.java
#	rm-enterprise/rm-enterprise-repo/src/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/classification/interceptor/RecordSearchClassificationEnforcementTest.java
#	rm-enterprise/rm-enterprise-repo/src/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/classification/interceptor/SavedSearchClassificationEnforcementTest.java
#	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/SecurityMarkCheckerUnitTest.java
2020-01-02 16:15:49 +00:00
Sara Aspery
b48d31457a Update license headers 2020-01-02 15:05:02 +00:00
Sara Aspery
0ed125b0b5 Merge branch 'release/V2.6' into release/V2.7
# Conflicts:
#	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/model/AbstractSecureItem.java
2020-01-02 14:19:01 +00:00
Sara Aspery
943dc45a10 Update license headers 2020-01-02 13:57:59 +00:00
Sara Aspery
3819044347 Merge branch 'feature/RM-7062_NoReadOnHoldCanSeeAuditEvent' into 'master'
RM-7062 Check hold permission for view audit event

Closes RM-7062

See merge request records-management/records-management!1324
2019-12-20 19:10:12 +00:00
Claudia Agache
4d19133ede Merge branch 'feature/RM-7081_ReduceAutomationProjSonarIssues' into 'master'
RM-7081 Reduce automation proj sonar issues

Closes RM-7081

See merge request records-management/records-management!1337
2019-12-20 14:49:19 +00:00
cagache
8057ed6033 Remove mvn clean 2019-12-20 14:38:44 +02:00
cagache
68554bba93 Revert "Added install_first source clear scan directive"
This reverts commit 3a81f88f
2019-12-20 14:37:51 +02:00
cagache
8e916705d4 Revert "Added back fail-fast"
This reverts commit b6765cd5
2019-12-20 14:37:32 +02:00
cagache
b6765cd59b Added back fail-fast 2019-12-20 14:25:20 +02:00
cagache
3a81f88fcd Added install_first source clear scan directive 2019-12-20 11:40:49 +02:00
cagache
92b2f04504 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7081_ReduceAutomationProjSonarIssues 2019-12-20 10:38:08 +02:00
cagache
e9697349c9 Upgrade jackson-databind from 2.9.10 to 2.9.10.1 2019-12-20 09:50:58 +02:00
Sara Aspery
ff5f8f8d68 RM-7062 fix for failing tests 2019-12-20 02:20:13 +00:00
Sara Aspery
46918e41eb RM-7062 add noderef to audit entry for hold 2019-12-19 22:46:07 +00:00
Roxana Lucanu
8cdd220526 Merge branch 'feature/RM_7096_VeracodeScanExcludeAutomation_no' into 'master'
RM-7096 Source clear scan exclude automation project

See merge request records-management/records-management!1338
2019-12-19 15:14:39 +00:00
cagache
504c27f5aa Added comment 2019-12-19 17:00:42 +02:00
cagache
9be7a77a70 Don't fail fast 2019-12-19 16:20:37 +02:00
cagache
0ea5725249 Exclude benchmark project from source clear scan using a custom maven command 2019-12-19 15:19:12 +02:00
cagache
98f91c52ad Try to exclude automation project from source clear scan using a custom maven command 2019-12-19 13:56:53 +02:00
cagache
3e5dcb40fc Try to exclude automation project from sourceclear scan using a custom maven command 2019-12-19 12:46:16 +02:00
cagache
f044836b69 Try to exclude automation project from sourceclear scan using a custom maven command 2019-12-19 12:08:20 +02:00
cagache
a7fb91fa5c Try to exclude automation project from sourceclear scan using a custom maven command 2019-12-19 11:20:26 +02:00
cagache
df1ded7eee Try to exclude automation project from sourceclear scan using a custom maven command 2019-12-19 10:42:34 +02:00
cagache
7d99065661 Exclude automation project from sourceclear scan 2019-12-19 10:25:52 +02:00
cagache
2ba2fb77ee Exclude automation project from sourceclear scan 2019-12-19 10:20:49 +02:00
cagache
a3e27059de Exclude automation project from sourceclear scan 2019-12-19 09:42:50 +02:00
Sara Aspery
5b68c47866 RM-7062 fix integration tests 2019-12-17 08:37:15 +00:00
cagache
e2e44eb9c7 Reduce Sonar issues from automation-community-rest-api 2019-12-16 15:14:31 +02:00
Sara Aspery
f1b7fe5b2c Merge branch 'master' into feature/RM-7062_NoReadOnHoldCanSeeAuditEvent 2019-12-15 08:46:11 +00:00
Sara Aspery
f2d1e11497 RM-7062 Fix automation tests 2019-12-15 07:18:33 +00:00
Sara Aspery
bf0153f02b RM-7062 Updates from review 2019-12-15 07:17:59 +00:00
Claudia Agache
d5fbdac23c Merge branch 'feature/RM-7093_UpdateItemLocation' into 'master'
RM-7093 Update item location to include the provenience site

Closes RM-7093

See merge request records-management/records-management!1335
2019-12-13 09:32:14 +00:00
Sara Aspery
842f586d1f RM-7062 Unit tests 2019-12-13 07:21:35 +00:00
Claudia Agache
d1167e86c4 Merge branch 'feature/RM-7060_TestsForRecordSearchAspect_no' into 'master'
RM-7060 Tests for recordsearch aspect

Closes RM-7060

See merge request records-management/records-management!1334
2019-12-13 07:11:23 +00:00
cagache
efb2c2156e review comments 2019-12-12 12:06:49 +02:00
cagache
f5b14a8301 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7060_TestsForRecordSearchAspect_no 2019-12-12 11:41:25 +02:00
Claudia Agache
8a7f584679 Merge branch 'merge/RM-7060_FixSearchAspect' into 'master'
Resolve RM-7060 "Merge/ fixsearchaspect"

Closes RM-7060 and RM-7051

See merge request records-management/records-management!1333
2019-12-12 09:35:20 +00:00
cagache
41e41902c0 RM-7093 Update item location to include the provenience site 2019-12-11 16:16:49 +02:00
Roxana Lucanu
50df5ac0a2 Merge remote-tracking branch 'origin/master' into merge/RM-7060_FixSearchAspect 2019-12-10 16:09:03 +02:00
Ross Gale
d3ac41f364 Merge branch 'merge/RM-7051_disposition' into 'master'
Resolve RM-7051 "Merge/ disposition"

Closes RM-7051

See merge request records-management/records-management!1328
2019-12-10 13:22:21 +00:00
Roxana Lucanu
91d80e006c Merge branch 'release/V3.2' into merge/RM-7060_FixSearchAspect 2019-12-10 14:33:19 +02:00
Roxana Lucanu
e803b01388 Merge branch 'merge-3.2/RM-7060_FixSearchAspect' into 'release/V3.2'
Resolve RM-7060 "Merge 3.2/ fixsearchaspect"

See merge request records-management/records-management!1332
2019-12-10 12:17:15 +00:00
Ross Gale
149314d068 RM-7051 replacing string utils ref 2019-12-10 10:41:12 +00:00
cagache
69d8fc8be2 Check rma:recordSearch aspect is still present after record move 2019-12-10 10:58:10 +02:00
Roxana Lucanu
91261ef300 Merge branch 'release/V3.1' into merge-3.2/RM-7060_FixSearchAspect 2019-12-10 09:09:56 +02:00
Roxana Lucanu
04a74aa699 Merge branch 'merge-3.1/RM-7060_FixSearchAspect' into 'release/V3.1'
Resolve RM-7060 "Merge 3.1/ fixsearchaspect"

See merge request records-management/records-management!1331
2019-12-10 07:04:45 +00:00
cagache
fcc10dd091 Check rma:recordSearch aspect is still present after records filing 2019-12-09 16:57:31 +02:00
Roxana Lucanu
d0cb729f35 Merge branch 'release/V3.0' into merge-3.1/RM-7060_FixSearchAspect 2019-12-09 14:39:06 +02:00
Roxana Lucanu
9ef79baddd Merge branch 'merge-3.0/RM-7060_FixSearchAspect' into 'release/V3.0'
Resolve RM-7060 "Merge 3.0/ fixsearchaspect"

See merge request records-management/records-management!1330
2019-12-09 12:36:21 +00:00
Roxana Lucanu
45e39aa4bd Merge branch 'release/V2.7' into merge-3.0/RM-7060_FixSearchAspect 2019-12-09 10:49:30 +02:00
Roxana Lucanu
04d89e16b5 Merge branch 'release/V2.7' into merge-3.0/RM-7060_FixSearchAspect 2019-12-09 10:44:26 +02:00
Roxana Lucanu
8f9faf6b0e Merge branch 'merge-2.7/RM-7060_FixSearchAspect' into 'release/V2.7'
Resolve RM-7060 "Merge 2.7/ fixsearchaspect"

See merge request records-management/records-management!1329
2019-12-09 08:24:51 +00:00
Ross Gale
7af0b3f7f6 Merge remote-tracking branch 'origin/release/V3.2' into merge/RM-7051 2019-12-05 15:35:01 +00:00
Ramona Popa
56b82d8380 Merge branch 'feature/RM-7092_BrokenLinkForUserGroupEvents' into 'master'
RM-7092: Broken link for Add to / Remove from user group events

Closes RM-7092

See merge request records-management/records-management!1327
2019-12-05 13:07:21 +00:00
Ramona Popa
fa8104cdc2 RM-7092: Broken link for Add to / Remove from user group events
- removed link in audit list for user groups events
2019-12-05 13:07:21 +00:00
Ross Gale
ebf8a906a1 Merge branch 'merge-3.2/RM-7051_DispositionWebScript' into 'release/V3.2'
Resolve RM-7051 "Merge 3.2/ dispositionwebscript"

See merge request records-management/records-management!1323
2019-12-05 12:42:59 +00:00
Rodica Sutu
ace2728b16 Merge branch 'feature/RM-7066_UpdateToACS62' into 'master'
Resolve RM-7066 "Feature/ updatetoacs62"

Closes RM-7066

See merge request records-management/records-management!1314
2019-12-05 08:33:56 +00:00
Ramona Popa
1672dd00d4 Merge branch 'feature/RM-7069_InconsistencyInDisplayingLocationAndTimestamp' into 'master'
RM-7069: Display of the location is not consistent in all audit reports

Closes RM-7069

See merge request records-management/records-management!1322
2019-12-05 07:34:25 +00:00
Ramona Popa
8a67a6286d RM-7069: Display of the location is not consistent in all audit reports
- made display of location and timestamp consistent
2019-12-05 07:34:25 +00:00
Sara Aspery
050ab580ee RM-7062 Check hold permission for view audit event 2019-12-05 05:11:53 +00:00
Ross Gale
3809249576 RM-7051 updating code to deal with held content after 3.2 change 2019-12-04 14:01:54 +00:00
Roxana Lucanu
6035370684 Merge branch 'release/V2.6' into merge-2.7/RM-7060_FixSearchAspect 2019-12-04 15:44:29 +02:00
Roxana Lucanu
ac12711512 Merge branch 'merge-2.6/RM-7060_FixSearchAspect' into 'release/V2.6'
Resolve RM-7060 "Merge 2.6/ fixsearchaspect"

See merge request records-management/records-management!1321
2019-12-04 13:40:22 +00:00
Sara Aspery
4bf23c1d6a Merge branch 'feature/RM-7064_FixPermissionsForDeleteHoldsNodeAPI' into 'master'
RM-7064 check permissions for delete node

Closes RM-7064

See merge request records-management/records-management!1316
2019-12-03 15:15:47 +00:00
Roxana Lucanu
8d5ff56f8f Merge branch 'release/V2.5' into merge-2.6/RM-7060_FixSearchAspect 2019-12-03 11:58:42 +02:00
Sara Aspery
4b4323dd58 RM-7064 Fix unit tests after review updates 2019-12-03 06:15:03 +00:00
Rodica Sutu
2629b65eb1 changes to address code review comments 2019-12-02 15:52:31 +02:00
Rodica Sutu
3885c4462c remove the content property as ContentPropertyRestrictionInterceptor will not allow update of content via nodeService.addProperties 2019-12-02 10:50:35 +02:00
Ross Gale
94cb6346ce Merge remote-tracking branch 'origin/release/V3.1' into merge-3.2/mergeUp 2019-12-02 08:08:06 +00:00
Ross Gale
77799d1632 Merge branch 'merge-3.1/mergeUp' into 'release/V3.1'
Merge 3.1/merge up

See merge request records-management/records-management!1320
2019-12-02 07:58:27 +00:00
Ross Gale
6b01d76ed1 Merge branch 'release/V3.0' into merge-3.1/mergeUp 2019-11-29 15:55:07 +00:00
Ross Gale
d74cbe52b6 Merge branch 'merge-3.0/mergeUp' into 'release/V3.0'
Merge 3.0/merge up

See merge request records-management/records-management!1319
2019-11-29 15:52:19 +00:00
Rodica Sutu
9d17f70cd3 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7066_UpdateToACS62 2019-11-29 14:55:08 +02:00
Ross Gale
7048f30e89 Record only merge of version change. 2019-11-29 12:12:07 +00:00
Ross Gale
3505e8dfd6 fix conflicts 2019-11-29 10:59:47 +00:00
Sara Aspery
fb6ca169a0 Merge branch 'feature/RM-7070_ShowRoleForActiveContentInAudit' into 'master'
RM-7070 Show role in audit for active content

Closes RM-7070

See merge request records-management/records-management!1317
2019-11-29 02:50:59 +00:00
Sara Aspery
976748ee0f RM-7068 updates from review 2019-11-28 17:07:20 +00:00
Sara Aspery
b9d923d0d0 RM-7070 updates from review 2019-11-28 16:48:21 +00:00
Rodica Sutu
044c571df5 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7066_UpdateToACS62 2019-11-28 16:33:07 +02:00
Rodica Sutu
843782712e fix testFillingPermissionOnSourceAndTarget 2019-11-28 16:15:52 +02:00
Roxana Lucanu
89cc90cef7 Merge branch 'feature-2.5/RM-7060_FixSearchAspect' into 'release/V2.5'
RM-7060 Reapply search aspect when filing/moving

See merge request records-management/records-management!1315
2019-11-28 13:22:55 +00:00
Ramona Popa
6249537356 Merge branch 'feature/RM-7063_UserWithNoReadCanSeeAudit' into 'master'
RM-7063: User with no Read on active content can see Add To Hold/Remove From Hold audit entries

Closes RM-7063

See merge request records-management/records-management!1312
2019-11-28 11:04:15 +00:00
Ramona Popa
26ed36d312 RM-7063: User with no Read on active content can see Add To Hold/Remove From Hold audit entries
- filter entries based on READ permissions too
2019-11-28 11:04:15 +00:00
Sara Aspery
81ab6da25d Merge branch 'feature/RM-7068_ShortenErrorMsgForDeleteHold' into 'master'
Resolve RM-7068 "Feature/ shorten error msg for delete hold"

Closes RM-7068

See merge request records-management/records-management!1313
2019-11-28 06:55:02 +00:00
Sara Aspery
3c1df3c25a RM-7070 Show role in audit for active content 2019-11-28 03:54:07 +00:00
Sara Aspery
a0868776d5 RM-7068 updates from review 2019-11-28 01:45:40 +00:00
Sara Aspery
fe502aadec RM-7064 check permissions for delete node 2019-11-28 01:09:21 +00:00
Rodica Sutu
27a6a433c9 changes for ACS 6.2.0.ga 2019-11-27 15:23:28 +02:00
Roxana Lucanu
f138d31436 RM-7060 Fix integration tests 2019-11-27 11:28:32 +02:00
Sara Aspery
3c95f9c4f8 RM-7068 remove unused import statement 2019-11-27 05:58:00 +00:00
Sara Aspery
e8f67c8b75 RM-7068 restrict items in delete hold error msg 2019-11-27 05:55:29 +00:00
Roxana Lucanu
a7f2dec355 RM-7060 Reapply search aspect when filing/moving 2019-11-26 21:57:35 +02:00
Rodica Sutu
78d2570d3d update min version ACS version for the text context 2019-11-26 16:05:47 +02:00
Ross Gale
3c2a6f269c Merge branch 'merge-2.7/RM-7051_RecordOnly' into 'release/V2.7'
Resolve RM-7051 "Merge 2.7/ recordonly"

See merge request records-management/records-management!1311
2019-11-26 13:24:29 +00:00
Ross Gale
850dd8fc15 Record only merge of version change. 2019-11-26 11:36:53 +00:00
Ross Gale
78bec90215 Merge branch 'merge-2.6/RM-7051_RecordOnly' into 'release/V2.6'
Resolve RM-7051 "Merge 2.6/ recordonly"

See merge request records-management/records-management!1310
2019-11-26 11:28:38 +00:00
Ross Gale
cb5e060731 Record only merge of version change. 2019-11-26 11:22:35 +00:00
Ross Gale
c9f73f70bc Merge branch 'merge-2.5/RM-7051_RecordOnly' into 'release/V2.5'
Resolve RM-7051 "Merge 2.5/ recordonly"

See merge request records-management/records-management!1309
2019-11-26 11:16:17 +00:00
Ross Gale
8c721c710c Record only merge of version change. 2019-11-26 10:38:34 +00:00
Ross Gale
9d3dae0666 Merge branch 'merge-2.7/RM-7051_MergeUp' into 'release/V2.7'
Resolve RM-7051 "Merge 2.7/ mergeup"

See merge request records-management/records-management!1308
2019-11-26 08:43:17 +00:00
Rodica Sutu
6a7e346e22 replace the ARGs parameter from Dockerfile 2019-11-26 10:18:29 +02:00
Rodica Sutu
c7e920053e update the docker dependencies on community to ACS 6.2.0.ea 2019-11-26 09:27:49 +02:00
Rodica Sutu
5ccea06272 replace the org.apache.commons.lang references to org.apache.commons.lang3 2019-11-26 09:11:08 +02:00
Claudia Agache
486cffb939 Merge branch 'feature/RM-7050_LinkToHeldItemUITests' into 'master'
RM-7050 Link to Held items UI Tests

Closes RM-7050

See merge request records-management/records-management!1302
2019-11-26 07:01:34 +00:00
Ramona Popa
4d08521b41 Merge branch 'feature/RM-7047_LinkToHeldItem' into 'master'
RM-7047: Link to held item from audit entry

Closes RM-7047

See merge request records-management/records-management!1300
2019-11-26 07:00:28 +00:00
Ramona Popa
58280bc323 RM-7047: Link to held item from audit entry
- added support for link to held items in audit
   - changed style class for existing links in audit entry
2019-11-26 07:00:28 +00:00
Rodica Sutu
54d0d7f7f8 update community dependencies to ones from ACS 6.2.0.ea 2019-11-26 08:50:32 +02:00
Ross Gale
813ed3ced6 Update version.properties 2019-11-25 08:35:50 +00:00
Ross Gale
3937379587 RM-7051 resolving conflict 2019-11-25 08:31:09 +00:00
Ross Gale
93f3458498 Merge branch 'merge-2.6/RM-7051_mergeUp' into 'release/V2.6'
Resolve RM-7051 "Merge 2.6/ mergeup"

See merge request records-management/records-management!1306
2019-11-22 18:15:24 +00:00
Ross Gale
ffaf55c7d3 Merge branch 'hotfix-2.5/RM-7051_Disposition' into 'release/V2.5.3.x'
Resolve RM-7051 "Hotfix 2.5/ disposition"

See merge request records-management/records-management!1303

Adds web script to ensure all records have correct disposition instructions
2019-11-22 18:15:24 +00:00
Ross Gale
0fb8c59172 Merge branch 'merge-2.5/RM-7051_mergeUp' into 'release/V2.5'
Resolve RM-7051 "Merge 2.5/ mergeup"

See merge request records-management/records-management!1305
2019-11-22 14:25:27 +00:00
Ross Gale
df6d92d031 Merge branch 'hotfix-2.5/RM-7051_Disposition' into 'release/V2.5.3.x'
Resolve RM-7051 "Hotfix 2.5/ disposition"

See merge request records-management/records-management!1303

Adds web script to ensure all records have correct disposition instructions
2019-11-22 14:25:27 +00:00
cagache
d61a01bca4 Merge remote-tracking branch 'remotes/origin/feature/RM-7047_LinkToHeldItem' into feature/RM-7050_LinkToHeldItemUITests 2019-11-22 15:55:24 +02:00
Ramona Popa
7f89f150e7 RM-7047: Link to held item from audit entry
- addressed review suggestions
2019-11-22 14:39:19 +02:00
Ramona Popa
c1a8ff0b43 Merge branch 'master' into feature/RM-7047_LinkToHeldItem
* master:
  fix test
  removed test as per RM-7061 resolution
  small fixes
  RM-6930 another review update, correct typo in existing message
  RM-6930 review updates
  RM-6930 review updates
  Code review comments (check node path for add to hold and remove from hold audit entries)
  Code review comments
  Delete hold using RM Actions API
  Changed the audited node
  replaced the todos
  Sonar: Format specifiers should be used instead of string concatenation. Sonar: Replace the type specification in this constructor call with the diamond operator ("<>")
  removed unused imports
  Refactored audit tests and holds api
  update method names
  RM-7033 Automate tests for Audit create, delete, add to, and remove from holds
  removed duplicate methods
  RM-6930 adding permissions check for active content in holds defore deletion
2019-11-22 11:27:26 +02:00
Ramona Popa
cc1a6f1971 RM-7047: Link to held item from audit entry
- changes after review
2019-11-22 11:27:08 +02:00
Ross Gale
12aa2c4616 Updating version number after release 2019-11-22 08:55:41 +00:00
cagache
639e7f33dc Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7050_LinkToHeldItemUITests 2019-11-22 09:56:23 +02:00
Claudia Agache
f956f97cbb Merge branch 'feature/RM-7033_AuditHoldTests_no' into 'master'
RM-7033 Audit hold tests

See merge request records-management/records-management!1294
2019-11-22 06:17:59 +00:00
alfresco-build
eaca05e4b6 [maven-release-plugin] prepare for next development iteration 2019-11-21 18:15:33 +00:00
alfresco-build
79de26057c [maven-release-plugin] prepare release V2.5.3.3 2019-11-21 18:15:29 +00:00
Sara Aspery
150f2e1587 Merge branch 'feature/RM-6930_DeleteHold' into 'master'
RM-6930 adding permissions check for active content in holds defore deletion

Closes RM-6930

See merge request records-management/records-management!1286
2019-11-21 16:09:49 +00:00
cagache
a427eb6423 Merge remote-tracking branch 'remotes/origin/feature/RM-7047_LinkToHeldItem' into feature/RM-7050_LinkToHeldItemUITests 2019-11-21 16:32:38 +02:00
Ross Gale
e0dd0ca886 Merge branch 'hotfix-2.5/RM-7051_Disposition' into 'release/V2.5.3.x'
Resolve RM-7051 "Hotfix 2.5/ disposition"

See merge request records-management/records-management!1303
2019-11-21 14:32:24 +00:00
Ramona Popa
bc7caea25c RM-7047: Link to held item from audit entry
- consider Delete Hold as deleteObject
2019-11-21 14:11:57 +02:00
Ross Gale
8f42f0caf0 RM-7051 merge 2019-11-21 11:08:39 +00:00
Ross Gale
9e4586b699 RM-7051 review comments 2019-11-21 11:04:35 +00:00
Sara Aspery
c6302fd034 Merge branch 'master' into feature/RM-6930_DeleteHold 2019-11-21 10:07:15 +00:00
cagache
f75e6eedda Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7033_AuditHoldTests_no 2019-11-21 12:04:39 +02:00
Ramona Popa
d98d5538d0 Merge branch 'master' into feature/RM-7047_LinkToHeldItem
* master:
  Code review changes
  Code review changes
2019-11-21 12:01:52 +02:00
Christopher Shields
dfaff93661 Merge branch 'feature/RM-7029_RemoveFromHold' into 'master'
Resolve RM-7029 "Feature/ removefromhold"

Closes RM-7029

See merge request records-management/records-management!1304
2019-11-21 09:52:41 +00:00
Roy Wetherall
347a2ef9db Prevent unwanted audit entries appearing when updating the records 2019-11-21 13:54:09 +11:00
Ross Gale
022647d84b RM-7051 simplyfing sql and adding check for links 2019-11-21 01:16:37 +00:00
Ross Gale
9099444e2d RM-7051 updating messaging 2019-11-20 13:33:35 +00:00
Ramona Popa
f94b580dc9 Merge branch 'master' into feature/RM-7047_LinkToHeldItem
* master:
2019-11-20 14:56:11 +02:00
Chris Shields
5d08fcf1d4 Merge branch 'master' into feature/RM-7029_RemoveFromHold 2019-11-20 11:24:17 +00:00
Chris Shields
0b3f1c793d Code review changes 2019-11-20 11:16:04 +00:00
cagache
710e738f16 fix test 2019-11-20 13:07:45 +02:00
Ross Gale
9c1904db77 RM-7051 running the find records and update as system 2019-11-20 10:51:33 +00:00
cagache
b059e96fac removed test as per RM-7061 resolution 2019-11-20 12:19:11 +02:00
Sara Aspery
6cec2bb099 Merge branch 'master' into feature/RM-6930_DeleteHold 2019-11-20 09:49:29 +00:00
cagache
4fd762ff43 small fixes 2019-11-20 11:24:21 +02:00
cagache
1b0b871fa3 Merge remote-tracking branch 'remotes/origin/feature/RM-7029_RemoveFromHold' into feature/RM-7033_AuditHoldTests_no 2019-11-20 08:38:25 +02:00
cagache
92b88491e5 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7033_AuditHoldTests_no 2019-11-20 08:37:52 +02:00
Chris Shields
bc5c5bd51d Code review changes 2019-11-19 21:11:50 +00:00
Sara Aspery
00c7f87779 Merge branch 'feature/RM-7028_Add_Add_To_Hold_ToAudit' into 'master'
RM-7028 Audit add to hold

Closes RM-7028

See merge request records-management/records-management!1296
2019-11-19 18:21:37 +00:00
Ross Gale
cdf1118b29 RM-7051 removing previous sql code 2019-11-19 16:20:39 +00:00
Ross Gale
364ee7838a RM-7051 removing patch code updating webscript 2019-11-19 13:38:40 +00:00
Chris Shields
4a89c38f2d Merge branch 'feature/RM-7028_Add_Add_To_Hold_ToAudit' into feature/RM-7029_RemoveFromHold 2019-11-19 12:14:04 +00:00
Chris Shields
ad963bb24e RM-7029 Audit remove from hold 2019-11-19 12:05:06 +00:00
Sara Aspery
8140859d03 RM-7028 review updates 2019-11-19 11:15:45 +00:00
Roy Wetherall
dca4cf154f Added web script to do record disposition schedule updates 2019-11-19 20:56:26 +11:00
Ross Gale
898a95cd85 RM-7051 updating patch code 2019-11-18 23:28:08 +00:00
Sara Aspery
30e3ea689f RM-7028 review updates 2019-11-18 15:59:54 +00:00
Sara Aspery
e9be5a4188 Merge branch 'master' into feature/RM-7028_Add_Add_To_Hold_ToAudit 2019-11-18 14:12:23 +00:00
Sara Aspery
7fbf695a32 RM-6930 another review update, correct typo in existing message 2019-11-18 14:07:55 +00:00
Ross Gale
490a212e6a RM-7051 updating messaging to report on batch completion 2019-11-18 14:05:17 +00:00
Sara Aspery
9ff5d66024 RM-6930 review updates 2019-11-18 10:56:45 +00:00
Ross Gale
bfe2e6fe83 RM-7051 adding code to deal with held records/folders 2019-11-18 10:55:39 +00:00
Sara Aspery
c8afa0db31 RM-6930 review updates 2019-11-18 10:47:09 +00:00
Ramona Popa
ae42ec33af Merge branch 'feature/RM-7057_DeleteHoldNotAuditedWithNodesApi' into 'master'
RM-7057: Delete hold event isn't audited if hold is deleted using nodes api

Closes RM-7057

See merge request records-management/records-management!1301
2019-11-18 08:34:54 +00:00
Ramona Popa
c386f1bbd8 RM-7057: Delete hold event isn't audited if hold is deleted using nodes api
-listen to beforeDeleteNode policy rather than beforeDeleteHold one to cover the delete the hold from api as well
2019-11-18 08:34:54 +00:00
Sara Aspery
b2ae5242e9 RM-6930 review updates 2019-11-18 01:25:34 +00:00
Ross Gale
5259625d04 RM-7051 adding batch code 2019-11-17 22:20:31 +00:00
Ross Gale
e603eaf0eb RM-7051 adding batch code 2019-11-17 22:07:31 +00:00
Sara Aspery
d4c9be9f11 RM-7028 integ test fix, locn refactor, multi files fix 2019-11-16 14:11:06 +00:00
cagache
804a7df593 Merge remote-tracking branch 'remotes/origin/feature/RM-7047_LinkToHeldItem' into feature/RM-7050_LinkToHeldItemUITests 2019-11-14 09:25:07 +02:00
Ross Gale
098be4c2da Initial patch code to apply disposition fix to records 2019-11-13 15:52:29 +00:00
Sara Aspery
394ae36a02 RM-7028 fix unit test 2019-11-12 12:11:34 +00:00
cagache
159e78517e Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7033_AuditHoldTests_no 2019-11-12 11:17:27 +02:00
Roxana Lucanu
f94b9a9f35 Merge branch 'feature/RM-7054_HeldContentPolicyChanges' into 'master'
RM-7054 Changes on held content policies

Closes RM-7054

See merge request records-management/records-management!1297
2019-11-12 09:15:55 +00:00
cagache
d682a5253d Code review comments (check node path for add to hold and remove from hold audit entries) 2019-11-12 11:15:45 +02:00
Roxana Lucanu
1278258a74 RM-7054 code review changes 2019-11-12 10:36:42 +02:00
Sara Aspery
55e5267234 RM-7028 show location and fix multiple holds 2019-11-12 05:13:40 +00:00
cagache
4fdc23a230 Merge remote-tracking branch 'remotes/origin/feature/RM-7054_HeldContentPolicyChanges' into feature/RM-7033_AuditHoldTests_no 2019-11-11 14:27:52 +02:00
cagache
a8b0556796 Merge remote-tracking branch 'remotes/origin/feature/RM-7028_Add_Add_To_Hold_ToAudit' into feature/RM-7033_AuditHoldTests_no 2019-11-11 14:08:09 +02:00
cagache
d185718be6 Code review comments 2019-11-11 11:21:28 +02:00
cagache
4e10ca09e7 Delete hold using RM Actions API 2019-11-08 16:02:16 +02:00
Roxana Lucanu
65f30701d1 RM-7054 Changes on held content policies 2019-11-08 14:33:43 +02:00
Sara Aspery
fa625379e2 RM-7028 fix integration tests 2019-11-08 08:35:50 +00:00
cagache
41283a218b Changed the audited node 2019-11-08 10:20:16 +02:00
cagache
6b786fca21 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7033_AuditHoldTests_no 2019-11-08 10:05:49 +02:00
Sara Aspery
59253c84ae Merge branch 'feature/RM-7027_Add_Hold_Deleted_ToAudit' into 'master'
Resolve RM-7027 "Feature/ add hold deleted to audit"

Closes RM-7027

See merge request records-management/records-management!1295
2019-11-07 22:53:56 +00:00
Sara Aspery
295350bb08 RM-7028 update from review 2019-11-07 12:54:15 +00:00
cagache
581d796783 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7033_AuditHoldTests_no 2019-11-07 14:29:08 +02:00
Sara Aspery
9ad116e1c5 Merge branch 'feature/RM-7026_Add_HoldCreated_ToAudit' into 'master'
Resolve RM-7026 "Feature/ add holdcreated toaudit"

Closes RM-7026

See merge request records-management/records-management!1283
2019-11-07 12:23:21 +00:00
cagache
1c2b4da16a replaced the todos 2019-11-07 12:36:52 +02:00
cagache
659c945506 Sonar: Format specifiers should be used instead of string concatenation.
Sonar: Replace the type specification in this constructor call with the diamond operator ("<>")
2019-11-07 10:10:25 +02:00
Sara Aspery
e0d96d3219 Merge branch 'master' into feature/RM-6930_DeleteHold
# Conflicts:
#	rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServiceImplUnitTest.java
2019-11-06 23:35:27 +00:00
Sara Aspery
606f599059 RM-7028 Audit add to hold 2019-11-06 23:20:28 +00:00
Sara Aspery
acc06e55f5 RM-7027 Audit delete hold 2019-11-06 22:39:44 +00:00
Sara Aspery
a890ad5274 RM-7027 Audit delete hold 2019-11-06 16:33:38 +00:00
Sara Aspery
ece61ee5f1 RM-7026 Updated hold name display property 2019-11-06 16:00:53 +00:00
cagache
6b8717ad90 removed unused imports 2019-11-06 17:19:41 +02:00
cagache
80c629b5d2 Refactored audit tests and holds api 2019-11-06 17:18:23 +02:00
Rodica Sutu
9f36c0ad4b Merge branch 'feature/RM-7020_AllowUpdateOfPropertiesForSystemNamespaceURIRefactor' into 'master'
Resolve RM-7020 "Feature/ allowupdateofpropertiesforsystemnamespaceurirefactor"

Closes RM-7020

See merge request records-management/records-management!1293
2019-11-06 14:01:26 +00:00
Sara Aspery
c86a6a8f78 Merge branch 'master' into feature/RM-7026_Add_HoldCreated_ToAudit 2019-11-06 12:22:36 +00:00
cagache
0c21340edd update method names 2019-11-05 16:45:26 +02:00
Rodica Sutu
02bdf0d92a update java docs & fix sonar "Mutable members should not be stored or returned directly" from PropertyModificationAllowedCheck class 2019-11-05 16:43:57 +02:00
cagache
632e185fc2 RM-7033 Automate tests for Audit create, delete, add to, and remove from holds 2019-11-05 16:34:36 +02:00
Rodica Sutu
9e62b9a858 code reviews changes and couple sonar fixes 2019-11-05 11:43:32 +02:00
Rodica Sutu
77f607ed95 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7020_AllowUpdateOfPropertiesForSystemNamespaceURIRefactor 2019-11-05 11:37:56 +02:00
Roxana Lucanu
d9370c6e2e Merge branch 'feature/RM-7034_AddPoliciesForHeldContent' into 'master'
Resolve RM-7034 "Feature/ addpoliciesforheldcontent"

Closes RM-7034

See merge request records-management/records-management!1284
2019-11-05 09:25:40 +00:00
Roxana Lucanu
bf860c8944 RM-7034 style changes 2019-11-05 10:32:16 +02:00
Rodica Sutu
f54ab26b88 fix the case when before and after values are null 2019-11-04 17:42:25 +02:00
Rodica Sutu
9bbb0b3516 refactor the code to fix the sonar issue "Refactor this method to reduce its Cognitive Complexity from 21 to the 15 allowed." 2019-11-04 17:24:09 +02:00
cagache
e48de60170 removed duplicate methods 2019-11-04 16:59:49 +02:00
Roxana Lucanu
04a190459a RM-7034 Fixed unit tests and split class for add/remove from hold tests. 2019-11-04 16:40:18 +02:00
Roxana Lucanu
9d9a0af5cf RM-7034 Merged master 2019-11-04 12:44:38 +02:00
Roxana Lucanu
b998ed9cd9 RM-7034 Added tests 2019-11-04 12:23:22 +02:00
Rodica Sutu
f05afb2399 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7020_AlowUpdateOfPropertiesForSystemNameSpaceUri 2019-11-04 11:47:37 +02:00
Rodica Sutu
671d6b954c add unit tests 2019-11-04 11:39:35 +02:00
Sara Aspery
3536d4d571 Merge branch 'master' into 'feature/RM-7026_Add_HoldCreated_ToAudit'
# Conflicts:
#   rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/hold/HoldServicePolicies.java
#   rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/hold/CreateHoldTest.java
#   rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/hold/DeleteHoldTest.java
2019-11-04 07:22:27 +00:00
Sara Aspery
6b3f0c2431 RM-7026 Audit Create Hold updates 2019-11-04 07:08:32 +00:00
Ramona Popa
beaf9404b0 Merge branch 'feature/RM-6860_AddHoldServicePolicies' into 'master'
RM-6860: Add hold service policies

Closes RM-6860

See merge request records-management/records-management!1279
2019-11-03 06:47:29 +00:00
Ramona Popa
8c25f6bec7 RM-6860: Add hold service policies
- Added HoldServicePolicies interface
2019-11-03 06:47:29 +00:00
Claudia Agache
dca67b7016 Merge branch 'feature/RM-7017_ActiveHoldsDescription_no' into 'master'
Updated Active Holds description to include active content

Closes RM-7017

See merge request records-management/records-management!1290
2019-11-01 13:44:09 +00:00
cagache
1530e25fe2 Updated strings to not contain "active" 2019-11-01 13:00:45 +02:00
cagache
751dfb3578 Remove unused service 2019-11-01 10:53:08 +02:00
Rodica Sutu
c33e703be9 add a list of namespace URIs for properties, which should be always editable for a frozen node 2019-11-01 09:51:48 +02:00
Tom Page
cb9bc19465 Merge branch 'feature/UpdateDockerPlugin' into 'master'
Update docker plugin to 0.31.0.

See merge request records-management/records-management!1288
2019-10-31 13:51:08 +00:00
Roxana Lucanu
02a7f5e50a Merge 'feature/RM-7035_AddPoliciesForHolds' into feature/RM-7034_AddPoliciesForHeldContent 2019-10-30 10:07:45 +02:00
Sara Aspery
2525ac7803 Merge branch 'feature/RM-7035_AddPoliciesForHolds' into feature/RM-7026_Add_HoldCreated_ToAudit 2019-10-29 15:01:33 +00:00
Ramona Popa
fb49ee3eec Merge branch 'master' into feature/RM-7035_AddPoliciesForHolds 2019-10-29 16:06:50 +02:00
Ramona Popa
5b7bf43044 RM-7035: Add policies for holds
- fixed tests for deleteHold policies
2019-10-29 16:02:40 +02:00
Tom Page
1048225354 Update docker plugin to 0.31.0.
This fixes a problem I was seeing locally with:
> Error getting the version of the configured credential helper
> [Process 'docker-credential-secretservice version' exited with status 1]
2019-10-29 11:51:03 +00:00
Ross Gale
9b5378fb79 RM-6930 adding permissions check for active content in holds defore deletion 2019-10-29 11:43:18 +00:00
Roxana Lucanu
3ff7fb43d0 RM-7034 add policies for held content 2019-10-29 11:37:18 +02:00
Tom Page
ce6cb9e141 Merge branch 'feature/jRebelHotReloading' into 'master'
Add support for jRebel hot reloading.

See merge request records-management/records-management!1278
2019-10-28 14:54:24 +00:00
Sara Aspery
3aa3c8551a RM-7026 add hold created to audit - without audit descriptions 2019-10-28 12:45:06 +00:00
Roxana Lucanu-Ghetu
5f42f53cb1 Merge 'origin/master' into feature/RM-7034_AddPoliciesForHeldContent 2019-10-28 11:16:41 +02:00
Rodica Sutu
a3450f74cf Merge branch 'feature/RM-7012_ActionNameInListOfValuesForAudit' into 'master'
RM-7012

See merge request records-management/records-management!1280
2019-10-28 06:57:46 +00:00
Ramona Popa
5c6c3a395c RM-7035: Add policies for holds
- fix other tests
2019-10-25 16:20:47 +03:00
Rodica Sutu
3b0103d8bc Merge branch 'feature/RM-7043_UpgradeApacheCommonsCompress' into 'master'
RM-7043

See merge request records-management/records-management!1281
2019-10-25 14:02:08 +01:00
Ramona Popa
adc39da95a RM-7035: Add policies for holds
- some minor formating
   - fix unit test
2019-10-25 15:48:10 +03:00
Ramona Popa
f2f010bc4d RM-7035: Add policies for holds
- implementation for policies
   - integration tests
2019-10-25 12:41:09 +03:00
Rodica Sutu
ee929077b9 Update the version for org.apache.commons:commons-compress to 1.19 (fix the security vulnerability alert from github) 2019-10-25 12:21:28 +03:00
Rodica Sutu
d562667ee3 move the actions property file in module-context.xml as the audit events that take the action name are loaded at bootstrap 2019-10-25 11:35:02 +03:00
Ramona Popa
39fe03efc8 RM-6860: Add hold service policies
- Added HoldServicePolicies interface
2019-10-24 11:00:29 +03:00
Rodica Sutu
d597eee1d8 Merge branch 'feature/RM-7006_UpdateToACS611' into 'master'
RM-7006 Update to ACS 6.1.1

Closes RM-7006

See merge request records-management/records-management!1272
2019-10-24 07:02:16 +01:00
Rodica Sutu
52fef5db6a Merge branch 'feature/RM-7006_UpdateToACS611' of https://git.alfresco.com/records-management/records-management into feature/RM-7006_UpdateToACS611 2019-10-23 10:09:14 +03:00
Rodica Sutu
3d9d8bcabe Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7006_UpdateToACS611 2019-10-23 10:03:44 +03:00
cagache
656bb911b4 Record only merge of version change. 2019-10-22 12:51:18 +03:00
cagache
ee4b05567b Record only merge of version change. 2019-10-22 12:50:20 +03:00
cagache
6691917456 Update version to 3.2.1-SNAPSHOT 2019-10-22 12:48:00 +03:00
cagache
55602eb72c Update version to 3.2.0.1-SNAPSHOT 2019-10-22 12:36:41 +03:00
alfresco-build
26b00f8505 [maven-release-plugin] prepare for next development iteration 2019-10-22 09:18:49 +01:00
alfresco-build
8f43d02bee [maven-release-plugin] prepare release V3.2.0 2019-10-22 09:18:45 +01:00
Ross Gale
1608781182 Merge branch 'feature/RM-7014_CheckForRmSite' into 'master'
RM-7014 add code to check an rm site has been created before running the...

Closes RM-7014

See merge request records-management/records-management!1277
2019-10-19 11:26:07 +01:00
Ross Gale
bd4c398205 Update RMv32HoldChildAssocPatch.java 2019-10-18 18:34:03 +01:00
Tom Page
aa3dccd5b5 Add support for jRebel hot reloading.
The java files in the repository can be hot reloaded when started from the share docker-file.
2019-10-18 16:15:47 +01:00
Ross Gale
bf7047745a Update rm-patch-v32-context.xml 2019-10-18 14:33:16 +01:00
Ross Gale
6792522163 RM-7014 code review comments 2019-10-18 14:26:48 +01:00
Ross Gale
6c1808731b RM-7014 add code to check an rm site has been created before running the patches that require an rm site 2019-10-17 17:49:01 +01:00
Ramona Popa
e6983ce90f Merge branch 'feature/RM-7003_UpgradeGenerateHoldReportTemplatePatch' into 'master'
RM-7003: [Upgrade] Generate Hold Report fails for a hold if has active content

Closes RM-7003

See merge request records-management/records-management!1276
2019-10-17 08:06:15 +01:00
Ramona Popa
5bae9d32a1 RM-7003: [Upgrade] Generate Hold Report fails for a hold if has active content
- added new the patch to update the hold report template
2019-10-17 08:06:15 +01:00
Rodica Sutu
f395f7b035 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-7006_UpdateToACS611 2019-10-17 09:30:54 +03:00
Ross Gale
1e236e085f Removing unused imports from RMv32HoldChildAssocPatchUnitTest.java 2019-10-16 08:48:01 +01:00
Ross Gale
94bb04d7f8 Removing unused import from RMv32HoldChildAssocPatch.java 2019-10-16 08:46:16 +01:00
gbroadbent
bcac8974a4 BRAZILIAN PORTUGUESE: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-16 00:55:43 +01:00
Ross Gale
25bb9c83f7 Merge branch 'feature/RM-6993_CreateNewAssoc' into 'master'
Resolve RM-6993 "Feature/ createnewassoc"

Closes RM-6993 and RM-6995

See merge request records-management/records-management!1265
2019-10-15 15:50:57 +01:00
gbroadbent
750e69f849 BRAZILIAN PORTUGUESE: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 14:50:27 +01:00
Ross Gale
4b7b25893c Merge branch 'feature/RM-6995_CreateNewAssocPatch' into 'feature/RM-6993_CreateNewAssoc'
Resolve RM-6995 "Feature/ createnewassocpatch"

See merge request records-management/records-management!1271
2019-10-15 14:17:39 +01:00
Ross Gale
1c30a04c5b Resolve RM-6995 "Feature/ createnewassocpatch" 2019-10-15 14:17:39 +01:00
gbroadbent
6fd5e0197d SIMPLIFIED CHINESE: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:41:16 +01:00
gbroadbent
cb068b9fd0 RUSSIAN: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:40:26 +01:00
gbroadbent
0e8255d59c DUTCH: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:39:44 +01:00
gbroadbent
e312e1128f NORWEGIAN Bokmal: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:39:08 +01:00
gbroadbent
d37ac2f955 JAPANESE: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:38:32 +01:00
gbroadbent
d5b41e179f ITALIAN: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:37:43 +01:00
gbroadbent
d25733fdb6 FRENCH: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:36:27 +01:00
gbroadbent
ea9f43d3d6 GERMAN: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:35:34 +01:00
gbroadbent
667859aa42 SPANISH: Updated files for AGS 3.2 based on EN-RM-rev 10th Oct 2019 - fix for LOC-169 2019-10-15 13:34:31 +01:00
cagache
d90b74c80c Revert "Try to use docker build arguments"
This reverts commit 873ac9ef
2019-10-15 09:11:32 +03:00
cagache
873ac9ef1a Try to use docker build arguments 2019-10-15 08:17:48 +03:00
cagache
c4685a23d1 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-7006_UpdateToACS611 2019-10-14 12:44:57 +03:00
Rodica Sutu
b1a9d59aa9 revert the changes from community as there is no corresponding community release for ACS 6.1.1 2019-10-11 12:53:00 +03:00
Claudia Agache
bfb19ee91e Merge branch 'feature/RM-6982_UpdateStringsInTests' into 'master'
RM-6982 Update Strings in tests

Closes RM-6982

See merge request records-management/records-management!1274
2019-10-11 09:03:48 +01:00
Tom Page
c820d3d2ca Merge release/V3.1 into master. 2019-10-11 08:30:45 +01:00
Tom Page
6f08a237b2 Merge release/V3.0 into release/V3.1. 2019-10-11 08:26:31 +01:00
Tom Page
3407c560ba Record-only merge to sync with published release/V3.0. 2019-10-11 08:23:54 +01:00
cagache
1dff0dbecd Replace exception messages in tests 2019-10-11 10:16:23 +03:00
Tom Page
793603f6b1 Merge release/V2.7 into release/V3.0. 2019-10-11 08:14:56 +01:00
cagache
9d606baf3c Replace exception messages in tests 2019-10-11 09:32:58 +03:00
cagache
0db6218624 Record only merge. 2019-10-11 09:10:35 +03:00
cagache
5290538d9d Record only merge. 2019-10-11 09:04:43 +03:00
Ross Gale
9a9965fdd0 Merge branch 'feature/RM-6982_StringUpdate' into 'master'
Resolve RM-6982 "Feature/ stringupdate"

Closes RM-6982

See merge request records-management/records-management!1273
2019-10-10 16:54:02 +01:00
Ross Gale
ae99c53468 RM-6982 updating hold properties strings 2019-10-10 16:22:41 +01:00
Ross Gale
4017f9f101 RM-6982 updating hold properties strings 2019-10-10 16:21:31 +01:00
Rodica Sutu
e2848f3aef library updates to ones from ACS 6.1.1 2019-10-10 17:26:11 +03:00
cagache
9d9bdff348 Record only merge. 2019-10-10 17:19:38 +03:00
cagache
02eec901b3 Record only merge. 2019-10-10 17:17:44 +03:00
cagache
3cd9aaeef5 Record only merge. 2019-10-10 17:15:46 +03:00
alfresco-build
42a32d4422 [maven-release-plugin] prepare for next development iteration 2019-10-10 13:19:15 +01:00
alfresco-build
5dc0d39287 [maven-release-plugin] prepare release V2.6.0.1 2019-10-10 13:19:11 +01:00
Tom Page
3d5d01efb8 Record-only merge release/V2.7.2.x into release/V2.7. 2019-10-10 08:52:45 +01:00
alfresco-build
d7d68b10a6 [maven-release-plugin] prepare for next development iteration 2019-10-09 15:23:26 +01:00
alfresco-build
7fe911dcdb [maven-release-plugin] prepare release V2.7.2.2 2019-10-09 15:23:22 +01:00
Ramona Popa
88ffa3ccc0 Merge branch 'feature/RM-7001_GenerateHoldReportActiveContent' into 'master'
RM-7001: Generate Hold Report fails for a hold if has active content

Closes RM-7001

See merge request records-management/records-management!1266
2019-10-08 18:38:28 +01:00
Ramona Popa
5370b92eb8 RM-700: Generate Hold Report fails for a hold if has active content
- check if rma:identifier property exists
2019-10-08 18:38:28 +01:00
Tom Page
1f81c867aa Merge branch 'merge-2.6/MNT-20680_ClusteredCaching' into 'release/V2.6'
Resolve MNT-20680 "Merge 2.6/ clusteredcaching"

See merge request records-management/records-management!1262
2019-10-08 16:42:37 +01:00
Ross Gale
81aa1f2c5c RM-6993 replace old assoc with new 2019-10-08 13:25:30 +01:00
Ross Gale
07383d7e77 RM-6993 revert change to depricated assoc 2019-10-08 11:57:30 +01:00
Ross Gale
56a5da0154 RM-6993 create new assoc 2019-10-08 11:55:47 +01:00
Tom Page
763ba1b319 Merge release/V2.6.0.x into release/V2.6. 2019-10-04 16:00:55 +01:00
Tom Page
5f87a5cd92 Update license headers. 2019-10-02 14:58:48 +01:00
Ross Gale
78cfa3a879 Merge remote-tracking branch 'origin' into feature/RM-6928_Renditions 2019-09-27 11:03:15 +01:00
Tom Page
c2e2536389 Merge branch 'feature/DockerMavenPlugin' into 'master'
Use docker-maven-plugin rather than fabric8-maven-plugin.

See merge request records-management/records-management!1241
2019-09-27 08:59:18 +01:00
Tom Page
dc031c1317 Merge branch 'feature/DeclareJava11' into 'master'
Set declared Java version to 11.

See merge request records-management/records-management!1238
2019-09-26 08:16:31 +01:00
Tom Page
0616a1070d Remove duplicate unnecessary configuration for stop db/amq. 2019-09-25 13:51:11 +01:00
Tom Page
8c16f9351f Make all configuration execution specific.
This introduces some duplication for the start/stop db executions, but
I can't see any way to avoid that. We don't want the other
configuration being shared between executions.

Ensure the db start/stop execution triggers for repo and not for share.
2019-09-25 11:51:03 +01:00
Tom Page
4461495d85 Fix start/stop db to be in a pluginManagement section. 2019-09-25 10:20:13 +01:00
Tom Page
2cdfdf5037 Build docker images during verify phase.
This avoids needing to update the build plans, which expect the docker image to be built during the verify phase.
2019-09-25 10:07:30 +01:00
Tom Page
43c29299d1 Remove unused property. 2019-09-25 09:07:18 +01:00
Tom Page
df16478e53 Convert start/stop db into a profile.
Now we're using the docker-maven-plugin for building images and also
for starting/stopping the db, we need to ensure we don't skip it at
the wrong time. It's simpler to avoid using the <skip> element at all,
and instead use a profile based on the skip.integrationtests property
so that we only start the db when running integration tests.
2019-09-25 08:40:53 +01:00
Ross Gale
d50b552be6 RM-6928 adding check to allow specified properties on frozen nodes to be updated 2019-09-24 16:45:51 +01:00
Tom Page
067cae1cd2 Use docker-maven-plugin rather than fabric8-maven-plugin.
This removes any attempts to connect to kubernetes clusters which can take considerable time.
2019-09-24 15:51:14 +01:00
Tom Page
c2a27f6370 Set declared Java version to 11.
This should ensure that IDEs default to the correct Java version.
2019-09-20 16:00:11 +01:00
Rodica Sutu
756208affb Merge branch 'feature/RM-6856_BulkRemovalFromHold_Tests' into 'master'
Resolve RM-6940 "Automate AC for Bulk removal of items"

Closes RM-6940 and RM-6856

See merge request records-management/records-management!1229
2019-09-19 19:53:15 +01:00
Rodica Sutu
26f664c68f Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6856_BulkRemovalFromHold_Tests 2019-09-18 21:27:59 +03:00
Meenal Bhave
3a6b3c994a Merge branch 'feature/Search-1835-IE-GS-Compatibility' into 'master'
Search-1835: Updated GS Automation to use TAS Rest API Version 6.0.1.2

See merge request records-management/records-management!1232
2019-09-18 09:52:53 +01:00
Meenal Bhave
7dd104c28e Search-1835: Updated GS Automation to use TAS Rest API Version 6.0.1.2, to be used with IE automation 2019-09-18 09:52:53 +01:00
Rodica Sutu
8d6c50f8d1 Merge remote-tracking branch 'remotes/origin/feature/RM-6949_DropDown' into feature/RM-6856_BulkRemovalFromHold_Tests 2019-09-17 13:57:14 +03:00
Rodica Sutu
414be241a4 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6856_BulkRemovalFromHold_Tests 2019-09-17 13:56:53 +03:00
Ross Gale
703f706afc RM-6949 rebase 2019-09-17 11:01:07 +01:00
Ramona Popa
c9fc6baeb8 Merge branch 'feature/RM-6945_DisplayActionForHeldAContentInHold' into 'master'
RM-6945: Display available actions on held active content inside a hold

Closes RM-6945

See merge request records-management/records-management!1230
2019-09-16 09:08:14 +01:00
Ramona Popa
066503b515 RM-6945: Display available actions on held active content inside a hold
- added actions for isFreezeActiveContent
2019-09-16 09:08:14 +01:00
Roxana Lucanu
0a1cfa0d11 Merge branch 'feature/RM-6943_AddoToHoldActionInCollabSite' into 'master'
RM-6943 AddTo/RemoveFrom hold actions from a collaboration site

Closes RM-6943

See merge request records-management/records-management!1228
2019-09-16 07:22:54 +01:00
rlucanu
e3e3273ab0 RM-6943 other code review comments 2019-09-13 16:26:27 +03:00
rlucanu
d2c2f14270 RM-6943 code review changes 2019-09-13 13:44:01 +03:00
Ramona Popa
8b14d81e1e RM-6945: Display available actions on held active content inside a hold
- updated actions for document library
2019-09-13 10:12:39 +03:00
Ramona Popa
25ef9dcb75 Merge branch 'feature/RM-6943_AddoToHoldActionInCollabSite' into feature/RM-6945_DisplayActionForHeldAContentInHold 2019-09-13 09:00:27 +03:00
Ramona Popa
a2be7a29f9 RM-6945: Display available actions on held active content inside a hold
- updated actions
2019-09-13 08:59:59 +03:00
rlucanu
4b1fec979a RM-6943 added RemoveFromHold evaluator 2019-09-12 17:04:33 +03:00
Ramona Popa
e59b169422 Merge branch 'feature/RM-6943_AddoToHoldActionInCollabSite' into feature/RM-6945_DisplayActionForHeldAContentInHold
# Conflicts:
#	rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/rm-ui-evaluators-context.xml
#	rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/jscript/app/JSONConversionComponent.java
2019-09-12 16:26:40 +03:00
Ramona Popa
50f2457a52 RM-6945: Display available actions on held active content inside a hold
- fixed actions
2019-09-12 16:21:23 +03:00
rlucanu
0523ca1d5c RM-6943 Changes on AddToHold evaluator 2019-09-12 12:20:51 +03:00
Ramona Popa
48d8f66046 RM-6945: Display available actions on held active content inside a hold
- added uiType frozen content
2019-09-11 16:26:56 +03:00
Ramona Popa
7a8273645d RM-6945: Display available actions on held active content inside a hold
- reverted allow method to be executed by non rm
2019-09-11 11:23:53 +03:00
Ramona Popa
5183b6c389 Merge branch 'feature/RM-6943_AddoToHoldActionInCollabSite' into feature/RM-6945_DisplayActionForHeldAContentInHold 2019-09-10 23:02:19 +03:00
Ramona Popa
cb4c0ef37f RM-6945: Display available actions on held active content inside a hold
- allow method to be executed by non rm
2019-09-10 23:00:53 +03:00
rlucanu
c369d53d7c Merge 'origin/master' into feature/RM-6943_AddoToHoldActionInCollabSite 2019-09-10 15:10:15 +03:00
Rodica Sutu
28b1fc7d9c Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6856_BulkRemovalFromHold_Tests 2019-09-10 09:16:48 +03:00
Claudia Agache
8787bd09e4 Merge branch 'feature/RM-6918_ViewHoldContentTests' into 'master'
RM-6918 View Hold Contents tests

Closes RM-6918

See merge request records-management/records-management!1227
2019-09-10 07:08:09 +01:00
Sara Aspery
41d0404d4f Merge branch 'feature/RM-6915_ViewContentsOfLegalHoldUI' into 'master'
Resolve RM-6915 "Feature/ viewcontentsoflegalholdui"

Closes RM-6915

See merge request records-management/records-management!1226
2019-09-09 20:57:03 +01:00
Ramona Popa
b8963f75c8 RM-6945: Display available actions on held active content inside a hold
- added actions for isFreezeActiveContent
2019-09-09 22:10:55 +03:00
Rodica Sutu
3c957afdbe remove unwanted changes 2019-09-09 13:31:35 +03:00
Rodica Sutu
9588917c66 Merge remote-tracking branch 'remotes/origin/feature/RM-6918_ViewHoldContentTests' into feature/RM-6856_BulkRemovalFromHold_Tests 2019-09-09 13:24:25 +03:00
Rodica Sutu
5334623e56 add tests to Bulk Remove from Hold 2019-09-09 12:55:32 +03:00
rlucanu
7e79c86baf RM-6943 adding implementation for AddToHold evaluator 2019-09-06 16:58:52 +03:00
cagache
bc2f13e0f7 Code review comments 2019-09-06 08:50:49 +03:00
cagache
f5cae4cbca Merge remote-tracking branch 'remotes/origin/feature/RM-6915_ViewContentsOfLegalHoldUI' into feature/RM-6918_ViewHoldContentTests 2019-09-05 11:13:49 +03:00
cagache
720abc0ab5 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6918_ViewHoldContentTests 2019-09-05 11:07:53 +03:00
rlucanu
262a9480f3 Merge 'origin/master' into feature/RM-6915_ViewContentsOfLegalHoldUI 2019-09-05 10:53:46 +03:00
cagache
1f0c13438b Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6918_ViewHoldContentTests 2019-09-05 10:39:31 +03:00
cagache
9fd3d7f9d8 RM-6918 View legal holds content UI tests 2019-09-05 10:26:58 +03:00
Rodica Sutu
11396093b6 Merge branch 'feature/RM-6931_RetentionWIthRetainStepWithFrozenRecords_v2' into 'master'
RM-6931 RetentionWithRetainStepOnFrozenRecords

See merge request records-management/records-management!1223
2019-09-05 06:38:36 +01:00
cagache
f5879bb7fb RM-6918 View legal holds content UI tests 2019-09-04 16:20:43 +03:00
Rodica Sutu
c087c888c6 add an end to end test to check the search disposition schedule properties 2019-09-04 16:07:38 +03:00
Rodica Sutu
15e6b5c107 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6931_RetentionWIthRetainStepWithFrozenRecords_v2 2019-09-04 14:20:49 +03:00
cagache
d85ca33232 Record only merge of version change. 2019-09-04 11:06:27 +03:00
cagache
29fd680ced Record only merge of version change. 2019-09-04 10:59:13 +03:00
cagache
cc21d22bf4 Record only merge of version change. 2019-09-04 10:52:52 +03:00
cagache
5584f05cb0 Record only merge of version change. 2019-09-04 10:52:06 +03:00
cagache
9a3f52cc5b Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge/MNT-20740_BinDuplicationHotFix 2019-09-03 17:10:21 +03:00
alfresco-build
b80cbad7c6 [maven-release-plugin] prepare for next development iteration 2019-09-03 13:49:08 +01:00
alfresco-build
fc9df152e5 [maven-release-plugin] prepare release V2.7.2.1 2019-09-03 13:49:04 +01:00
cagache
c1b3decae4 Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge-3.1/MNT-20740_BinDuplicationHotFix 2019-09-03 13:36:48 +03:00
Rodica Sutu
44c35a454e remove unwanted logs 2019-09-03 11:36:00 +03:00
cagache
995a771b51 Merge remote-tracking branch 'remotes/origin/release/V2.7' into merge-3.0/MNT-20740_BinDuplicationHotFix
# Conflicts:
#	rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/util/ContentBinDuplicationUtilityUnitTest.java
#	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/content/ContentDestructionComponentUnitTest.java
2019-09-03 10:10:18 +03:00
cagache
af928d3c7d Merge remote-tracking branch 'remotes/origin/hotfix-2.7/MNT-20740_BinDuplicationHotFix' into release/V2.7 2019-09-03 09:16:44 +03:00
Rodica Sutu
f4f18f1047 disable on properties update for a frozen aspect 2019-09-03 09:01:15 +03:00
Claudia Agache
bb8d99c895 Merge branch 'hotfix-2.7/MNT-20740_BinDuplicationHotFix' into 'release/V2.7.2.x'
Resolve MNT-20740 "Hotfix 2.7/ binduplicationhotfix"

See merge request records-management/records-management!1222
2019-09-02 11:37:34 +01:00
cagache
fa48983bb6 apply code style 2019-09-02 13:33:37 +03:00
Sara Aspery
2fe6cdf602 RM-6915_ViewActiveContentInHoldAndFrozenIndicator 2019-08-30 23:41:19 +01:00
Roy Wetherall
a48cb2755c Deal with review comments 2019-08-30 11:28:44 +10:00
Roy Wetherall
8e26f5aad5 Addition tests for records, fixed up a couple of issues in the query method as a result. 2019-08-29 21:35:00 +10:00
Roy Wetherall
1c539f9f05 Fix issue with inaccurate results returning from content URL query
* added integration test for MNT scenarios
* checked for nodeId's that don't exist in query results
* changed DAO method to return set of node references rather tha nodeId strings
* turned off logging by default
2019-08-29 12:28:04 +10:00
Roy Wetherall
211ebba2f2 Add logging to rm query DAO implementation 2019-08-29 09:50:57 +10:00
Rodica Sutu
d02b074670 Merge branch 'feature/RM-6929_RecordFolderWithVitalAndFrozenRecords' into 'master'
Resolve RM-6929 "Feature/ recordfolderwithvitalandfrozenrecords"

Closes RM-6929

See merge request records-management/records-management!1221
2019-08-28 13:08:19 +01:00
Rodica Sutu
bcefca962c code review updates 2019-08-28 10:57:13 +03:00
Rodica Sutu
184673cef1 Add tests for RM-6929 2019-08-27 13:55:54 +03:00
Rodica Sutu
ba9a192950 disable on update properties for frozen items when setting the record search properties 2019-08-27 09:34:30 +03:00
Rodica Sutu
5e516a57b9 Merge branch 'feature/RM-6914_AddRemoveToHold_Tests' into 'master'
Resolve RM-6914 "Feature/ addremovetohold tests"

Closes RM-6914

See merge request records-management/records-management!1219
2019-08-23 08:11:06 +01:00
Rodica Sutu
0a26da478b update the tests to allow remove from hold with a user with read permission, filling permission over the hold and remove from hold capabilities 2019-08-22 14:51:33 +03:00
Sara Aspery
d79caf2466 Merge branch 'feature-2.7/MNT-20740_BinDuplicationHotFix' into hotfix-2.7/MNT-20740_BinDuplicationHotFix
# Conflicts:
#	rm-community/rm-community-repo/config/alfresco/module/org_alfresco_module_rm/module-context.xml
#	rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/util/ContentBinDuplicationUtility.java
2019-08-22 12:29:45 +01:00
Sara Aspery
18bd7d7fac MNT-20740 New db query 2019-08-22 11:19:34 +01:00
Rodica Sutu
35a76988a2 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-22 08:48:40 +03:00
Claudia Agache
a03fce52d3 Merge branch 'feature/RM-6911_AddActiveContentToHoldRestAPI' into 'master'
RM-6911 Add/Remove Active Content To/From Holds via REST API

See merge request records-management/records-management!1218
2019-08-22 06:36:39 +01:00
cagache
becbf296df code review comments 2019-08-22 08:30:18 +03:00
cagache
903791e1db code review comments 2019-08-21 18:56:27 +03:00
cagache
f169e79599 fix tests 2019-08-21 18:38:37 +03:00
cagache
27496b81f1 code review comments 2019-08-21 18:19:18 +03:00
Rodica Sutu
577b2e1a72 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-21 14:43:43 +03:00
Rodica Sutu
7c5d8058d2 Merge branch 'feature/RM-6911_AddActiveContentToHoldRestAPI' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-21 14:43:27 +03:00
Rodica Sutu
0e4501d27a minor updates of the java doc and code style 2019-08-21 14:41:05 +03:00
Rodica Sutu
0d85f2cadd code review changes 2019-08-21 12:03:01 +03:00
Ross Gale
1575124fd7 Merge branch 'feature/RM-6873_RemoveActiveContentFromHold' into 'master'
RM-6873 adding code to allow for the removal of active content from a hold

See merge request records-management/records-management!1216
2019-08-21 08:44:56 +01:00
Claudia Agache
9cea6d9344 Merge branch 'feature/RM-6926_AddFrozenNodeToAnotherHold' into 'master'
RM-6926 Don't trigger onUpdateProperties policy when a frozen node is added to another hold

Closes RM-6926

See merge request records-management/records-management!1220
2019-08-21 07:14:59 +01:00
cagache
bee8d09bd4 Merge changes from feature/RM-6873_RemoveActiveContentFromHold 2019-08-20 16:54:58 +03:00
Ross Gale
40767c1b59 RM-6873 adding code review changes 2019-08-20 13:58:26 +01:00
Ross Gale
3e5b1bad95 RM-6873 adding code review changes 2019-08-20 13:57:42 +01:00
Ross Gale
6437f31749 RM-6873 adding code review changes 2019-08-20 13:56:14 +01:00
cagache
5230a9e0e8 RM-6926 Don't trigger onUpdateProperties policy when a frozen node is added to another hold 2019-08-20 14:56:46 +03:00
Rodica Sutu
849252b125 tests updates java docs and clean up data after test run 2019-08-20 11:33:42 +03:00
Rodica Sutu
5a24bf2f2b Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-20 08:54:52 +03:00
Rodica Sutu
d0a6b5a739 Merge branch 'feature/RM-6911_AddActiveContentToHoldRestAPI' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-20 08:54:40 +03:00
Rodica Sutu
36f5c76599 Tests for Add and Remove active content to/from hold using exiting API's 2019-08-20 08:50:58 +03:00
cagache
d990f30e8c Merge changes from feature/RM-6873_RemoveActiveContentFromHold 2019-08-20 08:09:32 +03:00
Claudia Agache
296c78e7d5 Merge branch 'feature/RM-6904_PreventUpdateHeldActiveContent' into 'master'
Resolve RM-6904 "Feature/ preventupdateheldactivecontent"

Closes RM-6904

See merge request records-management/records-management!1217
2019-08-20 05:59:32 +01:00
Ross Gale
ac4b8d4b9a RM-6873 adding changes from update branch and updating tests 2019-08-19 15:56:10 +01:00
Ross Gale
3d4175078d Merge branch 'feature/RM-6904_PreventUpdateHeldActiveContent' into feature/RM-6873_RemoveActiveContentFromHold 2019-08-19 15:47:32 +01:00
cagache
b769ce2892 Check exception messages 2019-08-19 17:12:58 +03:00
cagache
a5d245b5f6 Throw PermissionDeniedException instead of AccessDeniedException and internationalized the messages. 2019-08-19 15:02:40 +03:00
Rodica Sutu
d1d3bb91d9 Merge branch 'feature/RM-6911_AddActiveContentToHoldRestAPI' of https://git.alfresco.com/records-management/records-management into feature/RM-6914_AddRemoveToHold_Tests 2019-08-19 11:26:57 +03:00
cagache
3dfc01f716 Added check for Remove From Hold capability 2019-08-19 09:32:33 +03:00
Rodica Sutu
c726d4616d Merge remote-tracking branch 'remotes/origin/feature/RM-6904_PreventUpdateHeldActiveContent' into feature/RM-6914_AddRemoveToHold_Tests 2019-08-19 09:22:41 +03:00
cagache
f858d6d203 Added fix to not trigger onUpdateProperties policy when deleting a hold. 2019-08-16 19:08:54 +03:00
Rodica Sutu
5e05737186 Merge remote-tracking branch 'remotes/origin/feature/RM-6904_PreventUpdateHeldActiveContent' into feature/RM-6914_AddRemoveToHold_Tests 2019-08-16 17:34:43 +03:00
cagache
cc968e5aa8 small fix 2019-08-16 17:28:53 +03:00
cagache
54420ca212 RM-6906 Add integration tests for prevent update of held content. Added fix to not trigger onUpdateProperties policy when removing the frozen aspect. 2019-08-16 16:10:09 +03:00
cagache
b9a4df14f5 code review comments 2019-08-16 10:56:08 +03:00
cagache
221a633c2a Merge changes from feature/RM-6873_RemoveActiveContentFromHold 2019-08-16 09:44:56 +03:00
Ross Gale
1d739008c2 RM-6873 adding unit tests for edit 2019-08-16 07:25:19 +01:00
cagache
9af13a5e51 Restrict frozenRecords association to have only cm:cmobject as target 2019-08-16 08:51:33 +03:00
Ross Gale
a5722c31c4 RM-6873 adding in edit protection changes 2019-08-15 13:25:18 +01:00
rlucanu
4f03687e83 RM-6904 code review changes 2019-08-14 17:54:37 +03:00
cagache
f972c54efb Moved instanceOf method from ServiceBaseImpl class to a utility class 2019-08-14 17:04:04 +03:00
Ross Gale
2af340c5d6 RM-6873 sonar update 2019-08-14 13:40:39 +01:00
cagache
947b293c76 Merge remote-tracking branch 'remotes/origin/feature/RM-6873_RemoveActiveContentFromHold' into feature/RM-6911_AddActiveContentToHoldRestAPI 2019-08-14 15:22:27 +03:00
Ross Gale
dff5b452d9 RM-6873 code review changes 2019-08-14 11:20:18 +01:00
rlucanu
94936bc8a7 RM-6904 Fixing tests 2019-08-14 12:12:54 +03:00
cagache
c3021ccfa1 Do not allow addition of locked content to holds 2019-08-13 17:10:06 +03:00
rlucanu
ae64374c61 RM-6904 Tiding up 2019-08-13 01:24:22 +03:00
cagache
8fc0ca7e5a Merge remote-tracking branch 'remotes/origin/feature/RM-6873_RemoveActiveContentFromHold' into feature/RM-6911_AddActiveContentToHoldRestAPI 2019-08-09 12:53:03 +03:00
cagache
2f88cee847 Add active content to hold through rest api 2019-08-09 12:07:24 +03:00
Ross Gale
d5278c4ec7 RM-6873 adding code to allow for the removal of active content from a hold 2019-08-09 10:06:30 +01:00
rlucanu
93084fac63 RM-6904 Prevent updating held active content 2019-08-08 13:15:22 +03:00
Claudia Agache
dded7766c7 Merge branch 'feature/RM-6872_AddActiveContentToHold' into 'master'
RM-6872 Add active content to hold

See merge request records-management/records-management!1209
2019-08-07 13:50:56 +01:00
cagache
5dae326ea0 fix sonar issues 2019-08-07 12:38:18 +03:00
Tom Page
3f0f3d5ddd Merge branch 'merge/RemoveExceptionsFromGSCoreAPI' into 'master'
Merge/remove exceptions from gs core api

See merge request records-management/records-management!1215
2019-08-06 14:50:27 +01:00
cagache
1876c120d7 fix sonar issues 2019-08-06 16:25:08 +03:00
cagache
66706abac5 code review comments 2019-08-06 13:45:53 +03:00
Tom Page
d8f75eaf59 Merge release/V3.1 into master. 2019-08-06 09:17:33 +01:00
Tom Page
ad7eec9700 Merge branch 'merge-3.1/RemoveExceptionsFromGSCoreAPI' into 'release/V3.1'
Merge 3.1/remove exceptions from gs core api

See merge request records-management/records-management!1214
2019-08-06 08:33:09 +01:00
Tom Page
0b3652b5a4 Merge release/V3.0 into release/V3.1. 2019-08-05 15:28:53 +01:00
Tom Page
6bc8aa9f99 Merge branch 'merge-3.0/RemoveExceptionsFromGSCoreAPI' into 'release/V3.0'
Merge 3.0/remove exceptions from gs core api

See merge request records-management/records-management!1213
2019-08-05 15:15:06 +01:00
cagache
53f75085a5 Added check for archived nodes 2019-08-05 16:40:26 +03:00
Sara Aspery
0f0b0962b8 MNT-20740 Updates from review 2019-08-05 10:20:38 +01:00
Tom Page
79c9244a14 Merge release/V2.7 into release/V3.0. 2019-08-05 08:11:57 +01:00
Tom Page
8beb4d5e24 Merge branch 'merge-2.7/RemoveExceptionsFromGSCoreAPI' into 'release/V2.7'
Merge 2.7/remove exceptions from gs core api

See merge request records-management/records-management!1212
2019-08-05 08:08:36 +01:00
cagache
2fd1f661e2 code review comments 2019-08-02 17:31:02 +03:00
cagache
c33a174b1a Removed printed exception 2019-08-02 15:38:54 +03:00
cagache
30d05f4f7a Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6872_AddActiveContentToHold 2019-08-02 15:37:21 +03:00
cagache
862e69da17 get default file plan only if node is not a file plan component 2019-08-02 09:42:09 +03:00
cagache
5348b963c3 code review comments 2019-08-01 16:02:55 +03:00
Tom Page
a97bf04cff Merge release/V2.6 into release/V2.7. 2019-08-01 13:39:25 +01:00
Tom Page
8c008a5b6d Merge branch 'feature-2.6/RemoveExceptionsFromGSCoreAPI' into 'release/V2.6'
Remove unthrown checked exceptions.

See merge request records-management/records-management!1211
2019-08-01 13:38:45 +01:00
Tom Page
1df5a307c4 Revert "Use AlfrescoRuntimeException."
This reverts commit b2c0afd8d5.
2019-08-01 13:33:26 +01:00
Tom Page
b2c0afd8d5 Use AlfrescoRuntimeException. 2019-08-01 13:23:43 +01:00
Tom Page
9a36a9e8d6 Remove unthrown checked exceptions.
Update the javadoc to refer to RuntimeExceptions instead.  Also conversion from
IOException to RuntimeException in UnfiledContainerAPI and UnfiledRecordFolderAPI
to add consistency with RecordFolderAPI.
2019-08-01 09:51:31 +01:00
Sara Aspery
7c4d8e91ab MNT-20740 BinDuplicationHotFixSqlRefactor 2019-07-30 16:35:48 +01:00
cagache
bb970e33f5 Add ASPECT_HELD_CHILDREN on active content parent 2019-07-29 15:35:35 +03:00
cagache
820d1b2c0d Added IT and unit tests for add file to hold 2019-07-25 17:51:17 +03:00
cagache
9c13bf3ced Add IT to check that active content can be added to a hold by admin user 2019-07-25 11:07:36 +03:00
cagache
2aeb78b57c Add ASPECT_HELD_CHILDREN on active content parent 2019-07-24 17:30:15 +03:00
cagache
f61992f047 Allow active content to be added to a hold 2019-07-23 15:45:23 +03:00
cagache
512297c6a4 Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge/MNT-20741_AddingSubtypeLogic 2019-07-19 12:41:43 +03:00
cagache
9c344bd97b Merge MNT-20741 fix from release/V3.0 branch to release/V3.1 branch 2019-07-19 08:50:05 +03:00
Ross Gale
557ce8b432 Removing severe sonar warnings
(cherry picked from commit 665c579560)

(cherry picked from commit 16f96e6e91)
2019-07-18 11:15:01 +03:00
cagache
894dd69c74 Merge MNT-20741 fix from release/V2.7 branch to release/V3.0 branch 2019-07-18 09:17:18 +03:00
cagache
ecf2f9bc21 Merge remote-tracking branch 'remotes/origin/release/V2.7.2.x' into merge-2.7/MNT-20741_AddingSubtypeLogic 2019-07-17 09:50:40 +03:00
cagache
5152c1c0ce Record only merge of version change. 2019-07-15 16:23:02 +03:00
cagache
35e9e20871 Record only merge of version change. 2019-07-15 16:21:20 +03:00
cagache
ff9a5f239b Record only merge of version change. 2019-07-15 16:19:41 +03:00
cagache
a6e413c52f Update version to 3.0.2.1-SNAPSHOT 2019-07-15 15:36:52 +03:00
alfresco-build
aed94d26cf [maven-release-plugin] prepare for next development iteration 2019-07-15 12:22:08 +01:00
alfresco-build
0788a065c6 [maven-release-plugin] prepare release V3.0.2 2019-07-15 12:22:04 +01:00
Ross Gale
1e8dcd5e24 Merge branch 'feature-2.7/MNT-20741_AddingSubtypeLogic' into 'release/V2.7.2.x'
MNT-20741 adding code to check for subtypes

See merge request records-management/records-management!1207
2019-07-12 16:37:00 +01:00
cagache
5551b6f89f Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge/RM-6577_MergeIERMTests 2019-07-12 15:29:30 +03:00
cagache
9dc6a7a0ac Record only merge of version change. 2019-07-12 15:25:00 +03:00
Ross Gale
807032334d MNT-20741 adding code to check for subtypes 2019-07-11 15:41:14 +01:00
rlucanu
7a048cdf7e Record only merge of version change. 2019-07-10 16:21:40 +03:00
rlucanu
7753cfc554 Record only merge of version change. 2019-07-10 16:20:24 +03:00
rlucanu
d64b6da5c2 Record only merge of version change. 2019-07-10 16:18:31 +03:00
Ross Gale
075794981b MNT-20740 initial commit for delete protection for copied records 2019-07-10 10:53:27 +01:00
cagache
82046a2f0f Back-port fix from MNT-19967
(cherry picked from commit 4de260d588)
2019-07-10 07:52:28 +03:00
rlucanu
8438e17a8d Reset code back to b03837b751. 2019-07-10 07:49:40 +03:00
rlucanu
88a298e945 Record only merge of version change. 2019-07-09 14:40:23 +03:00
rlucanu
a453a46074 Record only merge of version change. 2019-07-09 14:37:03 +03:00
rlucanu
b03bcf3008 Record only merge of version change. 2019-07-09 14:23:25 +03:00
rlucanu
f669cfdaea Merge remote-tracking branch 'origin/release/V2.5' into release/V2.5
# Conflicts:
#	pom.xml
#	rm-automation/pom.xml
#	rm-community/pom.xml
#	rm-community/rm-community-repo/pom.xml
#	rm-community/rm-community-share/pom.xml
#	rm-enterprise/pom.xml
#	rm-enterprise/rm-enterprise-repo/pom.xml
#	rm-enterprise/rm-enterprise-share/pom.xml
2019-07-09 13:50:04 +03:00
rlucanu
32c467beec Merge remote-tracking branch 'remotes/origin/release/V2.5.3.x' into release/V2.5 2019-07-09 13:49:07 +03:00
rlucanu
a606a343b3 Revert "Record only merge of version change."
This reverts commit 6e197f2a2d, reversing
changes made to 211244279a.
2019-07-09 12:12:28 +03:00
rlucanu
6e197f2a2d Record only merge of version change. 2019-07-09 11:09:28 +03:00
Rodica Sutu
8bedb94a5e Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge-3.1/RM-6823_MergeIERMTests
# Conflicts:
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RMUserAPI.java
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RMRolesAndActionsAPI.java
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/RoleService.java
#	rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/base/BaseRMRestTest.java
#	rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/DeleteRecordTests.java
#	rm-automation/rm-automation-community-rest-api/src/test/java/org/alfresco/rest/rm/community/records/UpdateRecordsTests.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/base/BaseRMEnterpriseRestTest.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/classification/content/ClassifyCompleteRecordsTest.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/classification/content/SetRMExemptionReasonTest.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/search/SearchClassifiedRecordFoldersTests.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/search/SearchClassifiedRecordsTests.java
2019-07-09 08:48:13 +03:00
alfresco-build
211244279a [maven-release-plugin] prepare for next development iteration 2019-07-08 16:39:21 +01:00
alfresco-build
a37547b22a [maven-release-plugin] prepare release V2.5.3.2 2019-07-08 16:39:17 +01:00
Rodica Sutu
c26fa610df Merge branch 'feature-3-0/RM-6577_AutomatedRestApiTests' into 'release/V3.0'
Resolve RM-6577 "Feature 3 0/ automatedrestapitests"

See merge request records-management/records-management!1199
2019-07-08 06:54:36 +01:00
cagache
0d0c1c4048 Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge/RM-6564_InsightEngine 2019-07-05 16:59:55 +03:00
Roxana Lucanu
b1bb756913 Merge branch 'hotfix-2.5/MNT-20700_backportFix' into 'release/V2.5.3.x'
Back-port fix from MNT-19967

See merge request records-management/records-management!1204
2019-07-05 12:54:42 +01:00
Rodica Sutu
8ab3078bba fix sonar final warning 2019-07-05 12:50:19 +03:00
cagache
5a30bb57d1 transform UserPermissions in enum; add helper methods to create users with rm role, permissions or clearance
(cherry picked from commit e8725860eb)

# Conflicts:
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/classification/content/SetRMExemptionReasonTest.java
2019-07-05 10:32:10 +03:00
Rodica Sutu
ab6a5dbe02 Merge branch 'release/V3.0' of https://git.alfresco.com/records-management/records-management into feature-3-0/RM-6577_AutomatedRestApiTests 2019-07-04 17:59:38 +03:00
cagache
0b765199fe Merge IE changes from release/V3.0 branch to release/V3.1 branch 2019-07-04 17:11:45 +03:00
Rodica Sutu
c6b87beb6a Merge branch 'feature-3.0/RM-6565_UpdateDockerComposeWithIE' into 'release/V3.0'
feature-3.0/RM-6565_UpdateDockerComposeWithIE

See merge request records-management/records-management!1197
2019-07-04 14:50:17 +01:00
Rodica Sutu
f0cac1040c Merge branch 'release/V3.0' of https://git.alfresco.com/records-management/records-management into feature-3.0/RM-6565_UpdateDockerComposeWithIE 2019-07-04 16:18:25 +03:00
Claudia Agache
9cea9be8a2 Merge branch 'feature-3.0/RM-6564_IE_DevelopmentTask' into 'release/V3.0'
RM-6564 IE development task

See merge request records-management/records-management!1198
2019-07-04 14:04:32 +01:00
cagache
a976789861 transform UserPermissions in enum; add helper methods to create users with rm role, permissions or clearance
(cherry picked from commit a54a80f6a6)

# Conflicts:
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/rm/community/requests/gscore/api/RMUserAPI.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/base/BaseRMEnterpriseRestTest.java
#	rm-automation/rm-automation-enterprise-rest-api/src/test/java/org/alfresco/rest/rm/enterprise/v0/classification/folder/RecordFolderClassificationTest.java
2019-07-04 16:03:20 +03:00
cagache
4de260d588 Back-port fix from MNT-19967 2019-07-04 15:29:51 +03:00
cagache
fc4f1b77c4 Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge/RM-6892_SonarFixes 2019-07-04 14:27:07 +03:00
Rodica Sutu
53b843d958 review updates 2019-07-04 13:18:16 +03:00
cagache
91534ac7df code review comments 2019-07-04 11:28:35 +03:00
cagache
ff8816a38e Update branch with latest release/V3.0 changes 2019-07-04 10:01:06 +03:00
cagache
cd76665548 Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge-3.1/RM-6892_SonarFixes 2019-07-04 09:47:50 +03:00
Claudia Agache
b1ac8da7d9 Merge branch 'feature-3.0/RM-6892_SonarFixes' into 'release/V3.0'
RM-6892 More sonar fixes

See merge request records-management/records-management!1203
2019-07-04 07:44:12 +01:00
cagache
7a03c64ffd Merge changes from release/V3.0 branch to release/V3.1 branch 2019-07-04 09:40:11 +03:00
Rodica Sutu
65fd23c294 code review changes 2019-07-03 18:23:45 +03:00
cagache
7a370248a2 Sonar critical bug: inefficient use of keySet iterator instead of entrySet iterator 2019-07-03 17:30:10 +03:00
cagache
d27d927f51 Merge remote-tracking branch 'remotes/origin/release/V3.0' into feature-3.0/RM-6892_SonarFixes 2019-07-03 13:17:03 +03:00
Claudia Agache
96291db607 Merge branch 'feature-3.0/RM-6892_CherryPickSonarChangesFrom3.1' into 'release/V3.0'
RM-6892 Cherry pick Sonar changes from AGS 3.1

See merge request records-management/records-management!1202
2019-07-03 11:08:08 +01:00
cagache
179205ec61 code review comments 2019-07-02 17:34:51 +03:00
Ross Gale
95220d099b RM-6564 adding documentation 2019-07-02 12:21:00 +01:00
cagache
2071139e6e Sonar critical bug: inefficient use of keySet iterator instead of entrySet iterator 2019-07-02 12:06:13 +03:00
Rodica Sutu
041a0ca606 Merge branch 'feature-3.0/RM-6565_UpdateDockerComposeWithIE' of https://git.alfresco.com/records-management/records-management into feature-3-0/RM-6577_AutomatedRestApiTests 2019-07-02 12:04:11 +03:00
Rodica Sutu
ab41b55602 Merge branch 'release/V3.0' of https://git.alfresco.com/records-management/records-management into feature-3.0/RM-6565_UpdateDockerComposeWithIE 2019-07-02 11:53:47 +03:00
Rodica Sutu
da636f2061 Merge branch 'release/V3.0' of https://git.alfresco.com/records-management/records-management into feature-3-0/RM-6577_AutomatedRestApiTests 2019-07-02 10:34:50 +03:00
Rodica Sutu
7c323aa809 refactoring of the added rest api tests for SQL queries
new tests added for sql queries for: record categories, record folders and records
2019-07-02 10:29:21 +03:00
cagache
39245d19c8 Removed redundant local variables 2019-07-01 16:45:32 +03:00
cagache
723183021a Removed redundant conditional expression 2019-07-01 16:34:24 +03:00
cagache
c5907dbc10 Removed unnecessary null check before Boolean.parseBoolean 2019-07-01 16:28:48 +03:00
cagache
da33dc1ae1 Removed unnecessary semicolon 2019-07-01 16:19:52 +03:00
cagache
6bc4ec03a6 Sonar code smell: Replace the type specification in this constructor call with the diamond operator ("<>") 2019-07-01 16:01:43 +03:00
cagache
26019f50ea Merge changes from V3.0 branch 2019-07-01 12:12:32 +03:00
Ross Gale
602bcd7c63 Merge branch 'release/V3.0' into feature-3.0/RM-6564_IE_DevelopmentTask 2019-06-26 10:51:42 +01:00
Ross Gale
4cb74ad5b2 Merge branch 'feature-3.0/RM-6746_Java11' into 'release/V3.0'
Resolve RM-6746 "Feature 3.0/ java11"

See merge request records-management/records-management!1201
2019-06-26 08:39:30 +01:00
Ross Gale
4500017453 RM-6746 update from code review 2019-06-25 16:01:53 +01:00
Rodica Sutu
e3614fd3de Merge branch 'feature/RM-6825_IncreaseTravisTimeout' into 'master'
Increase Travis timeout

Closes RM-6825

See merge request records-management/records-management!1162
2019-06-25 16:00:23 +01:00
Ross Gale
a2362ed464 Merge branch 'feature/RM-6825_UpdateTravis' into 'master'
RM-6825 update travis to use openjdk11

Closes RM-6825

See merge request records-management/records-management!1157
2019-06-25 15:59:50 +01:00
Rodica Sutu
0c4b0dc23b test updates: minor refactoring and formatting fixes 2019-06-24 10:16:20 +03:00
cagache
8bac296cff Revert "removed unused variable"
This reverts commit c55c5929
2019-06-21 16:33:08 +03:00
Ross Gale
676e7be940 RM-6831 updating search value
(cherry picked from commit a002f1d1c5)
2019-06-21 16:21:49 +03:00
Ross Gale
5c7e51d8b3 RM-6831 adding sonar fix
(cherry picked from commit 01b4146582)
2019-06-21 16:21:30 +03:00
cagache
1a8ee3d19e fix Sonar: Empty statements should be removed
(cherry picked from commit 365fddc247)
2019-06-21 16:20:35 +03:00
cagache
e0aaea61d2 Fix sonar Performance - Boxed value is unboxed and then immediately reboxed
(cherry picked from commit 7f73ad8227)
2019-06-21 16:16:01 +03:00
cagache
b5d4d79fcb Fix "Either re-interrupt this method or rethrow the "InterruptedException"." sonar bug
(cherry picked from commit 929980e7c2)
2019-06-21 16:14:53 +03:00
cagache
c97adfaac4 delete unnecessary semicolon
(cherry picked from commit 5dcae9c608)
2019-06-21 16:14:30 +03:00
cagache
cc203c0cf2 removed contentService from child classes and made it protected in parent class
(cherry picked from commit 4fa230a322)
2019-06-21 16:12:31 +03:00
cagache
c55c5929fb removed unused variable
(cherry picked from commit ba729a0f2e)
2019-06-21 16:11:11 +03:00
cagache
aceaef2f44 removed contentService from child classes and made it protected in parent class
(cherry picked from commit a11feb9bfe)
2019-06-21 16:10:30 +03:00
Ross Gale
8b949ad483 RM-6836 remove unused imports
(cherry picked from commit 8515b9c2f8)
2019-06-21 16:06:43 +03:00
Ross Gale
8245909bf2 RM-6836 formatting change
(cherry picked from commit f0fe989822)
2019-06-21 16:06:18 +03:00
Ross Gale
fd8a6a0cd4 RM-6836 formatting change
(cherry picked from commit a000f99c04)
2019-06-21 16:05:55 +03:00
Ross Gale
b799e5600b RM-6836 formatting change
(cherry picked from commit 05c70ede63)
2019-06-21 16:05:24 +03:00
Ross Gale
b65400746e RM-6836 adding review comments
(cherry picked from commit 07d4c451ca)
2019-06-21 16:05:09 +03:00
Ross Gale
02093eac33 RM-6836 adding the severe and serious sonar fixes
(cherry picked from commit 9f2336d487)
2019-06-21 16:04:47 +03:00
Ross Gale
b44d8e3be5 Removing sonar warnings
(cherry picked from commit 86f66dbd85)
2019-06-21 16:04:28 +03:00
Ross Gale
16f96e6e91 Removing severe sonar warnings
(cherry picked from commit 665c579560)
2019-06-21 16:03:43 +03:00
Ross Gale
46212a2aae RM-6836 updating variable beanname
(cherry picked from commit c99fa9b421)
2019-06-21 16:03:22 +03:00
Rodica Sutu
75cad3231a Merge branch 'feature/RM-6833_SkipFailBuildOnJavaDocsError' into 'master'
RM-6833

See merge request records-management/records-management!1161
2019-06-20 15:24:41 +01:00
Claudia Agache
cc49cb09fa RM-6746 cherry picking merge request from RM-6803 and RM-6835 2019-06-20 15:24:39 +01:00
Rodica Sutu
77f750455c Merge branch 'feature/RM-6835_FixJavaDocRMCommunity' into 'master'
Fix java docs for rm community repo:

Closes RM-6835

See merge request records-management/records-management!1163
2019-06-20 15:14:31 +01:00
Claudia Agache
0e201874bc RM-6746 cherry picking merge request from RM-6790 2019-06-20 15:13:03 +01:00
cagache
7471d4e537 Record only merge of version change. 2019-06-20 14:35:38 +03:00
cagache
ba70b24ce3 Record only merge of version change. 2019-06-20 14:33:22 +03:00
cagache
068fef7ac2 Update version to 3.1.0.1-SNAPSHOT 2019-06-20 14:31:42 +03:00
cagache
9238737f68 Update version to 3.1.1-SNAPSHOT 2019-06-20 14:28:45 +03:00
alfresco-build
38feaef31d [maven-release-plugin] prepare for next development iteration 2019-06-20 10:46:20 +01:00
alfresco-build
93175c24ae [maven-release-plugin] prepare release V3.1.0 2019-06-20 10:46:16 +01:00
Ross Gale
75b4bc5ca5 Merge branch 'feature/RM-6865_RemoveEncoding' into 'master'
Resolve RM-6865 "Feature/ removeencoding"

Closes RM-6865

See merge request records-management/records-management!1196
2019-06-20 07:33:47 +01:00
Rodica Sutu
29a64a8507 add the alfresco.port property 2019-06-19 14:55:23 +03:00
Ross Gale
8daac2d403 Revert "RM-6865 code review changes"
This reverts commit b4bc9195
2019-06-19 10:57:08 +01:00
Ross Gale
b4bc91950b RM-6865 code review changes 2019-06-19 10:16:25 +01:00
Tom Page
0bdc774240 RM-6141 Revert change of how a user is a member of the RM site.
The user should be an RM User, not a site manager.  Also revert a couple
of changes that were done to make this work.

Minor tweaks to use constants rather than member variables.

(cherry picked from commit b284ba90388ef360f5321826e292ec43bf2e5197)
2019-06-19 11:43:31 +03:00
Tom Page
9b89bdee32 RM-6141 Update SQL tests to use correct users.
Also hardcode the site id of the RM site to be "rm", so that we can use
this when adding site members.

(cherry picked from commit 92a6dcf8ae04151699b0b5a4bad79bc82f36ae71)

# Conflicts:
#	rm-enterprise/pom.xml
2019-06-19 11:41:23 +03:00
Rodica Sutu
23d1a3f7c1 adding search tests for the SQL support
(cherry picked from commit 29f2ddf2203261f477464528a9f5b83a7679223c)

# Conflicts:
#	rm-automation/rm-automation-enterprise-rest-api/pom.xml
2019-06-19 11:36:45 +03:00
Tom Page
1d10f0666f Update TAS rest api to the latest version from 5.2.0.X - 5.2.0.15 2019-06-19 11:34:04 +03:00
Rodica Sutu
b010bf1c3e update tas rest api version to 5.2.0.12
(cherry picked from commit f76491b09fb9d2daff3387a4d19de32fd0dd179d)
2019-06-19 11:20:28 +03:00
Ross Gale
8a37916e3a RM-6865 code review changes 2019-06-19 08:20:55 +01:00
Ross Gale
d5d74d6899 RM-6865 removing encoding of path in action body 2019-06-18 17:47:39 +01:00
Ross Gale
c82d586479 RM-6865 removing encoding of path in action body 2019-06-18 17:45:46 +01:00
Tuna Aksoy
3aa4b95470 RM-6141: RM_support_for_the_Insight_Engine
(cherry picked from commit 8858f8fd188e70d1175cf3134cda2af80cf967fc)
2019-06-18 17:55:55 +03:00
Claudia Agache
86ad2dcd93 Merge branch 'feature/RM-6847_SonarMajorIssues' into 'master'
RM-6847 Fix some of sonar major issues

See merge request records-management/records-management!1191
2019-06-18 12:57:01 +01:00
Ross Gale
06b8001362 RM-6865 adding param to test 2019-06-18 08:57:46 +01:00
Claudia Agache
532747b0ad Merge branch 'feature/RM-6884_RemovedUnusedStringsAndOtherChanges' into 'master'
RM-6884 Changed Record Folder Location display label and removed unused strings

Closes RM-6884

See merge request records-management/records-management!1193
2019-06-18 07:00:15 +01:00
Ross Gale
b907ff04cb RM-6865 adding null check 2019-06-17 14:43:39 +01:00
Ross Gale
40d01c2c44 RM-6865 adding test 2019-06-17 08:01:15 +01:00
rlucanu
41e1d9f880 RM-6884 Changed Record Folder Location display label and removed unused strings 2019-06-14 18:06:10 +03:00
Ross Gale
dc38a2031b Merge branch 'feature/RM-6831_SecuritySonarFix' into 'master'
Resolve RM-6831 "Feature/ securitysonarfix"

Closes RM-6831

See merge request records-management/records-management!1189
2019-06-14 14:15:05 +01:00
Ross Gale
c142ab7699 RM-6865 adding extra param for declare to 2019-06-14 13:44:44 +01:00
cagache
365fddc247 fix Sonar: Empty statements should be removed 2019-06-14 14:45:49 +03:00
cagache
7f73ad8227 Fix sonar Performance - Boxed value is unboxed and then immediately reboxed 2019-06-14 10:38:23 +03:00
Roxana Lucanu
76cb942556 Merge branch 'feature/RM-6864_AddedEvaluatorForDeclareAndFileAction' into 'master'
Resolve RM-6864 Fix permission issue for File as record action

Closes RM-6864

See merge request records-management/records-management!1190
2019-06-13 10:07:27 +01:00
rlucanu
54097b2fb5 RM-6864 fixed condition 2019-06-12 15:40:51 +03:00
rlucanu
ad620ba6b5 RM-6864 Code review changes 2019-06-12 11:37:50 +03:00
rlucanu
0e9a855182 RM-6864 Changed label to be consistent with File to action 2019-06-10 21:21:46 +03:00
rlucanu
e38904cb91 RM-6864 Fix roles issue 2019-06-10 15:30:27 +03:00
Ross Gale
a002f1d1c5 RM-6831 updating search value 2019-06-07 12:14:19 +01:00
Ross Gale
01b4146582 RM-6831 adding sonar fix 2019-06-07 11:35:01 +01:00
Sara Aspery
35a1fd00e7 Merge branch 'feature/RM-6865_EnableEncodedDeclareAndFileRecPath' into 'master'
Resolve RM-6865 "Feature/ enableencodeddeclareandfilerecpath"

Closes RM-6865

See merge request records-management/records-management!1188
2019-06-07 08:48:04 +01:00
gbroadbent
5afd26bad8 SIMPLIFIED CHINESE: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:27:29 +01:00
gbroadbent
106f7c21b2 BRAZILIAN PORTUGUESE: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:25:51 +01:00
gbroadbent
0ae39dc850 RUSSIAN: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:24:53 +01:00
gbroadbent
bb336d7758 DUTCH: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:24:12 +01:00
gbroadbent
ce7dd88301 NORWEGIAN (Bokmal): Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:23:40 +01:00
gbroadbent
11b76dcd8b JAPANESE: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:23:01 +01:00
gbroadbent
f1cd87593c ITALIAN: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:22:27 +01:00
gbroadbent
586e2eca87 SPANISH: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:21:48 +01:00
gbroadbent
f3fbd4ebdc FRENCH: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:21:11 +01:00
gbroadbent
791b4ceb3e GERMAN: Updated UI files based on EN-RM-rev2019-05-29T131603 2019-06-06 11:20:32 +01:00
cagache
6819516c58 Update the rejectLinkedRecord test to use files api and records api instead of actions api 2019-06-05 16:01:03 +01:00
Sara Aspery
36ba457cfa RM-6865 Rest API v0 test 2019-06-05 15:27:05 +01:00
Sara Aspery
1419540456 RM-6865 allow spaces in declare and file path 2019-06-05 15:26:31 +01:00
Ross Gale
afc24fa4a9 RM-6869 removing updates 2019-06-05 10:45:13 +01:00
Ross Gale
e8d1c82a21 RM-6869 extracting actions utils to a class 2019-06-05 09:34:28 +01:00
Ross Gale
77af43057a RM-6869 extracting actions utils to a class 2019-06-05 09:30:41 +01:00
Ross Gale
e078e0f6d1 RM-6869 extracting actions utils to a class 2019-06-05 09:27:38 +01:00
Ross Gale
62b7426b73 RM-6869 code comment changes 2019-06-05 09:07:35 +01:00
Ross Gale
76c865e41a RM-6869 removing linked record during rejection 2019-06-03 11:10:16 +01:00
Rodica Sutu
57452c43eb Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6811_DeclareAndFileUI_Tests 2019-05-27 10:26:56 +03:00
Sara Aspery
895dfe3be9 Merge branch 'feature/RM-6851_DeclareAndFileRecInHoldFolder' into 'master'
Resolve RM-6851 "Feature/ declareandfilerecinholdfolder"

Closes RM-6851 and RM-6852

See merge request records-management/records-management!1178
2019-05-23 21:29:20 +01:00
Sara Aspery
e0e2e94b21 Merge branch 'feature/RM-6852_FixInconsistenciesV1ResponeCodes' into 'feature/RM-6851_DeclareAndFileRecInHoldFolder'
Resolve RM-6852 "Feature/ fixinconsistenciesv1responsecodes"

See merge request records-management/records-management!1179
2019-05-23 21:24:40 +01:00
Sara Aspery
dc2e6f9f57 RM-6851 updates from review 2019-05-23 15:17:04 +01:00
Rodica Sutu
0ab7a955ce fix the previous commit revert the integration tests changes and add tests for RM-6780 Add "Declare and File Record" Share action 2019-05-23 15:47:00 +03:00
Rodica Sutu
210b554297 Tests for RM-6780 Add "Declare and File Record" Share action 2019-05-23 15:43:13 +03:00
Sara Aspery
3cf3874db1 RM-6852 Fix inconsistencies in V1 response codes 2019-05-23 13:27:53 +01:00
Sara Aspery
48469d8ce9 RM-6852 Fix inconsistencies in V1 response codes 2019-05-23 12:44:20 +01:00
Sara Aspery
16ef2130a8 RM-6851 Fix declare record into hold - add unit test 2019-05-23 12:32:01 +01:00
Sara Aspery
4f84727da0 RM-6851 Fix declare record into hold 2019-05-23 12:31:35 +01:00
Claudia Agache
ac4214b56c Merge branch 'feature/RM-6849_CheckForFilingPermission' into 'master'
RM-6849 Check for filling permission on destination record folder

See merge request records-management/records-management!1175
2019-05-23 06:59:58 +01:00
Roxana Lucanu
475f695d04 Merge branch 'feature/RM-6806_DeclareAndFileToUI' into 'master'
Resolve RM-6806 "Feature/ declareandfiletoui"

Closes RM-6806

See merge request records-management/records-management!1174
2019-05-22 20:33:44 +01:00
cagache
021804e79a code review comments 2019-05-22 17:04:18 +03:00
rlucanu
122665284f RM-6806 removed unnecessary strings 2019-05-22 17:04:14 +03:00
cagache
0deb093287 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6849_CheckForFilingPermission 2019-05-22 16:41:44 +03:00
cagache
ab114dd03a Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6849_CheckForFilingPermission 2019-05-22 16:39:07 +03:00
Claudia Agache
777a256a06 Merge branch 'feature/RM-6796_DeclareAndFileTests' into 'master'
RM-6796 Automated tests for Declare and file to a record folder functionality

See merge request records-management/records-management!1164
2019-05-22 13:51:08 +01:00
cagache
92ff5dd935 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6796_DeclareAndFileTests 2019-05-22 13:55:24 +03:00
Sara Aspery
0b7f4c9ec5 Merge branch 'feature/RM-6792_V1RestAPI' into 'master'
RM-6792 V1 Rest api

Closes RM-6832

See merge request records-management/records-management!1177
2019-05-22 10:53:54 +01:00
cagache
2f22080d41 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6796_DeclareAndFileTests 2019-05-22 09:40:35 +03:00
rlucanu
6bee296849 Merged master into feature/RM-6806_DeclareAndFileToUI 2019-05-22 09:07:54 +03:00
Sara Aspery
2b3522dd55 Merge branch 'feature/RM-6792_AddLocnParamToDeclareAsRec' into 'master'
RM-6792 Optional Record Locn

See merge request records-management/records-management!1168
2019-05-21 20:21:08 +01:00
cagache
f54d71baf1 Merge remote-tracking branch 'origin/feature/RM-6849_CheckForFilingPermission' into feature/RM-6849_CheckForFilingPermission 2019-05-21 16:57:18 +03:00
cagache
c1470c7c38 Merge remote-tracking branch 'remotes/origin/feature/RM-6796_DeclareAndFileTests' into feature/RM-6849_CheckForFilingPermission 2019-05-21 16:55:51 +03:00
cagache
a1b7957c15 Merge remote-tracking branch 'remotes/origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6796_DeclareAndFileTests 2019-05-21 16:37:32 +03:00
Ross Gale
ef483a7f4b Merge branch 'feature/RM-6798_RejectFiledRecords' into 'master'
Resolve RM-6798 "Feature/ rejectfiledrecords"

Closes RM-6798

See merge request records-management/records-management!1173
2019-05-21 14:21:09 +01:00
cagache
f27a0a39dc Merge remote-tracking branch 'remotes/origin/feature/RM-6792_V1RestAPI' into feature/RM-6849_CheckForFilingPermission 2019-05-21 16:10:26 +03:00
cagache
39c9ab7132 Merge remote-tracking branch 'remotes/origin/feature/RM-6792_V1RestAPI' into feature/RM-6796_DeclareAndFileTests 2019-05-21 15:39:19 +03:00
cagache
94abd407be Merge remote-tracking branch 'remotes/origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6796_DeclareAndFileTests 2019-05-21 15:38:47 +03:00
Sara Aspery
3ef7ae2f82 RM-6832 review updates 2019-05-21 13:09:22 +01:00
Sara Aspery
d7f20f1a3f RM-6792 review - change unfiled folder to container 2019-05-21 12:48:32 +01:00
Sara Aspery
8aeaf91926 RM-6792 review - change unfiled folder to container 2019-05-21 12:39:46 +01:00
cagache
c47cd6f44e Updated javadoc 2019-05-21 12:10:45 +03:00
cagache
fd00d6c705 Get Unfiled Container with system user 2019-05-21 09:38:53 +03:00
cagache
2bb72a4a59 Added check for filling permission on destination record folder 2019-05-20 17:02:05 +03:00
cagache
284ea22322 addressed code review comments 2019-05-20 16:58:35 +03:00
rlucanu
498c93c724 RM-6806 Code review changes. 2019-05-20 09:28:22 +03:00
Sara Aspery
b3bf912a78 RM-6792 updates from review - sonar 2019-05-20 06:39:56 +01:00
cagache
8f49086a06 Updated exception message 2019-05-16 14:27:13 +03:00
cagache
e0df3f4175 Merge remote-tracking branch 'remotes/origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6796_DeclareAndFileTests 2019-05-16 13:56:45 +03:00
Sara Aspery
4684596b02 Merge remote-tracking branch 'origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6792_AddLocnParamToDeclareAsRec 2019-05-16 10:44:45 +01:00
Sara Aspery
a2103168d8 RM-6792 updates from review 1 2019-05-16 10:44:29 +01:00
cagache
ba3acb3eed Added test for declaring and file a record into a held record folder 2019-05-16 10:54:58 +03:00
cagache
e5ac7ad9b7 code review comments 2019-05-14 15:18:24 +03:00
cagache
60f8a61599 Added closed folder to invalidDestinationIds data provider 2019-05-14 09:54:16 +03:00
cagache
bb1e01a6cc Fix sonar bugs for DockerHelper class 2019-05-13 16:46:32 +03:00
Sara Aspery
1611577670 Merge branch 'revert-c5113972' into 'release/V2.7'
Revert "RM-6792 Oliver strings and fix closed folder and tests"

See merge request records-management/records-management!1171
2019-05-13 13:40:00 +01:00
cagache
7e9147ceef Added parentId parameter for tests that use declareRecord v1 api 2019-05-13 15:00:42 +03:00
cagache
20a61b49de Merge remote-tracking branch 'remotes/origin/feature/RM-6792_V1RestAPI' into feature/RM-6796_DeclareAndFileTests 2019-05-13 10:02:32 +03:00
cagache
929980e7c2 Fix "Either re-interrupt this method or rethrow the "InterruptedException"." sonar bug 2019-05-13 10:00:29 +03:00
cagache
f6a2008b4d Merge remote-tracking branch 'remotes/origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6796_DeclareAndFileTests 2019-05-13 08:22:51 +03:00
Sara Aspery
d1ccc66c3d Merge branch 'master' into 'feature/RM-6792_AddLocnParamToDeclareAsRec'
# Conflicts:
#   rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/record/RecordServiceImpl.java
2019-05-10 15:47:16 +01:00
Sara Aspery
57358c259a Revert "RM-6792 Oliver strings and fix closed folder and tests"
This reverts commit c511397270
2019-05-10 15:44:32 +01:00
Sara Aspery
2ba81c8736 RM-6792 Optional Rec Locn V1 Rest API 2019-05-10 15:29:43 +01:00
Sara Aspery
b85d6cf378 RM-6792 Oliver strings and fix closed folder and tests 2019-05-10 15:26:17 +01:00
cagache
5dcae9c608 delete unnecessary semicolon 2019-05-10 17:08:33 +03:00
cagache
3c341d85c5 delete unnecessary imports 2019-05-10 17:05:15 +03:00
Sara Aspery
c511397270 RM-6792 Oliver strings and fix closed folder and tests 2019-05-10 14:47:38 +01:00
rlucanu
525abf9f2e RM-6806 Added UI part for Declare and File to action 2019-05-10 16:04:44 +03:00
cagache
07360369b8 Merge remote-tracking branch 'origin/feature/RM-6796_DeclareAndFileTests' into feature/RM-6796_DeclareAndFileTests 2019-05-10 15:31:53 +03:00
cagache
4fa230a322 removed contentService from child classes and made it protected in parent class 2019-05-10 15:24:03 +03:00
cagache
0f71d6ee98 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6796_DeclareAndFileTests 2019-05-10 15:16:53 +03:00
cagache
a15998b23f added missing curly braces 2019-05-10 10:59:56 +03:00
cagache
9c03ae75ad removed contentService from child classes and made it protected in parent class 2019-05-09 16:50:18 +03:00
Ross Gale
493821f1c2 Merge branch 'feature/RM-6836_SonarFixes' into 'master'
Resolve RM-6836 "Feature/ sonarfixes"

Closes RM-6836

See merge request records-management/records-management!1170
2019-05-09 13:12:46 +01:00
cagache
ba729a0f2e removed unused variable 2019-05-09 11:34:42 +03:00
cagache
a11feb9bfe removed contentService from child classes and made it protected in parent class 2019-05-09 11:32:32 +03:00
cagache
2955a87244 fix some sonar issues from RoleService class 2019-05-09 10:38:19 +03:00
Ross Gale
e03c9ecab1 RM-6798 removing config preventing filed records being rejected 2019-05-08 11:13:00 +01:00
Ross Gale
8515b9c2f8 RM-6836 remove unused imports 2019-05-08 10:27:13 +01:00
Ross Gale
f0fe989822 RM-6836 formatting change 2019-05-08 09:25:19 +01:00
Ross Gale
a000f99c04 RM-6836 formatting change 2019-05-08 09:17:19 +01:00
Ross Gale
8f9ca689df Merge branch 'master' into 'feature/RM-6836_SonarFixes'
# Conflicts:
#   rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/FilePlanComponentAspect.java
2019-05-08 09:08:42 +01:00
Ross Gale
05c70ede63 RM-6836 formatting change 2019-05-08 09:06:08 +01:00
Ross Gale
07d4c451ca RM-6836 adding review comments 2019-05-08 08:30:30 +01:00
Ross Gale
9f2336d487 RM-6836 adding the severe and serious sonar fixes 2019-05-07 17:23:11 +01:00
Rodica Sutu
709588ff42 Merge branch 'feature/RM-6835_FixJavaDocRMCommunity' into 'master'
Fix java docs for rm community repo:

Closes RM-6835

See merge request records-management/records-management!1163
2019-05-07 06:51:48 +01:00
Rodica Sutu
bac70edcd1 review comments: add the missing @param values, @return type 2019-05-06 21:47:26 +03:00
cagache
d247e1e2bc Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6796_DeclareAndFileTests 2019-05-06 16:59:12 +03:00
cagache
7ed0e9f15c used rmRestWrapper 2019-05-06 16:57:39 +03:00
Ross Gale
86f66dbd85 Removing sonar warnings 2019-05-06 14:06:21 +01:00
cagache
f7e8eb9def autowire the constructor 2019-05-06 15:20:29 +03:00
cagache
a37e56f1fc code review comments 2019-05-06 10:33:42 +03:00
cagache
41f9acbede used rmRestWrapper 2019-05-06 10:28:11 +03:00
cagache
cff25869f8 updated javadoc 2019-05-06 10:25:19 +03:00
Ross Gale
665c579560 Removing severe sonar warnings 2019-05-03 14:57:12 +01:00
Ross Gale
c99fa9b421 RM-6836 updating variable beanname 2019-05-03 14:04:01 +01:00
Rodica Sutu
9f095aea8c remove some of the method duplicated and change the action service class into a component 2019-05-03 15:54:08 +03:00
Rodica Sutu
790f2700e2 Merge remote-tracking branch 'remotes/origin/feature/RM-6792_AddLocnParamToDeclareAsRec' into feature/RM-6796_DeclareAndFileTests 2019-05-03 14:41:08 +03:00
Ross Gale
e19e3c8b35 Merge branch 'feature/RM-6834_RecordSearchFix' into 'master'
Resolve RM-6834 "Feature/ recordsearchfix"

Closes RM-6834

See merge request records-management/records-management!1165
2019-05-03 10:35:45 +01:00
Rodica Sutu
9b2525e006 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6835_FixJavaDocRMCommunity 2019-05-02 13:45:09 +03:00
Ross Gale
5a964b50cd Merge branch 'merge/RM-6773' into 'master'
Resolve RM-6773 "Merge/"

Closes RM-6773

See merge request records-management/records-management!1166
2019-05-02 09:16:25 +01:00
Ross Gale
6fa7d75f0a Record only merge for release 2019-04-30 14:43:56 +01:00
Ross Gale
474edcca66 Creating hotfix branch 2019-04-30 14:39:47 +01:00
alfresco-build
ff84a1ae37 [maven-release-plugin] prepare for next development iteration 2019-04-30 11:32:13 +01:00
alfresco-build
f07dd878bf [maven-release-plugin] prepare release V3.0.1 2019-04-30 11:32:08 +01:00
cagache
d396c87e29 split test class in 2 2019-04-25 16:21:01 +03:00
Ross Gale
943345ab78 RM-6834 adding fix for system edited records not being returned from search 2019-04-25 14:10:12 +01:00
cagache
86128a66b3 RM-6796 Added automated tests for Declare and file to a record folder functionality 2019-04-25 15:05:18 +03:00
Rodica Sutu
905a8996b5 Fix java docs for rm community repo:
update/remove/add  method parameters as @param in doc comments
substitute element < with &lt;
substitute element > with &gt;
substitute element & with  &amp;
2019-04-25 09:32:00 +03:00
Sara Aspery
2c30614e8c RM-6792 Optional Record Locn 2019-04-24 11:42:42 +01:00
cagache
e8725860eb transform UserPermissions in enum; add helper methods to create users with rm role, permissions or clearance 2019-04-23 12:15:38 +03:00
cagache
a54a80f6a6 transform UserPermissions in enum; add helper methods to create users with rm role, permissions or clearance 2019-04-23 08:23:43 +03:00
Rodica Sutu
78ed0e4404 Record only merge of ACS 6.0.1 changes. 2019-04-22 15:52:50 +03:00
Rodica Sutu
0710c81b53 Merge branch 'feature/RM-6825_IncreaseTravisTimeout' into 'master'
Increase Travis timeout

Closes RM-6825

See merge request records-management/records-management!1162
2019-04-22 11:54:22 +01:00
Claudia Agache
06cb843fac Merge branch 'feature/RM-6821_IntermittentSearchRestApiTests' into 'master'
RM-6821 Try to fix intermittent enterprise search rest api failures by increasing the search time with 30 sec

See merge request records-management/records-management!1154
2019-04-22 08:06:48 +01:00
Rodica Sutu
ba8cd73a10 Increase Travis timeout 2019-04-22 09:24:03 +03:00
Rodica Sutu
c3b4b0cd77 Merge branch 'feature-3.0/RM-6823_UpgradeToACS601' into 'release/V3.0'
RM-6823 "Feature 3.0/ upgradetoacs601"

See merge request records-management/records-management!1160
2019-04-19 15:13:59 +01:00
Rodica Sutu
11d48c0c36 Update to ACS 6.0.1.2 2019-04-19 15:13:59 +01:00
Rodica Sutu
d719f535db Merge branch 'feature/RM-6833_SkipFailBuildOnJavaDocsError' into 'master'
RM-6833

See merge request records-management/records-management!1161
2019-04-19 14:40:52 +01:00
Rodica Sutu
61e50fb10f RM-6833 Fix java docs generation on openJDK 11.0.2 2019-04-19 14:40:52 +01:00
cagache
f6d0b2fd05 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6821_IntermittentSearchRestApiTests 2019-04-19 14:37:28 +03:00
cagache
d68070051d try to search for content ~1.45 min 2019-04-18 16:40:31 +03:00
Ross Gale
ecfb3fdca9 Merge branch 'feature/RM-6825_UpdateTravis' into 'master'
RM-6825 update travis to use openjdk11

Closes RM-6825

See merge request records-management/records-management!1157
2019-04-17 13:21:30 +01:00
Ross Gale
3cb127b620 RM-6825 update travis to use openjdk11 2019-04-17 11:04:26 +01:00
cagache
29a7047db1 try to search for content ~2 min 2019-04-16 14:17:55 +03:00
cagache
94454b1f6c try to search for content ~1.45 min 2019-04-16 10:38:24 +03:00
cagache
f74303fc50 removed afterMethod annotation 2019-04-16 09:16:20 +03:00
cagache
11a193bdbf Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6821_IntermittentSearchRestApiTests 2019-04-16 08:17:37 +03:00
cagache
15b5c167af try to search for content ~1.45 min 2019-04-15 15:42:01 +03:00
cagache
ce60d3e89f Renamed test classes to end with Test or Tests 2019-04-12 14:32:52 +03:00
cagache
72493a9a13 Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge/Fix_ClassNotFoundException_logs 2019-04-12 14:17:40 +03:00
cagache
688628258d try to search for content ~1.30 min 2019-04-12 14:14:59 +03:00
Rodica Sutu
c17fc2ac6f Merge branch 'feature/RM-6804_FixWarningsIllegalReflecticeAccess' into 'master'
RM-6804_FixWarningsIllegalReflecticeAccess

See merge request records-management/records-management!1153
2019-04-12 12:13:21 +01:00
Claudia Agache
e311f8c0ca Merge branch 'feature-3.0/Fix_ClassNotFoundException_logs' into 'release/V3.0'
RM-6822 Renamed test classes to end with Test or Tests to get rid of java.lang.ClassNotFoundException

See merge request records-management/records-management!1152
2019-04-12 09:33:17 +01:00
Rodica Sutu
3d91c28743 Merge branch 'master' of https://git.alfresco.com/records-management/records-management into feature/RM-6804_FixWarningsIllegalReflecticeAccess
# Conflicts:
#	pom.xml
2019-04-12 11:32:10 +03:00
Claudia Agache
99bf4bba4a Merge branch 'feature/RM-6803_JavadocNotGenerated_no' into 'master'
RM-6803 Skip Javadoc execution for not a Java classpath-capable packages

Closes RM-6803

See merge request records-management/records-management!1151
2019-04-12 08:47:23 +01:00
Rodica Sutu
107ae75f35 fix the illegal reflective access operation warning from xstream library 2019-04-12 10:31:23 +03:00
cagache
1bee02b8df try to search for content ~1 min 2019-04-11 17:47:08 +03:00
cagache
ce8522a2c1 refactoring 2019-04-11 17:33:26 +03:00
cagache
2e5ce4c6a2 fix javadoc 2019-04-11 17:10:08 +03:00
cagache
b6daa30fba Added slf4j-log4j12 dependency to automation community rest api project and log4j.properties file because logs didn't work on rest api tests after moving to OpenJdk 11 2019-04-11 17:09:40 +03:00
cagache
6a54f42ea6 Renamed files to end with Test or Tests to get rid of java.lang.ClassNotFoundException 2019-04-10 17:47:48 +03:00
Roxana Lucanu
400a61b7bc Merge branch 'feature/RM-6723_AGS_ACS6.1_compatibility' into 'master'
Resolve RM-6723 "Feature/ ags acs6.1 compatibility"

Closes RM-6723

See merge request records-management/records-management!1148
2019-04-10 15:18:46 +01:00
cagache
aa0a32b676 RM-6803 Skip Javadoc execution for not a Java classpath-capable packages 2019-04-10 15:39:35 +03:00
cagache
c697e37dfe Record only merge of version change. 2019-04-10 13:31:04 +03:00
Rodica Sutu
9cbdb10e6a Merge branch 'merge/RM-6787_VersionWhenClassifyFileWithCopies' into 'master'
Resolve RM-6787 "Merge/ versionwhenclassifyfilewithcopies"

Closes RM-6787

See merge request records-management/records-management!1150
2019-04-10 10:54:41 +01:00
cagache
ab27a2581c Record only merge of version change. 2019-04-10 09:57:12 +03:00
cagache
b4c29ae16d Record only merge of version change. 2019-04-10 09:54:17 +03:00
Rodica Sutu
2d06a30243 Merge remote-tracking branch 'origin/release/V3.0' into merge/RM-6787_VersionWhenClassifyFileWithCopies 2019-04-10 09:04:01 +03:00
Rodica Sutu
a4ec375afd Merge branch 'merge-3.0/RM-6787_VersionWhenClassifyFileWithCopies' into 'release/V3.0'
Resolve RM-6787 "Merge 3.0/ versionwhenclassifyfilewithcopies"

See merge request records-management/records-management!1149
2019-04-09 16:24:43 +01:00
rlucanu
02db9e2d52 RM-6723 review changes 2019-04-09 16:45:22 +03:00
Rodica Sutu
d042925488 Update version to 2.7.2.1-SNAPSHOT 2019-04-09 11:47:20 +03:00
alfresco-build
765c163d02 [maven-release-plugin] prepare for next development iteration 2019-04-09 09:04:42 +01:00
alfresco-build
237cd19f12 [maven-release-plugin] prepare release V2.7.2 2019-04-09 09:04:38 +01:00
Rodica Sutu
bb93c0ad4e Merge remote-tracking branch 'remotes/origin/release/V2.7' into merge-3.0/RM-6787_VersionWhenClassifyFileWithCopies
# Conflicts:
#	rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspect.java
#	rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/rma/aspect/RecordAspectUnitTest.java
#	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/model/AbstractSecureItem.java
#	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/model/clf/aspect/ClassifiedAspect.java
#	rm-enterprise/rm-enterprise-repo/src/main/java/org/alfresco/module/org_alfresco_module_rm/model/secured/aspect/SecuredAspect.java
#	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/clf/aspect/ClassifiedAspectUnitTest.java
#	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/model/secured/aspect/SecuredAspectUnitTest.java
#	rm-enterprise/rm-enterprise-repo/src/unit-test/java/org/alfresco/module/org_alfresco_module_rm/securitymarks/SecurityMarkingServiceImplUnitTest.java
2019-04-09 10:51:44 +03:00
rlucanu
166273ff0a RM-6723 code review changes 2019-04-09 09:55:43 +03:00
Ross Gale
c2a216f009 Merge branch 'feature-2.7/RM-6787_ReduceBinDuplication_V3' into 'release/V2.7'
Version change fix

See merge request records-management/records-management!1147
2019-04-08 17:34:59 +01:00
rlucanu
aa04bbba90 Merge remote-tracking branch 'origin/master' into feature/RM-6723_AGS_ACS6.1_compatibility 2019-04-08 14:39:48 +03:00
cagache
9384a4e5aa Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge/MergeTestChangesFromV2.7 2019-04-08 09:47:19 +03:00
rlucanu
d25c8762ca RM-6723 fixing tests 2019-04-07 23:11:10 +03:00
Ross Gale
61802a8fb9 Merge branch 'feature-2.7/RM-6787_ReduceBinDuplication_V3' of git.alfresco.com:records-management/records-management into feature-2.7/RM-6787_ReduceBinDuplication_V3 2019-04-05 15:52:03 +01:00
Ross Gale
c551042eca RM-6787 adding fix for renditons 2019-04-05 15:50:33 +01:00
rlucanu
a8c7e8540e RM-6723 Added variables for versions 2019-04-05 16:07:53 +03:00
cagache
f4ecf2a125 Merge remote-tracking branch 'remotes/origin/release/V2.7' into 'merge-3.0/MergeTestChangesFromV2.7' 2019-04-05 15:07:50 +03:00
rlucanu
5c2c54a4cd Merge remote-tracking branch 'origin/master' into feature/RM-6723_AGS_ACS6.1_compatibility 2019-04-05 14:47:27 +03:00
rlucanu
3ab28bb2c2 RM-6723 Added ActiveMQ 2019-04-05 14:44:30 +03:00
cagache
c4cf0ff8cb Revert "Revert "Merge remote-tracking branch 'remotes/origin/feature-2.7/RM-6787_ReduceBinDuplication_V3' into feature-2.7/RM-6787_VersionChangeTests_no""
This reverts commit eb9071fb73.
2019-04-05 13:08:38 +03:00
cagache
eb9071fb73 Revert "Merge remote-tracking branch 'remotes/origin/feature-2.7/RM-6787_ReduceBinDuplication_V3' into feature-2.7/RM-6787_VersionChangeTests_no"
This reverts commit b5d1ae792eae2bd5adf4b1211011ace1046d40b7, reversing
changes made to d5dfbe7194c9e421b52e08032d192c089191e384.
2019-04-05 12:04:27 +03:00
Claudia Agache
a68fccd169 Merge branch 'feature/RM-6790_OpenJDK11Compatibility' into 'master'
RM-6790 Make RM automation project compatible with OpenJdk 11

Closes RM-6722

See merge request records-management/records-management!1140
2019-04-03 09:44:57 +01:00
Rodica Sutu
84699c994d Merge branch 'feature/RM-6722_OpenJDK11Compatibility' into 'feature/RM-6790_OpenJDK11Compatibility'
Resolve RM-6722 "Feature/ openjdk11compatibility"

See merge request records-management/records-management!1141
2019-04-03 09:34:33 +01:00
Ross Gale
9baac01d03 RM-6787 updating copy and add behaviors for other aspects to use duplication utility class 2019-04-02 11:47:29 +01:00
Rodica Sutu
d306574122 version updates for the plugins used for OpenJDK 11 2019-04-02 12:43:16 +03:00
Rodica Sutu
f77dc61b89 tidy up 2019-04-02 12:41:22 +03:00
rlucanu
190f859464 Merge branch 'feature/RM-6722_OpenJDK11Compatibility' into feature/RM-6723_AGS_ACS6.1_compatibility 2019-04-02 12:21:14 +03:00
Ross Gale
ed8f24865c RM-6787 adding fix for version number increasing and bin duplicating more than needed 2019-04-01 17:54:23 +01:00
Rodica Sutu
9d1c3770c9 fix getResourceAsStream() for OpenJdk11 2019-04-01 11:11:43 +03:00
rlucanu
3ac143c283 RM-6723 removed unwanted string 2019-03-29 12:06:01 +02:00
Rodica Sutu
abfc1fc999 update the maven java doc plugin to fix the Error fetching link: .../target/apidocs/package-list.
add the fabric8.docker.version to fix the warning "build.plugins.plugin.version' for io.fabric8:docker-maven-plugin is missing."
2019-03-29 10:14:03 +02:00
rlucanu
8df3dbb151 RM-6723 changes to be compatible with ACS6.1 2019-03-29 09:24:40 +02:00
Rodica Sutu
0a72cf0c32 update maven enforce plugin 2019-03-28 17:53:00 +02:00
Rodica Sutu
60a7f3282d update the versions for surefire and failsafe plugins and add an additional argument --illegal-access=permit to allow all reflection access for third party libraries: 2019-03-28 17:33:37 +02:00
Rodica Sutu
95249c3c24 Merge remote-tracking branch 'remotes/origin/feature/RM-6790_OpenJDK11Compatibility' into feature/RM-6722_OpenJDKCOmpatibility 2019-03-28 11:32:05 +02:00
Rodica Sutu
5afd385009 update the maven.enforcer.plugin 2019-03-28 11:19:32 +02:00
Rodica Sutu
2b6dd1861c change back alfresco-maven-plugin
comment out thejava version from the maven-enforcer-plugin
2019-03-28 09:48:45 +02:00
Rodica Sutu
7c27ac4782 fix compilation error 2019-03-28 09:44:43 +02:00
cagache
b860dd25c7 changed formatter used in tests because DateTimeFormatter.ISO_INSTANT outputs 9 nanoseconds and POST request to http://localhost:8080/alfresco/service/api/rma/actions/ExecutionQueue returns 500 2019-03-27 13:19:09 +02:00
cagache
076910017e Revert "call super.checkServerHealth"
This reverts commit 5b151008
2019-03-26 16:19:15 +02:00
cagache
5b15100839 call super.checkServerHealth 2019-03-26 15:35:05 +02:00
Rodica Sutu
c9ae6b8d91 Merge remote-tracking branch 'remotes/origin/feature/RM-6790_OpenJDK11Compatibility' into feature/RM-6722_OpenJDKCOmpatibility 2019-03-26 13:51:40 +02:00
Rodica Sutu
cb76ebed00 update the maven javadoc, maven war and alfresco-maven plugin to be compatible with OpenJDK 11
add javax libraries
2019-03-26 13:50:09 +02:00
cagache
5e6555db50 RM-6790 Make RM automation module compatible with OpenJDK 11 2019-03-26 10:39:57 +02:00
Ross Gale
3314a60b44 Merge branch 'merge/RM-6788_DeclareArchivedContent' into 'master'
Resolve RM-6788 "Merge/ declarearchivedcontent"

Closes RM-6788

See merge request records-management/records-management!1137
2019-03-22 13:52:17 +00:00
Ross Gale
47ecd4eb64 Merge branch 'release/V3.0' into merge/RM-6788_DeclareArchivedContent 2019-03-18 13:11:36 +00:00
Ross Gale
5b3666f6e1 Merge branch 'feature-3.0.1/RM-6788_ArchiveClassifyDeclareFix' into 'release/V3.0'
RM-6788 adding change to 3.0.1 branch

See merge request records-management/records-management!1133
2019-03-18 13:07:58 +00:00
cagache
7f2c73174a Merge branch 'release/V3.0' into merge/RM-6786_FileCantBeDeclaredAsRecord 2019-03-15 15:31:41 +02:00
Rodica Sutu
e7d32b93c1 Merge branch 'merge/RM-6785_JacksonLibraryUpdate' into 'master'
RM-6785 Update Jackson Library on master

Closes RM-6785

See merge request records-management/records-management!1136
2019-03-15 13:23:26 +00:00
cagache
7bce79e772 Merge remote-tracking branch 'remotes/origin/release/V2.7' into merge-3.0/RM-6786_FileCan'tBeDeclaredAsRecord 2019-03-15 10:00:48 +02:00
Claudia Agache
2a0c0dd82c Merge branch 'feature-2.7/RM-6786_DeclareFileWithRecVersionAsRecord_test_no' into 'release/V2.7'
RM-6786 Declare file as record when file already has version declared as record

See merge request records-management/records-management!1134
2019-03-15 07:06:55 +00:00
Roxana Lucanu
2193a612bf Merge branch 'feature-2.7/RM-6786_FileCan'tBeDeclaredAsRecord' into 'release/V2.7'
RM-6786 Added check for records

See merge request records-management/records-management!1135
2019-03-15 07:03:50 +00:00
Rodica Sutu
53d0fb1cbd Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge/RM-6785_JacksonLibraryUpdate 2019-03-15 09:00:51 +02:00
cagache
a1e0391042 Merge remote-tracking branch 'remotes/origin/feature-2.7/RM-6786_FileCan'tBeDeclaredAsRecord' into feature-2.7/RM-6786_DeclareFileWithRecVersionAsRecord_test_no 2019-03-14 16:34:48 +02:00
rlucanu
2351eafd65 RM-6786 another fix 2019-03-14 16:24:50 +02:00
cagache
644b89b7f1 Merge remote-tracking branch 'remotes/origin/feature-2.7/RM-6786_FileCan'tBeDeclaredAsRecord' into feature-2.7/RM-6786_DeclareFileWithRecVersionAsRecord_test_no 2019-03-14 09:55:10 +02:00
rlucanu
1b9d4306c8 RM-6786 Added check for records 2019-03-14 09:46:29 +02:00
cagache
497d16d806 code review comments 2019-03-14 09:19:23 +02:00
cagache
0a29bf0201 added cleanup method 2019-03-13 15:54:15 +02:00
Ross Gale
8bf3cdf913 RM-6788 adding change to 3.0.1 branch 2019-03-13 12:04:10 +00:00
cagache
cd1a861f4e RM-6786 Create test to check that a file that has a record version can be declared as record 2019-03-13 12:23:25 +02:00
Rodica Sutu
8fd19d1da2 Merge branch 'feature-3.0/RM_UpdateJacksonLibrary' into 'release/V3.0'
Feature 3.0/ RM-6785 update jackson library

See merge request records-management/records-management!1131
2019-03-12 09:02:47 +00:00
Rodica Sutu
8a72644dec Update Jackson version library 2019-03-07 13:19:28 +02:00
Ross Gale
dd606fd941 Merge branch 'feature/PR-7_wossabi' into 'master'
Resolve PR-7 "Feature/ wossabi"

Closes PR-7

See merge request records-management/records-management!1130
2019-03-01 14:15:06 +00:00
GitHub
901ed61933 Update CONTRIBUTING.md
Adding in details of issues tab

Mirrored from community commit ba9468a98bb56e781144fc95cf03e8bdc3aa814a
2019-02-26 09:11:29 +00:00
GitHub
c40c426797 Update CONTRIBUTING.md
removing reference to ALF project

Mirrored from community commit 2b62b5d592de5f86c118e661ac91c5fe91d117fa
2019-02-26 09:05:55 +00:00
cagache
81cf904d33 Record only merge of version change. 2019-02-26 09:27:49 +02:00
cagache
e1f8197fb7 Record only merge of version change. 2019-02-26 09:19:16 +02:00
Rodica Sutu
5141e97129 Merge branch 'merge/MNT_20145_RM_6758_ChangesFrom2_6' into 'master'
Merge/mnt 20145 rm 6758 changes from2 6

See merge request records-management/records-management!1127
2019-02-26 07:07:22 +00:00
Rodica Sutu
c6a45874fb Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge/MNT_20145_RM_6758_ChangesFrom2_6 2019-02-25 23:31:20 +02:00
Rodica Sutu
08a13d4847 Merge branch 'merge-3.0/MNT_20145_RM_6758_ChangesFrom2_6' into 'release/V3.0'
Merge 3.0/mnt 20145 rm 6758 changes from2 6

See merge request records-management/records-management!1126
2019-02-25 21:29:18 +00:00
cagache
918719be0c Record only merge of version change. 2019-02-25 16:29:44 +02:00
cagache
b62801534d Record only merge of version change. 2019-02-25 16:19:49 +02:00
cagache
c241b5899a Update version to 2.6.2.1-SNAPSHOT 2019-02-25 16:07:47 +02:00
Rodica Sutu
c96f9ae280 Merge remote-tracking branch 'remotes/origin/release/V2.7' into merge-3.0/MNT_20145_RM_6758_ChangesFrom2_6 2019-02-25 16:03:08 +02:00
Rodica Sutu
2f943394fd Merge branch 'merge-2.7/MNT_20145_RM_6758_ChangesFrom2_6' into 'release/V2.7'
Merge 2.7/mnt 20145 rm 6758 changes from2 6

See merge request records-management/records-management!1125
2019-02-25 13:59:39 +00:00
alfresco-build
9fdc1588cf [maven-release-plugin] prepare for next development iteration 2019-02-25 13:44:27 +00:00
alfresco-build
201807cff5 [maven-release-plugin] prepare release V2.6.2 2019-02-25 13:44:23 +00:00
Rodica Sutu
cc3f72cfaf Merge remote-tracking branch 'remotes/origin/release/V2.6' into merge-2.7/MNT_20145_RM_6758_ChangesFrom2_6 2019-02-25 09:19:23 +02:00
Rodica Sutu
d6bfd9b5c7 Merge branch 'feature-2.6/MNT-20145_DeleteRecordsClassifyFileWhenHavingCopies' into 'release/V2.6'
MNT-20145

See merge request records-management/records-management!1119
2019-02-19 13:50:25 +00:00
Rodica Sutu
a632153027 Merge branch 'feature-2.6/MNT-20145_DeleteRecordsClassifyFileWhenHavingCopies' of https://git.alfresco.com/records-management/records-management into feature-2.6/MNT-20145_DeleteRecordsClassifyFileWhenHavingCopies 2019-02-19 12:15:51 +02:00
Rodica Sutu
7ac49b0ba9 Merge branch 'release/V2.6' of https://git.alfresco.com/records-management/records-management into feature-2.6/MNT-20145_DeleteRecordsClassifyFileWhenHavingCopies 2019-02-19 12:06:34 +02:00
Claudia Agache
1609edc47b Merge branch 'feature-2.6/DuplicateBinForNodesWithCopies' into 'release/V2.6'
MNT-20145 Duplicate bin for nodes with copies

See merge request records-management/records-management!1123
2019-02-19 08:12:05 +00:00
cagache
fb02ac0afa addressed code review comments 2019-02-19 09:37:36 +02:00
cagache
db47a2f6f2 addressed code review comments 2019-02-18 17:08:05 +02:00
cagache
a5629acc2a added unit tests 2019-02-18 15:16:48 +02:00
cagache
ab762cf8f5 addressed code review comments 2019-02-18 10:57:16 +02:00
cagache
b6d6094ebe added javadoc and removed unused imports 2019-02-15 17:11:04 +02:00
cagache
54010f6ab9 MNT-20145 Duplicate the content url when declaring node as record, version as record, classifying or securing if the node has copies or it is a copy 2019-02-15 16:41:18 +02:00
cagache
01f7bc013d fixed failing tests 2019-02-14 16:22:57 +02:00
cagache
3c47771450 added behaviour to duplicate the bin before declaring a version record 2019-02-14 12:55:10 +02:00
cagache
5b477a7b64 added IT for delete classified content with copies 2019-02-13 16:00:05 +02:00
cagache
552a4afb1b code review changes 2019-02-12 12:25:10 +02:00
Rodica Sutu
ee8889fe33 add tests to check the content bin is available for:
- the copy when the original file is destroyed
 - file when having a record version that gets deleted
2019-02-12 10:49:55 +02:00
cagache
a5dc916a7e MNT-20145 Don't delete the content url if the file has copies or it is a copy 2019-02-07 17:54:46 +02:00
Rodica Sutu
cccd38c086 java docs updates 2019-02-07 09:36:18 +02:00
Rodica Sutu
e19bd0ca1f tests to cover cases when deleting records or classified files when the files have copies 2019-02-06 17:08:51 +02:00
Rodica Sutu
3ee27eb72a Record only merge of version change. 2019-01-25 12:53:16 +02:00
Rodica Sutu
25cadaf086 Record only merge of version change. 2019-01-21 09:18:49 +02:00
Rodica Sutu
35a4f19a44 Record only merge of version change. 2019-01-16 17:29:49 +02:00
Rodica Sutu
00f66a34db Record only merge of version change. 2019-01-16 16:59:21 +02:00
Rodica Sutu
b03837b751 Merge branch 'merge-2.5/MNT_20191_RM_export_tool' into 'release/V2.5'
Merge 2.5/mnt 20191 rm export tool

See merge request records-management/records-management!1114
2019-01-16 14:48:01 +00:00
Rodica Sutu
caa35587e0 Merge branch 'release/V2.7' of https://git.alfresco.com/records-management/records-management into release/V2.7 2019-01-16 11:44:49 +02:00
Rodica Sutu
6ea2103c72 Merge remote-tracking branch 'remotes/origin/release/V2.5.3.x' into merge-2.5/MNT_20191_RM_export_tool 2019-01-16 11:41:47 +02:00
alfresco-build
f630a56e00 [maven-release-plugin] prepare for next development iteration 2019-01-16 08:24:53 +00:00
alfresco-build
0df6569681 [maven-release-plugin] prepare release V2.5.3.1 2019-01-16 08:24:49 +00:00
Sara Aspery
c9d5d2bf93 Merge branch 'hotfix-2.5/MNT-20191_RM_export_tool' into 'release/V2.5.3.x'
MNT-20191 "Hotfix 2.5/ rm export tool"

See merge request records-management/records-management!1113
2019-01-14 15:26:57 +00:00
Ross Gale
ceaa1ca14a RM-6702 Updating licence headers 2019-01-14 10:02:48 +02:00
Ross Gale
77d73283a1 Merge branch 'merge/RM-6702_LicenceUpdate' into 'master'
Resolve RM-6702 "Merge/ licenceupdate"

Closes RM-6702

See merge request records-management/records-management!1110
2019-01-04 15:25:54 +00:00
Ross Gale
c68c814513 RM-6702 updating headers to 2019 2019-01-04 15:25:11 +00:00
Ross Gale
2898fbb8a4 Record only merge of header update 2019-01-04 15:22:03 +00:00
Ross Gale
d1630f6337 Merge branch 'merge-3.0/RM-6702_LicenceUpdate' into 'release/V3.0'
Resolve RM-6702 "Merge 3.0/ licenceupdate"

See merge request records-management/records-management!1109
2019-01-04 13:21:19 +00:00
Ross Gale
44cbc77aee RM-6702 updating headers to 2019 2019-01-04 12:25:39 +00:00
Ross Gale
29b4cb86bb Record only merge of header update 2019-01-04 12:21:27 +00:00
Ross Gale
fbe7f6aa4c Merge branch 'merge-2.7/RM-6702_LicenceUpdate' into 'release/V2.7'
Resolve RM-6702 "Merge 2.7/ licenceupdate"

See merge request records-management/records-management!1108
2019-01-04 12:03:49 +00:00
Ross Gale
a0575dbc8a RM-6702 updating headers to 2019 2019-01-04 10:11:45 +00:00
Ross Gale
7fb171c772 Record only merge of header update 2019-01-04 09:39:14 +00:00
Ross Gale
c121c73540 Merge branch 'merge-2.6/RM-6702_LicenceUpdate' into 'release/V2.6'
Resolve RM-6702 "Merge 2.6/ licenceupdate"

See merge request records-management/records-management!1107
2019-01-04 08:42:47 +00:00
Ross Gale
cabc902203 RM-6702 updating headers to 2019 2019-01-03 14:30:44 +00:00
Ross Gale
761df5cd5e Record only merge of header update 2019-01-03 14:20:58 +00:00
Ross Gale
68caa1cff3 Merge branch 'merge-2.5/RM-6702_HeaderUpdate' into 'release/V2.5'
RM-6702 Updating licence headers

See merge request records-management/records-management!1106
2019-01-03 11:13:21 +00:00
Ross Gale
bc6b9741ad RM-6702 Updating licence headers 2019-01-03 09:23:49 +00:00
Rodica Sutu
3088f0a4a4 Merge branch 'feature/RM_6591_Update_RuleDefinitions_ru' into 'master'
RM-6591 Update RuleDefinitions action type

See merge request records-management/records-management!1105
2018-10-25 12:42:36 +01:00
Rodica Sutu
a057f799cf Merge branch 'feature/RM_6591_Update_RuleDefinitions_ru' of https://git.alfresco.com/records-management/records-management into feature/RM_6591_Update_RuleDefinitions_ru 2018-10-25 12:46:50 +03:00
Rodica Sutu
ff0a24a577 Update the actions type from RuleDefinition class in order to be able to use it with other non-rm actions 2018-10-25 12:44:21 +03:00
Rodica Sutu
009ac8cf1c Update the actions type from RuleDefinition class in order to be able to use it with other non-rm actions 2018-10-25 11:25:19 +03:00
cagache
b8be1e375e Merge remote-tracking branch 'remotes/origin/release/V3.0' into merge/Merge_MNT-19967_From2.6 2018-10-04 08:39:56 +03:00
cagache
047bec40ad Merge remote-tracking branch 'remotes/origin/release/V2.7' into merge-3.0/Merge_MNT-19967_From2.6 2018-10-03 10:10:12 +03:00
cagache
6e54380abf Merge remote-tracking branch 'remotes/origin/release/V2.6' into merge-2.7/Merge_MNT-19967_From2.6
# Conflicts:
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/RecordCategoriesAPI.java
#	rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/service/DispositionScheduleService.java
2018-10-02 14:51:13 +03:00
Claudia Agache
f5f713f62b Merge branch 'feature-2.6/MNT-19967_RetentionScheduleInheritance' into 'release/V2.6'
MNT-19967 Fix retention schedule inheritance on record level

See merge request records-management/records-management!1102
2018-10-02 06:36:55 +01:00
cagache
b35d5e363a code review changes 2018-10-01 18:34:14 +03:00
cagache
c0fb76539b Merge remote-tracking branch 'remotes/origin/release/V3.0' 2018-10-01 18:03:18 +03:00
cagache
00cbfd1689 Merge remote-tracking branch 'remotes/origin/release/V3.0.0.x' into merge-3.0/Merge3.0.0.xTo3.0_no 2018-10-01 16:42:26 +03:00
cagache
06f46af489 code review changes 2018-10-01 16:38:19 +03:00
Claudia Agache
f1f4b2d6ad Merge branch 'hotfix-3.0/RM-6575_PushCommunityImageWithSpecificTag_no' into 'release/V3.0.0.x'
RM-6575 Push community images with specific tags instead of latest on quay and docker hub

See merge request records-management/records-management!1103
2018-10-01 12:03:01 +01:00
cagache
d5958eaf7b cherry pick changes from V2.7 branch 2018-10-01 12:22:58 +03:00
cagache
a69d1ddaa3 reverted changes because they are already on the V2.7 branch and can be picked from there 2018-10-01 11:57:11 +03:00
cagache
3b5cd3f9ba applied code review changes 2018-10-01 11:41:40 +03:00
cagache
6d2e522cf7 RM-6575 Push community images with specific tags instead of latest on quay and docker hub 2018-10-01 10:39:42 +03:00
cagache
b9e6b79dd2 Added 3 more tests to check Retention schedule inheritance for records and record folders 2018-09-28 11:40:32 +03:00
cagache
31a69c2085 Corrected variable name 2018-09-28 09:29:07 +03:00
cagache
c5cffb8cda Automated test for disposition schedule inheritance 2018-09-28 08:23:11 +03:00
cagache
47d3f91abc MNT-19967 Get record disposition schedule from first parent category which has one 2018-09-27 12:40:04 +03:00
Rodica Sutu
7fbeccadbe Merge branch 'release/V2.7' of https://git.alfresco.com/records-management/records-management into release/V2.7 2018-09-10 12:50:01 +03:00
cagache
772ea923ce Record only merge of release/V3.0 into master 2018-09-06 10:03:08 +03:00
cagache
4f3a616c69 Record only merge of release/V2.7 into release/V3.0 2018-09-06 10:01:38 +03:00
cagache
425ed3bd6a Record only merge of release/V2.7.1.x into release/V2.7 2018-09-06 09:59:47 +03:00
cagache
c46fe145a1 Update version to 2.7.1.1-SNAPSHOT 2018-09-06 09:53:23 +03:00
alfresco-build
d78bf82b32 [maven-release-plugin] prepare for next development iteration 2018-09-06 07:19:43 +01:00
alfresco-build
4ae51587f2 [maven-release-plugin] prepare release V2.7.1 2018-09-06 07:19:39 +01:00
cagache
873470ec26 Merge changes from 2.6.1 release to master 2018-09-03 09:54:56 +03:00
cagache
a2a88cbede tag should be HEAD until next release 2018-08-31 17:28:57 +03:00
cagache
72918feef6 Merge changes from 2.6.1 release to 3.0 2018-08-31 17:27:59 +03:00
cagache
52865e959f Record only merge of version change. 2018-08-31 09:44:24 +03:00
cagache
3725b5a03f Record only merge of version change. 2018-08-31 09:34:01 +03:00
cagache
fad31498c6 Update version to 2.6.1.1-SNAPSHOT 2018-08-31 08:58:41 +03:00
Rodica Sutu
495968c49a Merge branch 'release/V2.6' into merge-2-7/MNT-19080 2018-08-30 17:38:19 +03:00
alfresco-build
4798cf7ecf [maven-release-plugin] prepare for next development iteration 2018-08-30 09:59:18 +01:00
alfresco-build
3eed3fb63e [maven-release-plugin] prepare release V2.6.1 2018-08-30 09:59:13 +01:00
Rodica Sutu
d309b381e0 Merge branch 'feature-2.6/RM_6519_UpdateModuleREPOMinVersion' into 'release/V2.6'
RM-6519 Update Module REPO Min Version

See merge request records-management/records-management!1100
2018-08-29 21:13:04 +01:00
Rodica Sutu
61d151b26b update the repo min version to 5.2.4 as none of the ACS values below this should be supported with RM 2.6.1 2018-08-29 17:54:06 +03:00
Rodica Sutu
df19e3749e Merge origin/release/V2.6' into merge-2-7/MNT-19080_RM-6504_MergeFrom2.6
* remotes/origin/release/V2.6:
  fixed tests because exception changed
  use fileFolderService instead of contentService
  MNT-18806 create a new content URL for the copy only if it has content
  MNT-18806 create a new content bin for the copy on copy complete behavior
  MNT-18806 Add REST test for deleting copy of record.
  MNT-18806 Remove some raw Exceptions from REST test framework.
2018-08-27 20:01:26 +03:00
Claudia Agache
2aa1723b18 Merge branch 'feature-2.6/MNT-18806_DeleteCopy_fp' into 'release/V2.6'
MNT-18806 Create a new content URL for the copy

See merge request records-management/records-management!1099
2018-08-24 19:54:37 +01:00
cagache
ea40d03c80 use fileFolderService instead of contentService 2018-08-24 17:26:25 +03:00
cagache
d764fef7a5 MNT-18806 create a new content URL for the copy only if it has content 2018-08-24 16:25:20 +03:00
cagache
6691a4966c Merge remote-tracking branch 'remotes/origin/release/V2.6' into feature-2.6/MNT-18806_DeleteCopy_fp 2018-08-24 13:33:59 +03:00
cagache
770ee1047b MNT-18806 create a new content bin for the copy on copy complete behavior 2018-08-24 13:25:45 +03:00
Rodica Sutu
caa79346e6 Merge remote-tracking branch 'remotes/origin/release/V2.6' into merge-2-7/MNT-19080 2018-08-23 14:48:06 +03:00
Rashmi Itagi
f8558c92ac Merge branch 'feature/RM-6269_Rebranding_artifactIds' into 'master'
RM-6269 Rebranding

See merge request records-management/records-management!1094
2018-08-23 10:26:26 +01:00
Claudia Agache
3eb7f62f27 Merge branch 'feature-2.6/RM-6504_ChangeACSVersion' into 'release/V2.6'
RM-6504 Changed ACS version

See merge request records-management/records-management!1098
2018-08-21 14:17:20 +01:00
Rodica Sutu
2bc487a437 Merge branch 'feature-2.6/MNT-19080_RMSearchParameters_remove_converter' into 'release/V2.6'
MNT-19080_RMSearchParameters deactivates audit of searches

See merge request records-management/records-management!1097
2018-08-21 12:54:57 +01:00
cagache
0fa2d7d420 added aspectNames and nodeType properties 2018-08-21 14:23:38 +03:00
cagache
673bf03972 changed profile ids 2018-08-21 10:59:23 +03:00
cagache
c570793fa8 Merged with master 2018-08-21 10:30:50 +03:00
Rodica Sutu
75e3f55c3e change the amps name installed for the apply-rm-community profile as there is no compatible version of ACS 5.2.N community with RM 2.6.1 community 2018-08-21 10:23:12 +03:00
Rodica Sutu
e7aca2a772 change the amps copied when using the apply-rm-community profile as no ACS 5.2.N community version is compatible with the RM 2.6.1 community 2018-08-21 09:43:15 +03:00
cagache
d16884a692 Revert "RM-6269 Changed the module folder names on enterprise"
This reverts commit 6c52e58
2018-08-20 20:13:03 +03:00
Rashmi Itagi
6c52e5891d RM-6269 Changed the module folder names on enterprise 2018-08-20 16:38:11 +01:00
Tom Page
d395a3cd03 MNT-18806 Add REST test for deleting copy of record. 2018-08-20 13:57:06 +01:00
Rashmi Itagi
b83b3e7631 RM-6269 Changed the rm to governance-services in the names of the amp files in Dockerfiles 2018-08-20 11:55:03 +01:00
Rodica Sutu
f269e7a209 update the alfresco api explorer to the latest version of 5.2.N 2018-08-20 12:22:42 +03:00
Rodica Sutu
df280e176d update the ElementInfo() according to REPO-2983 2018-08-20 12:21:44 +03:00
Rodica Sutu
81e81451fe update the community version dependencies to 5.2.4 as the changes for renaming the bean simpleMappingExceptionResolver into simpleMappingExceptionResolverParent is not in any 5.2 community version 2018-08-20 12:20:30 +03:00
Tom Page
5a6991a6bc MNT-18806 Remove some raw Exceptions from REST test framework. 2018-08-20 08:36:41 +01:00
Rodica Sutu
2a330bdf68 rename the extended bean simpleMappingExceptionResolverParent (core change)
(cherry picked from commit 1dd650d5eb)
2018-08-17 10:42:54 +03:00
Rodica Sutu
b7f2afb0de remove custom record search converter 2018-08-16 19:11:57 +03:00
Tom Page
168f24d140 Record-only merge release/V3.0 into master. 2018-07-30 16:21:15 +01:00
Tom Page
785fd5f22e Record-only merge release/V3.0.0.x into release/V3.0. 2018-07-30 16:20:03 +01:00
Tom Page
3f175218cc Update version to 3.0.0.1-SNAPSHOT. 2018-07-30 16:18:56 +01:00
Tom Page
7358fc5d3f Update version to 3.0.1-SNAPSHOT. 2018-07-30 16:16:29 +01:00
alfresco-build
f51fac42c4 [maven-release-plugin] prepare for next development iteration 2018-07-30 14:01:41 +01:00
alfresco-build
cdb85d5d34 [maven-release-plugin] prepare release V3.0.0 2018-07-30 14:01:38 +01:00
alfresco-build
41800697f6 [maven-release-plugin] prepare for next development iteration 2018-07-30 08:23:37 +01:00
alfresco-build
c409c7b9a2 [maven-release-plugin] prepare release V3.0.a 2018-07-30 08:23:35 +01:00
Rodica Sutu
2179b8d5a0 Merge branch 'feature/RM-6355_OrcaFix' into 'master'
feature/RM-6355_OrcaFix

See merge request records-management/records-management!1095
2018-07-27 15:21:02 +01:00
Sara Aspery
8fba7aa3f9 RM-6355 Fix null pointer
(cherry picked from commit d22fc1f6ad7d0761e47931056328570e17a46f54)
2018-07-27 17:13:45 +03:00
Rodica Sutu
4157b03565 Merge branch 'feature/RM-6355_OrcaFix' into 'master'
RM-6355 Orca: Won't start with 2.7 installed.

See merge request records-management/records-management!1092
2018-07-27 12:49:41 +01:00
Tom Page
e295a78d01 RM-6428 Fix repo for newly created tag. 2018-07-27 09:58:39 +01:00
Tom Page
a886717aaf RM-6428 Add debug logging. 2018-07-27 09:58:39 +01:00
Tom Page
e4f81f4a6c RM-6428 Fix typo in tag name.
The digest is meant to be appended with a minus, rather than an underscore.
2018-07-27 09:58:39 +01:00
Tom Page
016658cbb3 RM-6428 Handle multiple source images and multiple destinations.
Also update the scripts to be executable.
2018-07-27 09:58:39 +01:00
Tom Page
d03e2e2b23 RM-6428 Add script to handle tagging with the image digest. 2018-07-27 09:58:39 +01:00
David Webster
e117e16b4e Merge remote-tracking branch 'origin/master' into feature/RM-6269_Rebranding_artifactIds 2018-07-26 16:59:22 +01:00
Rodica Sutu
55a3fb2acd compare the new version of module currently being installed with the one installed
(cherry picked from commit b6562142d1)
2018-07-26 13:00:10 +03:00
Rodica Sutu
b6562142d1 compare the new version of module currently being installed with the one installed 2018-07-26 11:13:26 +03:00
Claudia Agache
c1443c1003 Merge branch 'feature/RM-4287_UpdateModuleProperties_no' into 'master'
RM-4287 Updated modules name and description

See merge request records-management/records-management!1091
2018-07-26 07:33:36 +01:00
cagache
5b40cb4bdc code review changes 2018-07-26 09:26:57 +03:00
cagache
becac80369 RM-4287 Updated modules name and description 2018-07-25 16:50:46 +03:00
cagache
d27fee791a RM-4287 Updated modules name and description 2018-07-25 11:27:08 +03:00
Rashmi Itagi
2ff92641dc RM-6269 attach-rm-jar to attach-alfresco-governance-services-jar 2018-07-24 17:09:07 +01:00
Rashmi Itagi
f8a1697e34 RM-6269 alfresco-ags to alfresco-governance-services and alfresco.rm.artifactId to ags.artifactId 2018-07-24 17:03:45 +01:00
David Webster
ad93872f85 Merge branch 'Xperimental/gs-entity-relationships' into 'master'
Updates to GS entitiy relationships, add packages, flesh out metadeta, esp Disposition

See merge request records-management/records-management!1043
2018-07-12 15:08:39 +01:00
Elena Hardon
abcf1b40be Merge branch 'feature/RM-6427-RenameAGSImages' into 'master'
Renamed docker images in poms and yaml files as it follows:

See merge request records-management/records-management!1080
2018-07-12 08:27:39 +01:00
Elena Hardon
0b6b9c4d2c Renamed docker images in poms and yaml files as it follows:
ags-repo-enterprise -> alfresco-governance-repository-enterprise
ags-share-enterprise -> alfresco-governance-share-enterprise
ags-repo-community -> alfresco-governance-repository-community
ags-share-community -> alfresco-governance-share-community
2018-07-10 17:45:32 +03:00
Elena Hardon
e415278316 Merge branch 'feature/RM-5859_AnyMarksStaging' into 'master'
RM-5859 : Any Marks work

See merge request records-management/records-management!1070
2018-07-10 12:29:59 +01:00
Elena Hardon
663ce63ce0 Merge remote-tracking branch 'origin/feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-10 10:17:39 +03:00
Elena Hardon
96c58b1d16 Removed skip configuration on deploy as no test releases need to be performed 2018-07-10 10:17:24 +03:00
alfresco-build
5b8ce31e25 [maven-release-plugin] prepare for next development iteration 2018-07-10 07:41:10 +01:00
alfresco-build
4a24151f89 [maven-release-plugin] prepare release V3.0.0-TestCoRC6 2018-07-10 07:41:07 +01:00
Elena Hardon
612de6c148 Revert "[maven-release-plugin] prepare release V3.0.0-TestCoRC5"
This reverts commit ce583c5
2018-07-09 18:08:54 +03:00
alfresco-build
ce583c5822 [maven-release-plugin] prepare release V3.0.0-TestCoRC5 2018-07-09 16:01:32 +01:00
alfresco-build
66a6a4bc0a [maven-release-plugin] prepare for next development iteration 2018-07-09 14:45:09 +01:00
alfresco-build
e921c7521b [maven-release-plugin] prepare release V3.0.0-TestCoRC5 2018-07-09 14:45:07 +01:00
alfresco-build
ce06e6dcf8 [maven-release-plugin] prepare for next development iteration 2018-07-09 13:29:54 +01:00
alfresco-build
2557df7a75 [maven-release-plugin] prepare release V3.0.0-TestEnRC5 2018-07-09 13:29:51 +01:00
Elena Hardon
2fcb852d96 Merge remote-tracking branch 'origin/feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-09 14:51:21 +03:00
Elena Hardon
ce3ec87280 Removed duplicated declarations of release profiles, updated readme file and edited the comments from the release profiles in the parent pom 2018-07-09 14:50:55 +03:00
alfresco-build
cabbdee1ec [maven-release-plugin] prepare for next development iteration 2018-07-09 10:13:13 +01:00
alfresco-build
7c853ae363 [maven-release-plugin] prepare release V3.0.0-TestCoRC4 2018-07-09 10:13:10 +01:00
Elena Hardon
cb59a47b73 RM-6377 Removed duplicate images tag from parent pom 2018-07-09 10:59:53 +03:00
Elena Hardon
eb6f3ffdf7 Merge remote-tracking branch 'origin/feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-09 10:49:58 +03:00
Elena Hardon
c120a9d0ab RM-6377 - Removed duplicated tag of images from community-repo module 2018-07-09 10:47:52 +03:00
alfresco-build
f48ae8f07d [maven-release-plugin] prepare for next development iteration 2018-07-06 14:27:56 +01:00
alfresco-build
8f3c186c06 [maven-release-plugin] prepare release V3.0.0-TestEnRC4 2018-07-06 14:27:53 +01:00
alfresco-build
abc7bea4f3 [maven-release-plugin] prepare for next development iteration 2018-07-06 11:02:26 +01:00
alfresco-build
1105cad084 [maven-release-plugin] prepare release V3.0.0-TestEnRC2 2018-07-06 11:02:24 +01:00
Elena Hardon
d32173c949 Rebase 2018-07-06 12:33:49 +03:00
alfresco-build
e116b0cdf4 [maven-release-plugin] prepare release V3.0.0-TestEnRC1 2018-07-06 10:13:25 +01:00
alfresco-build
4fbd338c94 [maven-release-plugin] prepare for next development iteration 2018-07-06 09:21:26 +01:00
alfresco-build
2ed4a70038 [maven-release-plugin] prepare release V3.0.0-TestEnRC1 2018-07-06 09:21:23 +01:00
Elena Hardon
ced1dd5be6 Merge remote-tracking branch 'origin/master' into feature/RM-5859_AnyMarksStaging 2018-07-05 17:33:25 +03:00
Elena Hardon
c0d1531712 RM-6377 Modified poms to have custom releases for enterprise and community 2018-07-05 16:43:31 +03:00
Elena Hardon
c738bd1d92 Merge remote-tracking branch 'origin/master' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-05 16:40:17 +03:00
Elena Hardon
8a22f2dbae Repaired versions after test release 2018-07-05 14:33:55 +03:00
Elena Hardon
9459ad8b95 Merge remote-tracking branch 'origin/feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-05 12:19:17 +03:00
Elena Hardon
151b75a15a RM-6377 Skipping the deployment of the artifacts now for testing purposes 2018-07-05 12:18:47 +03:00
Elena Hardon
d7e2ab46d8 Update pom.xml 2018-07-04 15:34:18 +01:00
alfresco-build
6c77576900 [maven-release-plugin] prepare for next development iteration 2018-07-04 15:28:06 +01:00
alfresco-build
9a6f169ac4 [maven-release-plugin] prepare release V3.0.0-TestRC1 2018-07-04 15:28:03 +01:00
Elena Hardon
09a2ad659e Merge branch 'master' into feature/RM-5859_AnyMarksStaging 2018-07-04 14:30:26 +03:00
Elena Hardon
0617bff6d8 Merge branch 'master' into feature/RM-6377_PublishDockerImagesAsPartOfEnterpriseRelease 2018-07-04 14:24:56 +03:00
Elena Hardon
8ffe17899d RM-6377 Removed image publishing on docker hub from the root pom so that only the community images are be pubished on this registry, while the enterprise images will be published only on quay. 2018-07-04 11:35:34 +03:00
alfresco-build
3caf1ace4f [maven-release-plugin] prepare for next development iteration 2018-07-03 15:40:52 +01:00
alfresco-build
754ab8ba3f [maven-release-plugin] prepare release VAGSCommunity3.0.0_test 2018-07-03 15:40:49 +01:00
Elena Hardon
1d3b9ae4fa Merge remote-tracking branch 'origin/master' into feature/RM-5859_AnyMarksStaging 2018-07-03 15:39:38 +03:00
Claudia Agache
995f10e442 Merge branch 'feature/RM-6399_fixUItests' into 'master'
L2 UI test fixes

See merge request records-management/records-management!1069
2018-07-03 09:49:11 +01:00
Elena Hardon
8fd7b65b35 Merge branch 'master' into feature/RM-5859_AnyMarksStaging 2018-07-03 11:04:48 +03:00
Rodica Sutu
dd1fb57405 Merge branch 'feature/RM-6415_Integrate_GS_API_explorer' into 'master'
RM-6415 add the gs api explorer to the ags repo images

See merge request records-management/records-management!1067
2018-07-03 07:13:09 +01:00
cagache
6df35173c1 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6399_fixUItests 2018-07-02 17:16:20 +03:00
Rodica Sutu
744f88be8e add the gs api explorer to the ags repo images 2018-07-02 13:17:23 +03:00
Elena Hardon
5ca255b7f6 Merge branch 'feature/RM-6404_UpdateReadme_no' into 'master'
Updated Readme file to contain information about how to start RM using docker images

See merge request records-management/records-management!1064
2018-07-02 09:26:31 +01:00
Elena Hardon
7ef7c50596 Update README.md 2018-07-02 09:24:40 +01:00
Elena Hardon
d2789327f0 RM-6404 Added minor changes on the Readme file 2018-07-02 10:41:41 +03:00
Elena Hardon
06f9bea916 Merge remote-tracking branch 'origin/master' into feature/RM-6404_UpdateReadme_no 2018-06-29 16:40:26 +03:00
Elena Hardon
bfbbd10ed0 RM-6404 Updated Readme file after review 2018-06-29 16:37:21 +03:00
Tom Page
e3c06a6a4e Merge master into RM-5859_AnyMarksStaging. 2018-06-29 11:30:14 +01:00
cagache
a909aeb7ce changed #!/bin/bash to #!/usr/bin/env bash 2018-06-29 12:17:10 +03:00
cagache
c94fe3f74e updated scripts because I can't use general scripts to start/stop alfresco from different subdirectories 2018-06-29 11:09:15 +03:00
Claudia Agache
c8bafd9b0b Merge branch 'feature/RM-6399_UpdateEnterpriseBambooPlans' into 'master'
RM-6399 Fix problem with stopping ags-repo container and added script files for docker actions

See merge request records-management/records-management!1061
2018-06-28 15:25:57 +01:00
cagache
6238bdf733 try to fix script to clean given docker images 2018-06-28 17:22:45 +03:00
cagache
51ef6f5521 moved scripts to specific directory 2018-06-28 16:47:02 +03:00
cagache
34fdfc4df3 try to fix script to clean given docker images 2018-06-28 16:42:13 +03:00
cagache
9ecd40b876 try to fix script to clean given docker images 2018-06-28 16:39:53 +03:00
cagache
aaf8080d88 try to fix script to clean given docker images 2018-06-28 16:24:46 +03:00
cagache
9e3114bf1c try to fix script to clean given docker images 2018-06-28 16:22:22 +03:00
cagache
e19ac43c41 try to fix script to clean given docker images 2018-06-28 16:12:06 +03:00
cagache
79b5857d80 try to fix script to clean given docker images 2018-06-28 16:05:46 +03:00
Rodica Sutu
0f87e0c7bb Merge branch 'feature/RM-6410_UpdatesTo6.0_GA' into 'master'
RM-6410 Update ACS dependencies with the versions from 6.0 GA release

See merge request records-management/records-management!1059
2018-06-28 14:04:03 +01:00
cagache
191b7cd021 try to fix script to clean given docker images 2018-06-28 15:53:00 +03:00
cagache
60062849b5 created scripts used to start/stop alfresco 2018-06-28 15:15:11 +03:00
cagache
00764ab587 moved sh files to root 2018-06-28 15:10:11 +03:00
cagache
b809d899f5 updated variable 2018-06-28 14:44:19 +03:00
cagache
90c22c66f5 created scripts used to start/stop alfresco 2018-06-28 14:21:22 +03:00
Rodica Sutu
67155b2495 Update ACS dependencies with the versions from 6.0 GA release 2018-06-28 10:07:02 +03:00
Elena Hardon
401f520fc6 RM-6404 Updated Readme file to contain information about how to build and start the docker images for rm-repo and rm-share 2018-06-27 15:22:27 +03:00
Rodica Sutu
e2a57c151f Merge branch 'feature/RM-6393_Apply_RM_Enterprise_repo' into 'master'
RM-6393_Apply_RM_Enterprise

See merge request records-management/records-management!1055
2018-06-26 07:05:34 +01:00
Rodica Sutu
c957ce332e fix the values set into module properties 2018-06-25 16:04:16 +03:00
Rodica Sutu
a0663b2cf8 temporary solution 2018-06-25 13:50:58 +03:00
Rodica Sutu
3bbff09d83 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6393_Apply_RM_Enterprise_repo 2018-06-22 14:39:58 +03:00
Rodica Sutu
d79b798fb6 temporary fix for module.properties issue 2018-06-22 14:27:32 +03:00
Roxana Lucanu
f9f0069034 Merge branch 'feature/RM-6372_AGSCommunityRepoDockerImage' into 'master'
RM-6372 removed ARG and updated tag for acs image

See merge request records-management/records-management!1053
2018-06-22 11:53:08 +01:00
Roxana Lucanu-Ghetu
ffaf28d64c RM-6372 removed ARG and updated tag for acs 2018-06-22 12:36:01 +03:00
Claudia Agache
c2bae72e0e Merge branch 'feature/RM-6374_ConfigureBambooPlansToUseEnterpriseImages_no' into 'master'
RM-6374 Profiles and dockerfiles updates in order to build docker images in bamboo

See merge request records-management/records-management!1052
2018-06-22 06:46:08 +01:00
cagache
03dab3584a changed execution phase to deploy for internal profile 2018-06-21 17:04:25 +03:00
cagache
8e77c144b9 added verify execution phase to buildDockerImage profile and changed execution phase for master profile 2018-06-21 16:27:21 +03:00
Roxana Lucanu
98845eeef5 Merge branch 'feature/RM-6372_AGSCommunityRepoDockerImage' into 'master'
Produce Docker image for community repo

See merge request records-management/records-management!1050
2018-06-21 12:41:34 +01:00
Roxana Lucanu-Ghetu
1fecb6f981 RM-6372 Code review changes 2018-06-21 13:38:28 +03:00
Rodica Sutu
d28b0d50be Merge branch 'feature/RM-6394_StringWithTime_toLocalDate' into 'master'
RM-6394 date-time string not changed to a simple date

See merge request records-management/records-management!1049
2018-06-21 11:26:25 +01:00
Roxana Lucanu-Ghetu
dfdab3c696 RM-6372 Removed share from Dockerfile and force option 2018-06-21 10:55:31 +03:00
Rodica Sutu
7e81bd4f6e fix the date-time string not changed to a simple date 2018-06-20 17:52:28 +03:00
Roxana Lucanu-Ghetu
d0fed54c0d RM-6372 Removed unwanted properties and image from pom. 2018-06-20 17:36:52 +03:00
Roxana Lucanu-Ghetu
6caf496e56 RM-6372 Profile changes 2018-06-20 17:14:01 +03:00
Roxana Lucanu-Ghetu
b63641df4b Merge 'origin/master' into feature/RM-6372_AGSCommunityRepoDockerImage 2018-06-20 16:29:16 +03:00
Claudia Agache
43ccce2b67 Merge branch 'feature/RM-6138_CreateEnterpriseDockerImages' into 'master'
RM-6138 Create Enterprise Repo and Share Docker Images

See merge request records-management/records-management!1048
2018-06-20 14:23:47 +01:00
Tom Page
aa554366d4 Merge branch 'feature/RM-6391_SkipDockerWithITs_no' into 'master'
RM-6391 Skip the docker steps if skipping the integration tests.

See merge request records-management/records-management!1047
2018-06-20 14:11:28 +01:00
cagache
91a64d6eb8 Applied code review changes 2018-06-20 15:32:17 +03:00
cagache
701705a7ce RM-6138 Create docker images for rm-enterprise-share and rm-enterprise-repo 2018-06-20 12:03:22 +03:00
Roxana Lucanu-Ghetu
9e12237808 RM-6372 Intermediate stuff 2018-06-19 16:37:52 +03:00
Rodica Sutu
b979e58a81 Merge branch 'feature/RM-6386_LocalDateDateTime_de_serialization' into 'master'
RM-6386 LocalDate DateTime deserialisation serialisation of joda DateTime,LocalDate types

See merge request records-management/records-management!1046
2018-06-19 09:23:58 +01:00
Tom Page
ae7c8bef9e RM-6391 Skip the docker steps if skipping the integration tests. 2018-06-19 09:03:12 +01:00
Rodica Sutu
3411800240 revert the change for truncating the date with time 2018-06-19 08:44:10 +03:00
Rodica Sutu
895fca9455 review changes and fix for converting string with time to date using a LocalDateDeserializer 2018-06-18 10:58:48 +03:00
Tom Page
21fffe3b0c Record-only merge release/V2.7.0.x into release/V2.7. 2018-06-15 14:02:25 +01:00
alfresco-build
26bdefcb40 [maven-release-plugin] prepare for next development iteration 2018-06-15 13:14:52 +01:00
Rodica Sutu
9b16443987 java docs updates and fix the deserialisation for the LocalDate from topics 2018-06-15 14:30:33 +03:00
Tom Page
43a0dd6d4c Merge release/V2.7.0.x into release/V2.7. 2018-06-15 11:49:00 +01:00
Tom Page
cd60e37522 Merge release/V2.6 into release/V2.7. 2018-06-15 11:48:36 +01:00
Tom Page
6b5cf5c346 Record-only merge release/V2.5 into release/V2.6. 2018-06-15 11:44:41 +01:00
Tom Page
7100310534 Merge release/V2.6.0.x into release/V2.6. 2018-06-15 11:44:00 +01:00
Tom Page
5f6c135b7f RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:42:51 +01:00
Tom Page
3698f57469 RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:42:48 +01:00
Tom Page
f37086e813 Record-only merge release/V2.5.3.x into release/V2.5. 2018-06-15 11:40:04 +01:00
Tom Page
2a9579275f Record only merge release/V2.5.2.x into release/V2.5. 2018-06-15 11:39:27 +01:00
Tom Page
faa4e86a18 Record-only merge release/V2.5.1.x into release/V2.5. 2018-06-15 11:39:01 +01:00
Tom Page
e004c30dc3 Record-only merge release/V2.5.0.x into release/V2.5. 2018-06-15 11:38:38 +01:00
Tom Page
35d836f9c1 RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:29:58 +01:00
Tom Page
6b3d3e0cc2 RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:29:58 +01:00
Tom Page
0c0ad37f4e RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:29:30 +01:00
Tom Page
1fd4abfcde RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:29:30 +01:00
Tom Page
f8a03c8642 RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:29:04 +01:00
Tom Page
43a92fb7d8 RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:29:04 +01:00
Tom Page
113b3cb201 RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:28:11 +01:00
Tom Page
45578eb582 RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:28:07 +01:00
Rodica Sutu
d2f303fab8 additional changes for RM-6354 2018-06-15 13:11:19 +03:00
Rodica Sutu
5266d1f7ce -fix de/serialization of joda type by:
using of jackson joda date type to deserialize local date
using a custom serializer for joda date types
2018-06-15 13:09:53 +03:00
Tom Page
1ecac9e509 Record only merge release/V2.6 into release/V2.7. 2018-06-15 09:55:58 +01:00
Tom Page
d7e45dca3c Merge release/V2.5 into release/V2.6. 2018-06-15 09:44:45 +01:00
Tom Page
f9ccf26827 Record only merge release/V2.5.4.x into release/V2.5. 2018-06-15 09:43:15 +01:00
Tom Page
b626d48e36 Update version to 2.5.4.1-SNAPSHOT. 2018-06-15 09:42:41 +01:00
alfresco-build
f655bef15f [maven-release-plugin] prepare for next development iteration 2018-06-15 09:08:03 +01:00
alfresco-build
5f77cb92ae [maven-release-plugin] prepare release V2.5.4 2018-06-15 09:08:01 +01:00
alfresco-build
bd44e15c17 [maven-release-plugin] prepare for next development iteration 2018-06-15 08:35:10 +01:00
alfresco-build
b75c7002a4 [maven-release-plugin] prepare release V2.5.4 2018-06-15 08:35:07 +01:00
Tom Page
2e950d0380 Merge remote-tracking branch 'origin/release/V2.5' into HEAD 2018-06-15 08:22:14 +01:00
Tom Page
7840703706 RM-6363 Use internal-releases credentials for all deployment repos. 2018-06-15 08:21:52 +01:00
alfresco-build
227bfce06e [maven-release-plugin] prepare for next development iteration 2018-06-14 15:39:14 +01:00
alfresco-build
780680483e [maven-release-plugin] prepare release V2.5.4 2018-06-14 15:39:11 +01:00
Tom Page
f47875c100 RM-6363 Add correct destinations for released artifacts. 2018-06-14 15:17:56 +01:00
Rodica Sutu
f7906a7b5e Merge branch 'feature/RM-6385_MappingCoreAPIResponses' into 'master'
RM-6385 Fix for mapping Core API Responses

See merge request records-management/records-management!1045
2018-06-14 13:06:54 +01:00
Sara Aspery
0662d76f66 Merge branch 'xperimental/RM-6354_ModuleRepoVersionError' into 'master'
RM-6354 Module repo version error

See merge request records-management/records-management!1044
2018-06-14 10:27:39 +01:00
cagache
cb4bd2b098 Record only merge of version change. 2018-06-14 09:22:16 +03:00
cagache
2f1c6aefd6 Record only merge of version change. 2018-06-14 09:21:21 +03:00
cagache
1c60fc92ad Record only merge of version change. 2018-06-14 09:19:50 +03:00
cagache
9574a4163f Update version to 2.5.4.1-SNAPSHOT 2018-06-14 09:18:13 +03:00
Rodica Sutu
1dd650d5eb rename the extended bean simpleMappingExceptionResolverParent (core change) 2018-06-14 08:27:55 +03:00
alfresco-build
d41f71069c [maven-release-plugin] prepare for next development iteration 2018-06-13 18:26:47 +01:00
alfresco-build
e0b67c223b [maven-release-plugin] prepare release V2.5.4 2018-06-13 18:26:45 +01:00
alfresco-build
8c6a5eeda4 [maven-release-plugin] prepare for next development iteration 2018-06-13 16:27:59 +01:00
alfresco-build
eff91dd460 [maven-release-plugin] prepare release V2.5.4 2018-06-13 16:27:56 +01:00
alfresco-build
31c953fcf0 [maven-release-plugin] prepare for next development iteration 2018-06-13 14:55:49 +01:00
alfresco-build
62c30da535 [maven-release-plugin] prepare release V2.5.4 2018-06-13 14:55:46 +01:00
alfresco-build
94ceff1f56 [maven-release-plugin] prepare for next development iteration 2018-06-13 13:57:00 +01:00
alfresco-build
67c54b4696 [maven-release-plugin] prepare release V2.5.4 2018-06-13 13:56:58 +01:00
David Webster
d0c1afcb89 Updates to GS entitiy relationships, add packages, flesh out metadeta, esp Disposition 2018-06-13 13:53:02 +01:00
alfresco-build
cb7b27d27b [maven-release-plugin] prepare for next development iteration 2018-06-13 13:42:08 +01:00
alfresco-build
e5eaed32b6 [maven-release-plugin] prepare release V2.5.4 2018-06-13 13:42:06 +01:00
alfresco-build
e1557eadbe [maven-release-plugin] prepare for next development iteration 2018-06-13 12:53:16 +01:00
alfresco-build
d2395bc61f [maven-release-plugin] prepare release V2.5.4 2018-06-13 12:53:14 +01:00
Elena Hardon
13e635b3c9 Merge branch 'feature/RM-6349_DockerMavenPluginIntegration' into 'master'
Use Docker Maven Plugin for Running Integration Tests

See merge request records-management/records-management!1042
2018-06-13 12:42:36 +01:00
alfresco-build
589dab0586 [maven-release-plugin] prepare for next development iteration 2018-06-13 12:25:07 +01:00
alfresco-build
40f0cd31b9 [maven-release-plugin] prepare release V2.5.4 2018-06-13 12:25:05 +01:00
alfresco-build
cf82750a9a [maven-release-plugin] prepare for next development iteration 2018-06-13 11:57:08 +01:00
alfresco-build
e0ea80145b [maven-release-plugin] prepare release V2.5.4 2018-06-13 11:57:05 +01:00
alfresco-build
e009795e11 [maven-release-plugin] prepare for next development iteration 2018-06-13 11:33:52 +01:00
alfresco-build
1b8a9b274a [maven-release-plugin] prepare release V2.5.4 2018-06-13 11:33:50 +01:00
alfresco-build
5397eef5f1 [maven-release-plugin] prepare for next development iteration 2018-06-13 11:12:54 +01:00
alfresco-build
b0e78a15ea [maven-release-plugin] prepare release V2.5.4 2018-06-13 11:12:52 +01:00
Sara Aspery
0da38c1bb7 RM-6354 Module repo version error 2018-06-13 10:28:36 +01:00
alfresco-build
4676d83d5a [maven-release-plugin] prepare for next development iteration 2018-06-13 10:20:56 +01:00
alfresco-build
87dad11e75 [maven-release-plugin] prepare release V2.5.4 2018-06-13 10:20:54 +01:00
Elena Hardon
1543e57512 RM-6349 Removed duplicated property 2018-06-13 12:13:54 +03:00
Brian Remmington
ce772b70cd Added PNG format of PUML class file describing Governance Services
concepts.
2018-06-13 09:35:24 +01:00
Brian Remmington
495b314c99 Added class diagram that illustrates the concepts exposed by Governance
Services and the relationships between them.
2018-06-13 09:29:16 +01:00
Elena Hardon
6c2f577f0c RM-6349 Review changes 2018-06-13 11:05:18 +03:00
cagache
bb558e3ac4 Merge remote-tracking branch 'remotes/origin/release/V2.6' into merge-2.7/MNT-18558_PermissionIssue 2018-06-12 16:03:42 +03:00
Elena Hardon
5fa0e9966e RM-6349 Set up the correct PostgreSql dialect in community repo 2018-06-12 12:48:49 +03:00
Elena Hardon
f9e2425e21 RM-6349 Small fixes over the fabric8 plugin 2018-06-12 11:09:47 +03:00
Elena Hardon
ebe9e9b6f2 RM-6349 Updated postgres port 2018-06-11 18:18:58 +03:00
Elena Hardon
b5986aaa0f Changed postgres port 2018-06-11 17:29:10 +03:00
Elena Hardon
7047acc7f8 Corrected exposed port for postgtres 2018-06-11 17:22:02 +03:00
Elena Hardon
3607edc0d1 RM-6349 Removed duplicate version 2018-06-11 17:16:10 +03:00
Elena Hardon
856048da5c RM-6349 Changed postgres port 2018-06-11 17:11:22 +03:00
Elena Hardon
825691cf15 RM-6349 Updates on postgres port 2018-06-11 15:14:32 +03:00
cagache
155d118672 Merge remote-tracking branch 'remotes/origin/release/V2.5' into merge-2.6/MNT-18558_PermissionIssue
# Conflicts:
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/community/level2/record/DeclareInPlaceRecords.java
2018-06-11 14:49:24 +03:00
Elena Hardon
9b8bcc173e RM-6349 Minor changes over properties in parent pom and in community pom 2018-06-11 14:28:21 +03:00
Elena Hardon
750235364c RM-6349 Removed jackson and spring version properties from parent pom 2018-06-11 13:40:58 +03:00
Elena Hardon
15d64fdb4d Merge branch 'master' into feature/RM-6349_DockerMavenPluginIntegration
# Conflicts:
#	pom.xml
#	rm-community/rm-community-repo/pom.xml
2018-06-11 10:54:44 +03:00
Claudia Agache
43c3bb09d3 Merge branch 'feature/RM-6364_ConvertSearchIntegrationTestsInEndToEnd_no' into 'master'
RM-6364 Convert search integration tests to end to end tests done through api

See merge request records-management/records-management!1038
2018-06-11 08:15:36 +01:00
cagache
daa599e8cf code review changes 2018-06-11 10:15:14 +03:00
Rodica Sutu
9843b1b266 Merge branch 'feature/RM-6135_Updates_to_6.0_RC6' into 'master'
Update the repo dependencies to 6.0 RC6 versions

See merge request records-management/records-management!1040
2018-06-08 09:28:15 +01:00
Rodica Sutu
889f6ca59f Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6135_Updates_to_6.0_RC6 2018-06-08 10:12:59 +03:00
Rodica Sutu
cc723d7fc7 review changes 2018-06-08 10:11:31 +03:00
Tom Page
f821238d95 Merge branch 'feature/RM-6295_RemoveSdk_no' into 'master'
RM-6295 Remove Alfresco Maven SDK.

See merge request records-management/records-management!1027
2018-06-07 16:17:32 +01:00
Elena Hardon
8849c41700 RM-6349 Added docker maven plugin for the integration tests 2018-06-07 17:03:44 +03:00
Rodica Sutu
4ae7ec7e93 Update the repo dependencies to 6.0 RC6 versions
remove the workaround added for  ACE-5852
Add properties for solr6.
Move the Spring and Jackson dependencies from root pom to lower level
2018-06-07 16:48:28 +03:00
cagache
411c23dcd1 code review changes 2018-06-07 16:35:42 +03:00
Tom Page
ef8862c78e RM-6295 Remove unused definition of app.amp.client.war.artifactId. 2018-06-07 14:33:07 +01:00
Tom Page
860437d54d Set rm.module.repo.version.min using regex-properties. 2018-06-07 12:21:04 +01:00
cagache
39a78c7976 RM-6364 Convert search integration tests to end to end tests done through api 2018-06-07 10:43:37 +03:00
Tom Page
3b0f65d904 RM-6295 Remove dependency on h2. 2018-06-06 14:47:18 +01:00
Tom Page
981ebb12f4 RM-6295 Remove unneeded properties from root pom. 2018-06-06 14:35:08 +01:00
Tom Page
086e04dd26 RM-6295 Get enterprise integration tests working. 2018-06-06 11:37:09 +01:00
Ross Gale
dbca7142ab Finishing merge of 2.7.0.1 2018-06-06 11:32:10 +01:00
Ross Gale
6f671e7aeb Merging up from 2.5.4 2018-06-06 10:06:07 +01:00
Ross Gale
993b4f5846 MNT-19442 merging up fix for 2.5.4 2018-06-06 09:31:42 +01:00
Roxana Lucanu-Ghetu
ef1f8311be MNT-18558 Fix permission issue 2018-06-05 17:22:47 +03:00
Tom Page
cfb4d2ead5 Merge master into feature/RM-6295_RemoveSdk_no. 2018-06-05 08:48:14 +01:00
Elena Hardon
864789861d Merge branch 'feature/RM-6382_FixCommunityRestAPI_Regressions' into 'master'
RM-6382 Fix regressions caused by Jackson upgrade

See merge request records-management/records-management!1025
2018-06-05 08:47:19 +01:00
Tom Page
6ad134187d RM-6295 Remove dependency on Alfresco Maven SDK. 2018-06-04 16:57:55 +01:00
Ross Gale
783bccb925 MNT-19442 adding total number to result set in other cases in RMAfterInvocationProvider 2018-06-04 14:48:39 +01:00
Tom Page
0523884576 Merge branch 'feature/RM-6295_RefactorDependencies_no' into 'master'
Update dependency management section of root pom.

See merge request records-management/records-management!1023
2018-06-04 10:04:02 +01:00
Tom Page
f506fd6a4a Merge branch 'feature/RM-6135_RemoveSolr_no' into 'master'
RM-6135 Remove dependency on solr.

See merge request records-management/records-management!1024
2018-06-04 09:18:56 +01:00
Rodica Sutu
49510b15a3 fix the regressions spotted by community rest api after Jackson upgrade 2018-06-01 17:55:13 +03:00
Tom Page
427c1c6eb1 RM-6135 Remove dependency on solr. 2018-06-01 15:41:16 +01:00
Tom Page
fe9aedd770 Use dependency management in the root pom to avoid duplicating version declaration. 2018-06-01 15:15:41 +01:00
Tom Page
ba2b844ed9 Remove 'dependency.' from properties. 2018-06-01 14:46:23 +01:00
jcule
edcb62609d RM-6337: Accession action is visible after completing the event even if Accession step was defined with date And event: automation test 2018-06-01 13:51:16 +01:00
Rodica Sutu
7493708d8f Merge branch 'xperimental/RM-6313UpgradeRMSchedulers' into 'master'
RM-6313 Update RM schedulers, RM-6314 Spring 5 Upgrade & RM-6316 EOL hibernate

Closes RM-6353

See merge request records-management/records-management!1017
2018-06-01 11:14:46 +01:00
Rodica Sutu
4ceea65022 add alfresco-core for tests 2018-06-01 12:33:25 +03:00
Jelena Cule
42301578cc Merge branch 'feature-2.7/RM-6337_AccessionVisibilityBackport' into 'release/V2.7'
Backport fix from master

See merge request records-management/records-management!1019
2018-06-01 10:11:26 +01:00
Rodica Sutu
5253b56032 enable the basic authentication for the dev environment 2018-06-01 10:29:58 +03:00
Rodica Sutu
dcd1b76d0c remove dependencies not needed 2018-06-01 10:28:20 +03:00
Roxana Lucanu-Ghetu
7f5ba7a7f2 RM-6337 Code review changes 2018-05-31 16:11:34 +03:00
Roxana Lucanu-Ghetu
4659a93e71 RM-6337 Code review changes 2018-05-31 16:11:21 +03:00
Roxana Lucanu-Ghetu
6961f0aa18 RM-6337 Fix failing tests 2018-05-31 16:10:58 +03:00
Roxana Lucanu-Ghetu
1f6853b2ad RM-6337 Fix visibility conditions for accession step. 2018-05-31 16:10:43 +03:00
jcule
64a877d1f0 RM-6337: Accession action is visible after completing the event even if Accession step was defined with date And event: automation test 2018-05-31 11:35:51 +01:00
Rodica Sutu
d937c5e093 Merge remote-tracking branch 'remotes/origin/master' into xperimental/RM-6313UpgradeRMSchedulers_remote 2018-05-31 10:49:11 +03:00
Rodica Sutu
f3b05fd2d8 fix the wrong value for Search bean 2018-05-31 10:13:31 +03:00
Rodica Sutu
c11ace2a31 review changes 2018-05-31 09:48:30 +03:00
Roxana Lucanu
38649a6844 Merge branch 'feature/RM-6337_FixAccessionStepVisibility' into 'master'
RM-6337 Accession action visibility

See merge request records-management/records-management!1016
2018-05-31 07:12:17 +01:00
Roxana Lucanu-Ghetu
9cd2357ddc RM-6337 Code review changes 2018-05-30 09:38:25 +03:00
jcule
1f12694487 RM-6310: sc:securityMarksSearch is not properly updated when editing the content classification (affects the results from RM search results): automation tests 2018-05-29 16:25:31 +01:00
jcule
c2d0e2f86d RM-6310: sc:securityMarksSearch is not properly updated when editing the content classification (affects the results from RM search results): automation tests 2018-05-29 15:45:28 +01:00
Rodica Sutu
d2cc170616 Merge branch 'xperimental/RM-6313UpgradeRMSchedulers' of git.alfresco.com:records-management/records-management into xperimental/RM-6313UpgradeRMSchedulers_remote 2018-05-29 16:19:25 +03:00
Rodica Sutu
a8bc694ed5 reshuffle dependencies 2018-05-29 16:18:13 +03:00
Roxana Lucanu-Ghetu
0c1c347d28 RM-6337 Code review changes 2018-05-29 15:21:59 +03:00
Sara Aspery
1a8d563140 Merge branch 'xperimental/RM6353_FixYamlUnitTest_no' into 'xperimental/RM-6313UpgradeRMSchedulers'
RM-6353 Fix Yaml Unit Test

See merge request records-management/records-management!1015
2018-05-29 11:38:58 +01:00
Rodica Sutu
9500e00f09 Merge remote-tracking branch 'remotes/origin/master' into xperimental/RM-6313UpgradeRMSchedulers_remote 2018-05-29 11:56:21 +03:00
Rodica Sutu
ced4aac236 tidy up enterprise pom files 2018-05-29 11:30:56 +03:00
Rodica Sutu
92bc4cefa0 tidy up the community pom files 2018-05-29 10:46:38 +03:00
Roxana Lucanu-Ghetu
e09d5adcc1 RM-6337 Fix failing tests 2018-05-28 23:53:59 +03:00
Roxana Lucanu-Ghetu
1cae8ed778 RM-6337 Fix visibility conditions for accession step. 2018-05-28 22:48:57 +03:00
Sara Aspery
36d26c5c97 RM-6353 Fix Yaml Unit Test 2018-05-28 19:32:24 +01:00
Rodica Sutu
c0e697a7b2 use the core implementation for creating the path element 2018-05-25 16:30:21 +03:00
Rodica Sutu
e8bd0c2fa9 attempt to fix integration tests 2018-05-24 17:42:31 +03:00
Sara Aspery
1b0886fa72 Merge branch 'release/V2.7' into 'master'
Merge v2.7 to master to include RM-6318

See merge request records-management/records-management!1013
2018-05-24 08:37:46 +01:00
Rodica Sutu
efad9359fa minor updates 2018-05-24 09:31:29 +03:00
jcule
3f6a0267b5 RM-6318: Search for "derived by" and classification reasons: Automate AC -fixed failing tests 2018-05-23 16:35:56 +01:00
jcule
8140842066 RM-6318: Search for "derived by" and classification reasons: Automate AC 2018-05-23 12:37:34 +01:00
Rodica Sutu
1bf5d1d77c fix integration tests 2018-05-23 12:36:24 +03:00
Sara Aspery
38de6ea6ef Merge branch 'release/V2.7.0.x' into 'release/V2.7'
Merge v2.7.0.x to v2.7 to include RM-6318

See merge request records-management/records-management!1010
2018-05-23 10:32:36 +01:00
Rodica Sutu
6a42037f90 comment the check from BaseYamlUnitTest.java until we fix RM-6353 2018-05-23 11:51:27 +03:00
Rodica Sutu
2befbb56e3 library updates 2018-05-22 17:20:31 +03:00
David Webster
977041e0e6 Merge branch 'Xperimental/map_docs_copy' into 'master'
Copy docs from old architecture map

See merge request records-management/records-management!1009
2018-05-22 12:56:45 +01:00
David Webster
c6d9c62dd7 Merge branch 'xperimental/kt-capabilities' into 'master'
Role and Capability initial technical documentation.

See merge request records-management/records-management!948
2018-05-22 12:55:18 +01:00
David Webster
eec325fb6d Add build flow from old architectural map 2018-05-22 12:08:18 +01:00
David Webster
843c2ae4e1 Copy version records notes from old architectural map 2018-05-22 12:01:28 +01:00
cagache
705ad61991 Merge branch 'merge-master/RM-6320_DeclassificationReviewTests' 2018-05-22 10:16:29 +03:00
cagache
7098d93cfb changed version from 2.7.1 to 3.0.0 2018-05-22 10:15:34 +03:00
cagache
2e69321efc changed version from 2.7.0.1 to 2.7.1 2018-05-22 09:50:52 +03:00
cagache
1fd239b35f Merge branch 'release/V2.7' 2018-05-18 10:56:25 +03:00
Tom Page
8cbe9efc2e Record-only merge release/V2.7 into master. 2018-05-18 06:52:59 +01:00
Tom Page
7f492ca9f9 Remove broken test of legacy feature: RMCaveatConfigServiceImplTest. 2018-05-16 12:20:56 +01:00
Rodica Sutu
9ad8086630 library updates for 6.0 2018-05-15 14:15:49 +03:00
Rodica Sutu
19ecad1420 temporary comment out the test - the test needs to be refactored after the Spring 5 upgrade 2018-05-15 13:01:25 +03:00
Rodica Sutu
1d4c86dd38 Spring upgrade remove dependency-check attribute 2018-05-15 12:59:20 +03:00
Rodica Sutu
32cb490f86 more library upgrades 2018-05-14 17:48:28 +03:00
Rodica Sutu
1b13d709d2 update the RM schedulers from test context files 2018-05-14 17:42:17 +03:00
Rodica Sutu
04b696c2c3 RM-6313 update of jobs and triggers according to Spring 5 and Quartz library 2.3.0 upgrade 2018-05-14 09:39:48 +03:00
Rodica Sutu
e6d88ab7de Spring update - update of xsd declaration for the context files 2018-05-14 09:35:42 +03:00
Rodica Sutu
98441a1a3c replace spring social exception with InvalidArgumentException
update the ElementInfo() according to REPO-2983
2018-05-14 09:27:43 +03:00
Rodica Sutu
e2c24db85b update some of dependencies for ACS 6.0 2018-05-14 09:24:38 +03:00
rwetherall
60422a853a Role and Capability initial technical documentation. 2018-04-04 10:45:50 +10:00
Rodica Sutu
ff89968550 Update version to 2.5.3.1-SNAPSHOT 2018-02-26 17:39:11 +02:00
1316 changed files with 19642 additions and 6165 deletions

3
.gitignore vendored
View File

@@ -6,6 +6,7 @@
.project
.settings
.history
*.bak
*.eml
*.iml
*.log*
@@ -16,6 +17,8 @@ build.local.properties
dist
explodedDeps
local.properties
rebel.xml
rebel-remote.xml
target
test-output

68
.travis.settings.xml Normal file
View File

@@ -0,0 +1,68 @@
<settings>
<profiles>
<profile>
<id>alfresco-internal</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>alfresco-internal</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alfresco-internal</id>
<name>Alfresco Internal Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/internal</url>
</pluginRepository>
<pluginRepository>
<id>alfresco-public</id>
<name>Alfresco Public Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/public</url>
</pluginRepository>
<pluginRepository>
<id>alfresco-private</id>
<name>Alfresco Private Repository</name>
<url>https://artifacts.alfresco.com/nexus/content/groups/private</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<servers>
<server>
<id>docker.io</id>
<username>${env.DOCKERHUB_USERNAME}</username>
<password>${env.DOCKERHUB_PASSWORD}</password>
</server>
<server>
<id>quay.io</id>
<username>${env.QUAY_USERNAME}</username>
<password>${env.QUAY_PASSWORD}</password>
</server>
<server>
<id>alfresco-internal</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>alfresco-private</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
<server>
<id>alfresco-internal-snapshots</id>
<username>${env.MAVEN_USERNAME}</username>
<password>${env.MAVEN_PASSWORD}</password>
</server>
</servers>
</settings>

View File

@@ -1,6 +1,145 @@
import:
- source: travis-env-vars.yml
dist: xenial
sudo: required
language: java
jdk:
- oraclejdk8
sudo: false
install: true
script: travis_wait 30 mvn -B clean verify -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- openjdk11
services:
- docker
branches:
only:
- /release\/V3.\d+.*/
- /feature-3.\d+\/.*/
- /merge-3.\d+\/.*/
- /hotfix-3.\d+\/.*/
cache:
directories:
- $HOME/.m2
# the cache can grow constantly
before_cache:
- rm -rf $HOME/.m2/repository/org/alfresco/alfresco-governance-services*
before_install:
- "cp .travis.settings.xml $HOME/.m2/settings.xml"
install: skip
stages:
- name: Build AGS
- name: Tests
if: commit_message !~ /\[skip tests\]/
- name: Security Scans
- name: Release
- name: Publish
jobs:
include:
- name: "Build AGS Community"
stage: Build AGS
before_script: source scripts/setUpMavenPhase.sh
script:
- travis_retry travis_wait 120 mvn -B -q clean ${MAVEN_PHASE} -P${BUILD_PROFILE} -Dimage.tag=${IMAGE_TAG} -Dskip.integrationtests=false -Dcommunity -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: "Build AGS Enterprise"
stage: Build AGS
install:
- travis_retry travis_wait 30 mvn -B deploy -N
- travis_retry travis_wait 60 mvn -B -q clean install $MVN_SKIP -f rm-community/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
before_script: source scripts/setUpMavenPhase.sh
script:
- travis_retry travis_wait 80 mvn -B -q ${MAVEN_PHASE} -P${BUILD_PROFILE} -Dimage.tag=${IMAGE_TAG} -Dskip.integrationtests=false -f rm-enterprise/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: "Build AGS Benchmark"
stage: Build AGS
install:
- travis_retry travis_wait 80 mvn -B -q clean install $MVN_SKIP -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
before_script: source scripts/setUpMavenPhase.sh
script:
- travis_retry travis_wait 35 mvn -B -q ${MAVEN_PHASE} -Dskip.integrationtests=false -f rm-benchmark/pom.xml -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
- name: "Community Integrations Tests on MySQL"
stage: Tests
script:
- echo "Community Integrations Tests on MySQL"
- name: "Enterprise Integrations Tests on MySQL"
stage: Tests
script:
- echo "Enterprise Integrations Tests on MySQL"
- name: "Community Rest API Tests"
stage: Tests
install:
- |
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-community-repo -am
else
travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
fi
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-community-rest-api -am
before_script:
- |
if [[ ${TRAVIS_BRANCH} == *community* ]]; then
bash scripts/startAlfresco.sh $COMMUNITY_REPO_PATH
else
bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH
fi
- bash scripts/waitForAlfrescoToStart.sh
script: mvn -B test -pl :alfresco-governance-services-automation-community-rest-api -Dskip.automationtests=false
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
- name: "Enterprise Rest API Tests"
stage: Tests
install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
- travis_retry travis_wait 30 mvn -B -U -q clean install ${MVN_SKIP} -pl :alfresco-governance-services-automation-enterprise-rest-api -am
before_script:
- bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH
- bash scripts/waitForAlfrescoToStart.sh
- bash scripts/dockerLimitMemory.sh
- sudo free -m -t
script:
- mvn -B test -pl :alfresco-governance-services-automation-enterprise-rest-api -Dskip.automationtests=false
after_failure: docker ps -a | grep '_alfresco_1' | awk '{print $1}' | xargs docker logs | tail -5000
- name: "Community UI Tests ..."
stage: Tests
before_install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-community-repo,:alfresco-governance-services-community-share -am
install:
- bash scripts/startAlfresco.sh $COMMUNITY_SHARE_PATH
- bash scripts/waitForAlfrescoToStart.sh
script:
- echo "Community UI Tests ..."
- name: "Enterprise UI Tests ..."
stage: Tests
before_install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo,:alfresco-governance-services-enterprise-share -am
install:
- bash scripts/startAlfresco.sh $ENTERPRISE_SHARE_PATH
- bash scripts/waitForAlfrescoToStart.sh
script:
- echo "Enterprise UI Tests ..."
- name: "Source Clear Scan (SCA)"
stage: Security Scans
script:
- echo "Source Clear Scan (SCA)"
- name: "Static Analysis (SAST)"
stage: Security Scans
script:
- echo "Static Analysis (SAST)"
- name: "Community Release"
stage: Release
script:
- echo "Community Release"
- name: "Enterprise Release"
stage: Release
script:
- echo "Enterprise Release"
- name: "Copy to S3 Release Bucket"
stage: Publish
script:
- echo "Copy to S3 Release Bucket"

View File

@@ -4,20 +4,19 @@ For the details on the Records Management project see [here](https://community.a
## Getting started
What you need to get started:
* A [Jira](https://issues.alfresco.com/jira/projects/ALF/issues/?filter=allopenissues) account;
* A [GitHub](https://github.com/) account.
Useful but not necessary:
* An [Alfresco community](https://community.alfresco.com/) account - this is a good place to ask questions and find answers.
* A [Jira](https://issues.alfresco.com/jira/projects/RM/issues/?filter=allopenissues) account - Good place to look at what the team is working on;
## Making changes
We use Jira to track issues. If you are committing a fix for a raised issue please include the ticket number in both the merge requests and the git commit messages.
For example a fix for the ticket [ALF-21953](https://issues.alfresco.com/jira/browse/ALF-21953) might have the git commit message: "ALF-21953 Updated to use super pom v9".
We use GitHub's issues to track community contributions and issues. If you are committing a fix for a raised issue please reference the issue number in the pull request.
If you are adding in a new feature or bug fix please do so [here](https://issues.alfresco.com/jira/projects/ALF/issues/?filter=allopenissues). By raising a ticket in this project you will be agreeing to the Alfresco Contribution Agreement which can be found at the bottom of the 'Create Issue' form or alternatively attached to [this](https://community.alfresco.com/docs/DOC-7070-alfresco-contribution-agreement) page.
If you are adding in a new feature or bug fix please raise an issue in the issues tab. By raising an issue in this project you will be agreeing to the Alfresco Contribution Agreement which can be found [here](https://community.alfresco.com/docs/DOC-7070-alfresco-contribution-agreement).
When you are ready to make a change you just need to fork the [records-management](https://github.com/Alfresco/records-management) repository and then make your changes into your copy of the code.
@@ -55,8 +54,6 @@ Occasionally we may have to revert a change after it has been accepted. This wil
[IDE settings for Eclipse and Intellij](https://github.com/Alfresco/records-management/tree/master/ide-config)
[Jira project for raising issues/features](https://issues.alfresco.com/jira/projects/ALF/issues/?filter=allopenissues)
[Jira project used by GS team](https://issues.alfresco.com/jira/projects/RM/issues)
[Records Management project details](https://community.alfresco.com/docs/DOC-6387-project-overview-records-management)

View File

@@ -138,3 +138,42 @@ Unzip it and change to the "solr" folder within it. Start the Solr server using
solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
```
Start your repository
## Build Docker images for RM Repo and Share
A first step is checking that you have installed a working version of Docker that can be downloaded from here:
[https://docs.docker.com/install/]
The second step, in case you already have Docker installed, the current running images must be checked in order to be sure that they are not occupying any of the ports that
ACS and Share use.
To kill and clean all the images and containers the following command can be used:
```
docker system prune --volumes
```
> Note that this will also remove all the stopped containers, containers, networks, volumes and build cache.
Depending on which version of AGS you want to start, Community or Enterprise, **you must first build the docker images**.
From the root folder of the project you can create both the Repo and the Share images for Community and Enterprise.
To build all the images use the following command:
```
mvn install -PbuildDockerImage
```
If only the Community or Enterprise images need to be built than the same command as above must be run either in the rm-community or rm-enterprise modules.
## Start the Docker images
The Docker images of the Repo can be started independently from Share running the following command in the rm-repo-enterprise or rm-repo-community folder which contains the Docker-compose.yml file:
```
docker-compose up
```
> Be aware of the fact that the Share images can not be started independently from Repo
e.g. In order to start an instance of rm-enterprise-repo and rm-enterprise-share, the above command must be run in rm-enterprise-share after the images have been built.
## Start the Docker images with jRebel in remote server mode
If you have a license for jRebel then this can be used from the rm-community-share or rm-enterprise-share directories with:
```
docker-compose -f docker-compose.yml -f jrebel-docker-compose.yml --project-name agsdev up --build --force-recreate
```

882
pom.xml

File diff suppressed because it is too large Load Diff

View File

@@ -1,14 +1,14 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>alfresco-rm-automation</artifactId>
<name>Alfresco Records Management Automation</name>
<artifactId>alfresco-governance-services-automation</artifactId>
<name>Alfresco Governance Services Automation</name>
<packaging>pom</packaging>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm</artifactId>
<version>2.7.0.1</version>
<artifactId>alfresco-governance-services</artifactId>
<version>3.3.0.2</version>
</parent>
<licenses>
@@ -24,8 +24,6 @@
</modules>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<suiteXmlFile>testng.xml</suiteXmlFile>
<skip.automationtests>true</skip.automationtests>
</properties>
@@ -88,251 +86,4 @@
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>install-alfresco</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>fetch-installer</id>
<phase>generate-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Recreating database...</echo>
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
<echo>Downloading Alfresco installer...</echo>
<get src="${installer.url}" dest="target/alf-installer.bin" />
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
<echo>Installing Alfresco...</echo>
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
</exec>
<delete file="target/alf-installer.bin" verbose="true" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.1-901-1.jdbc4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>apply-rm-community</id>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>fetch-amps</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-community-share</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-community-repo</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/amps</outputDirectory>
<useBaseVersion>true</useBaseVersion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>install-community-repo-amp</id>
<goals>
<goal>install</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>
${project.build.directory}/amps/alfresco-rm-community-repo-${project.version}.amp
</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war
</warLocation>
</configuration>
</execution>
<execution>
<id>install-community-share-amp</id>
<goals>
<goal>install</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>
${project.build.directory}/amps/alfresco-rm-community-share-${project.version}.amp
</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war
</warLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>apply-rm-enterprise</id>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>fetch-amps</id>
<phase>process-test-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>${alfresco.rm.share}</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>${alfresco.rm.repo}</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
</artifactItems>
<outputDirectory>${project.build.directory}/amps</outputDirectory>
<useBaseVersion>true</useBaseVersion>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.alfresco.maven.plugin</groupId>
<artifactId>alfresco-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>install-enterprise-repo-amp</id>
<goals>
<goal>install</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>${project.build.directory}/amps/${alfresco.rm.repo}-${project.version}.amp</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war</warLocation>
</configuration>
</execution>
<execution>
<id>install-enterprise-share-amp</id>
<goals>
<goal>install</goal>
</goals>
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>${project.build.directory}/amps/${alfresco.rm.share}-${project.version}.amp</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war</warLocation>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run-alfresco</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<executions>
<execution>
<id>prepare-jacoco</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>org.alfresco.*</include>
</includes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>start-alfresco</id>
<phase>process-test-classes</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Starting Alfresco...</echo>
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
<arg value="start" />
<env key="CATALINA_OPTS" value="${argLine}" />
</exec>
<sleep minutes="5" />
</target>
</configuration>
</execution>
<execution>
<id>stop-alfresco</id>
<phase>post-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<echo>Stopping Alfresco...</echo>
<exec executable="${basedir}/target/alf-installation/alfresco.sh" dir="target/alf-installation" failonerror="true">
<arg value="stop" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View File

@@ -2,21 +2,22 @@
<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>
<artifactId>alfresco-rm-automation-community-rest-api</artifactId>
<name>Alfresco Records Management Automation Community REST API</name>
<artifactId>alfresco-governance-services-automation-community-rest-api</artifactId>
<name>Alfresco Governance Services Automation Community REST API</name>
<parent>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-automation</artifactId>
<version>2.7.0.1</version>
<artifactId>alfresco-governance-services-automation</artifactId>
<version>3.3.0.2</version>
</parent>
<properties>
<maven.build.sourceVersion>1.8</maven.build.sourceVersion>
<alfresco.rm.share>alfresco-rm-community-share</alfresco.rm.share>
<alfresco.rm.repo>alfresco-rm-community-repo</alfresco.rm.repo>
<tas.restapi.version>5.2.0-10</tas.restapi.version>
<maven.javadoc.skip>false</maven.javadoc.skip>
<ags.share>alfresco-governance-services-community-share</ags.share>
<ags.repo>alfresco-governance-services-community-repo</ags.repo>
<tas.restapi.version>6.0.1.2</tas.restapi.version>
<fluent.json.version>2.0.0</fluent.json.version>
<jackson.databind.version>2.7.7</jackson.databind.version>
</properties>
<build>
@@ -45,21 +46,39 @@
</build>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.26</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.alfresco.tas</groupId>
<artifactId>restapi-test</artifactId>
<version>${tas.restapi.version}</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.alfresco.tas</groupId>
<artifactId>restapi-test</artifactId>
<version>${tas.restapi.version}</version>
<type>test-jar</type>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.10</version>
<version>1.18.6</version>
<scope>provided</scope>
</dependency>
<!-- FIXME: Remove this dependency once RMUserAPI.java has been refactored -->
@@ -73,5 +92,20 @@
<artifactId>alfresco-testng</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
<version>3.0.14</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.databind.version}</version>
</dependency>
</dependencies>
</project>

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -56,4 +56,7 @@ public class RMRestProperties extends RestProperties
@Value ("${rest.rmPath}")
private String restRmPath;
@Value ("${docker.host}")
private String dockerHost;
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -26,7 +26,7 @@
*/
package org.alfresco.rest.core;
import com.jayway.restassured.builder.RequestSpecBuilder;
import io.restassured.builder.RequestSpecBuilder;
import org.alfresco.rest.exception.EmptyJsonResponseException;
import org.alfresco.rest.model.RestErrorModel;

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -34,6 +34,7 @@ import org.alfresco.rest.requests.Node;
import org.alfresco.rest.requests.coreAPI.RestCoreAPI;
import org.alfresco.rest.requests.search.SearchAPI;
import org.alfresco.rest.rm.community.requests.gscore.GSCoreAPI;
import org.alfresco.rest.rm.community.requests.gscore.api.ActionsExecutionAPI;
import org.alfresco.rest.rm.community.requests.gscore.api.FilePlanAPI;
import org.alfresco.rest.rm.community.requests.gscore.api.FilesAPI;
import org.alfresco.rest.rm.community.requests.gscore.api.RMSiteAPI;
@@ -92,14 +93,28 @@ public class RestAPIFactory
return getRmRestWrapper().withSearchAPI();
}
public Node getNodeAPI(RepoTestModel model) throws Exception
public Node getNodeAPI(RepoTestModel model) throws RuntimeException
{
return getCoreAPI(null).usingNode(model);
try
{
return getCoreAPI(null).usingNode(model);
}
catch (Exception e)
{
throw new RuntimeException("Failed to load nodeAPI.", e);
}
}
public Node getNodeAPI(UserModel userModel, RepoTestModel model) throws Exception
public Node getNodeAPI(UserModel userModel, RepoTestModel model) throws RuntimeException
{
return getCoreAPI(userModel).usingNode(model);
try
{
return getCoreAPI(userModel).usingNode(model);
}
catch (Exception e)
{
throw new RuntimeException("Failed to load nodeAPI.", e);
}
}
public RMSiteAPI getRMSiteAPI()
@@ -211,4 +226,14 @@ public class RestAPIFactory
{
return getGSCoreAPI(userModel).usingUnfiledRecordFolder();
}
public ActionsExecutionAPI getActionsAPI(UserModel userModel)
{
return getGSCoreAPI(userModel).usingActionsExecutionsAPI();
}
public ActionsExecutionAPI getActionsAPI()
{
return getGSCoreAPI(null).usingActionsExecutionsAPI();
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -26,10 +26,18 @@
*/
package org.alfresco.rest.core.v0;
import javax.json.Json;
import javax.json.JsonReader;
import java.io.IOException;
import java.io.InputStream;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
import org.apache.commons.io.IOUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -44,6 +52,10 @@ public class APIUtils
{
/** Logger for this class. */
private static final Logger LOGGER = LoggerFactory.getLogger(APIUtils.class);
/** The ISO instant formatter that formats or parses an instant in UTC, such as '2011-12-03T10:15:305Z'
* similar with {@link DateTimeFormatter#ISO_INSTANT}, but with only 3 nanoseconds*/
public static final DateTimeFormatter ISO_INSTANT_FORMATTER =
new DateTimeFormatterBuilder().appendInstant(3).toFormatter();
/** Private constructor for helper class. */
private APIUtils()
@@ -70,4 +82,40 @@ public class APIUtils
LOGGER.info("Response body:\n{}", source);
return new JSONObject(source);
}
/**
* Util method to extract the message string from the HTTP response
*
* @param httpResponse http response
* @return error message from the http response
*/
public static String extractErrorMessageFromHttpResponse(HttpResponse httpResponse)
{
final HttpEntity entity = httpResponse.getEntity();
JsonReader reader = null;
try
{
final InputStream responseStream = entity.getContent();
reader = Json.createReader(responseStream);
return reader.readObject().getString("message");
}
catch (JSONException error)
{
LOGGER.error("Converting message body to JSON failed. Body: {}", httpResponse, error);
}
catch (ParseException | IOException error)
{
LOGGER.error("Parsing message body failed.", error);
}
finally
{
if (reader != null)
{
reader.close();
}
}
return null;
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -81,7 +81,7 @@ public abstract class BaseAPI
protected static final String UPDATE_METADATA_API = "{0}node/{1}/formprocessor";
protected static final String ACTIONS_API = "{0}actionQueue";
protected static final String RM_ACTIONS_API = "{0}rma/actions/ExecutionQueue";
protected static final String RM_SITE_ID = "rm";
public static final String RM_SITE_ID = "rm";
protected static final String SHARE_ACTION_API = "{0}internal/shared/share/workspace/SpacesStore/{1}";
private static final String SLINGSHOT_PREFIX = "alfresco/s/slingshot/";
@@ -89,7 +89,7 @@ public abstract class BaseAPI
private AlfrescoHttpClientFactory alfrescoHttpClientFactory;
@Autowired
private ContentService contentService;
protected ContentService contentService;
public static final String NODE_REF_WORKSPACE_SPACES_STORE = "workspace://SpacesStore/";
private static final String FILE_PLAN_PATH = "/Sites/rm/documentLibrary";
@@ -103,7 +103,7 @@ public abstract class BaseAPI
*/
protected List<String> getPropertyValues(JSONObject result, String propertyName)
{
ArrayList<String> results = new ArrayList<String>();
ArrayList<String> results = new ArrayList<>();
try
{
JSONArray items = result.getJSONArray("items");
@@ -541,7 +541,6 @@ public abstract class BaseAPI
AlfrescoHttpClient client = alfrescoHttpClientFactory.getObject();
T request = requestType.newInstance();
HttpResponse response = null;
JSONObject responseBody = null;
JSONObject returnValues = null;
@@ -555,7 +554,7 @@ public abstract class BaseAPI
}
LOGGER.info("Sending {} request to {}", requestType.getSimpleName(), requestUrl);
LOGGER.info("Request body: {}", requestParams);
response = client.execute(adminUser, adminPassword, request);
HttpResponse response = client.execute(adminUser, adminPassword, request);
LOGGER.info("Response: {}", response.getStatusLine());
try
@@ -587,13 +586,13 @@ public abstract class BaseAPI
case HttpStatus.SC_UNPROCESSABLE_ENTITY:
if (responseBody != null && responseBody.has(EXCEPTION_KEY))
{
LOGGER.error("Request failed: " + responseBody.getString(EXCEPTION_KEY));
LOGGER.error("Request failed: {}", responseBody.getString(EXCEPTION_KEY));
returnValues = responseBody;
}
break;
default:
LOGGER.error("Request returned unexpected HTTP status " + response.getStatusLine().getStatusCode());
LOGGER.error("Request returned unexpected HTTP status {}", response.getStatusLine().getStatusCode());
break;
}
}
@@ -702,6 +701,7 @@ public abstract class BaseAPI
public enum RM_ACTIONS
{
EDIT_DISPOSITION_DATE("editDispositionActionAsOfDate"),
END_RETENTION("retain"),
CUT_OFF("cutoff"),
UNDO_CUT_OFF("undoCutoff"),
TRANSFER("transfer"),

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -41,7 +41,11 @@ public enum AuditEvents
DELETE_USER_GROUP("Delete User Group", "Delete User Group"),
ADD_TO_USER_GROUP("Add To User Group", "Add To User Group"),
REMOVE_FROM_USER_GROUP("Remove From User Group", "Remove From User Group"),
LOGIN_UNSUCCESSFUL("Login.Failure", "Login Unsuccessful");
LOGIN_UNSUCCESSFUL("Login.Failure", "Login Unsuccessful"),
CREATE_HOLD("Create Hold", "Create Hold"),
DELETE_HOLD("Delete Hold", "Delete Hold"),
ADD_TO_HOLD("Add To Hold", "Add To Hold"),
REMOVE_FROM_HOLD("Remove From Hold", "Remove From Hold");
/** event audited */
public final String event;
@@ -54,4 +58,4 @@ public enum AuditEvents
this.event = event;
this.eventDisplayName = displayName;
}
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -26,6 +26,8 @@
*/
package org.alfresco.rest.rm.community.model.common;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
@@ -50,4 +52,10 @@ public class IdNamePair
@JsonProperty (required = true)
private String name;
@JsonProperty (required = true)
private List<String> aspectNames;
@JsonProperty (required = true)
private String nodeType;
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -34,6 +34,23 @@ package org.alfresco.rest.rm.community.model.fileplancomponents;
*/
public class FilePlanComponentAspects
{
/** Private constructor to prevent instantiation. */
private FilePlanComponentAspects()
{
}
// aspect present on completed records
public static final String ASPECTS_COMPLETED_RECORD = "rma:declaredRecord";
// aspect present on record folders/categories with vital records
public static final String ASPECTS_VITAL_RECORD_DEFINITION= "rma:vitalRecordDefinition";
// aspect present on vital records
public static final String ASPECTS_VITAL_RECORD = "rma:vitalRecord";
// Frozen aspect
public static final String FROZEN_ASPECT = "rma:frozen";
// recordSearch aspect
public static final String RECORD_SEARCH_ASPECT = "rma:recordSearch";
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -82,6 +82,7 @@ public class FilePlanComponentFields
public static final String PROPERTIES_CLASSIFICATION = "sc:classification";
public static final String PROPERTIES_DATE_FILED = "rma:dateFiled";
public static final String PROPERTIES_ORIGINAL_NAME = "rma:origionalName";
public static final String PROPERTIES_REVIEW_AS_OF = "rma:reviewAsOf";
/** Electronic record properties */
public static final String PROPERTIES_VERSION_TYPE = "cm:versionType";

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -0,0 +1,56 @@
/*-
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2020 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.hold;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.alfresco.utility.model.TestModel;
/**
* POJO for hold entry
*
* @author Rodica Sutu
* @since 3.2
*/
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties (ignoreUnknown = true)
public class HoldEntry extends TestModel
{
@JsonProperty (required = true)
private String name;
@JsonProperty (required = true)
private String nodeRef;
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -109,7 +109,7 @@ public class Record extends TestModel implements IRestModel<RestNodeModel>
@Override
public ModelAssertion<RestNodeModel> assertThat()
{
return new ModelAssertion<RestNodeModel>(this);
return new ModelAssertion<>(this);
}
@Override

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -52,8 +52,19 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_ORIGINATING_CREATION_DATE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_ORIGINATING_LOCATION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_ORIGINATING_USER_ID;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_AS_OF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_NAME;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_AUTHORITY;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS_ELIGIBLE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_PERIOD;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_DISPOSITION_PERIOD_EXPRESSION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_HAS_DISPOSITION_SCHEDULE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RESOLUTION_UNIT;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_REVIEW_AS_OF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_ROOT_NODE_REF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SHELF;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_SOFTWARE;
@@ -64,19 +75,19 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_X_RESOLUTION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_Y_RESOLUTION;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.alfresco.rest.rm.community.model.common.Owner;
import org.alfresco.utility.model.TestModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.alfresco.rest.rm.community.model.common.Owner;
import org.alfresco.utility.model.TestModel;
/**
* POJO for record properties
@@ -208,4 +219,34 @@ public class RecordProperties extends TestModel
@JsonProperty(PROPERTIES_AUTHOR)
private String author;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_PERIOD_EXPRESSION)
private String recordSearchDispositionPeriodExpression;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_AUTHORITY)
private String recordSearchDispositionAuthority;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_AS_OF)
private Date recordSearchDispositionActionAsOf;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_PERIOD)
private String recordSearchDispositionPeriod;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_NAME)
private String recordSearchDispositionActionName;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS_ELIGIBLE)
private Boolean recordSearchDispositionEventsEligible;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS)
private String recordSearchDispositionInstructions;
@JsonProperty (PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD)
private String recordSearchVitalRecordReviewPeriod;
@JsonProperty (PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION)
private String recordSearchVitalRecordReviewPeriodExpression;
@JsonProperty(PROPERTIES_REVIEW_AS_OF)
private Date reviewAsOf;
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -53,7 +53,7 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class RecordCategory extends TestModel
{
public final static String DEFAULT_FILE_PLAN_ALIAS = "-filePlan-";
public static final String DEFAULT_FILE_PLAN_ALIAS = "-filePlan-";
/*************************/
/** Mandatory parameters */

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -53,7 +53,7 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
public class RecordCategoryChild extends TestModel
{
public final static String RECORD_FOLDER_NODE_TYPE = "rma:recordFolder";
public static final String RECORD_FOLDER_NODE_TYPE = "rma:recordFolder";
/*************************/
/** Mandatory parameters */

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -33,6 +33,10 @@ import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanCo
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_IS_CLOSED;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_LOCATION;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_OWNER;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields
.PROPERTIES_RECORD_SEARCH_DISPOSITION_AUTHORITY;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields
.PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_HAS_DISPOSITION_SCHEDULE;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION;
@@ -120,4 +124,11 @@ public class RecordFolderProperties extends TestModel
@JsonProperty (PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION)
private String recordSearchVitalRecordReviewPeriodExpression;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_AUTHORITY)
private String recordSearchDispositionAuthority;
@JsonProperty (PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS)
private String recordSearchDispositionInstructions;
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -45,7 +45,7 @@ public class RuleDefinition
private String contentTitle;
private String contentDescription;
private String rejectReason;
private List<ActionsOnRule> actions;
private List<String> actions;
/**
* Creates a new object of type Rule Definition
@@ -189,15 +189,15 @@ public class RuleDefinition
return this;
}
public List<ActionsOnRule> getActions()
public List<String> getActions()
{
return actions;
}
public RuleDefinition actions(List<ActionsOnRule> actions)
public RuleDefinition actions(List<String> actions)
{
this.actions = actions;
return this;
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -29,6 +29,7 @@ package org.alfresco.rest.rm.community.model.unfiledcontainer;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_IDENTIFIER;
import static org.alfresco.rest.rm.community.model.fileplancomponents.FilePlanComponentFields.PROPERTIES_ROOT_NODE_REF;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.alfresco.utility.model.TestModel;
@@ -50,6 +51,7 @@ import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties (ignoreUnknown = true)
public class UnfiledContainerProperties extends TestModel
{
/*************************/

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -32,9 +32,16 @@ package org.alfresco.rest.rm.community.model.user;
* @author Kristijan Conkas
* @since 2.6
*/
public class UserPermissions
public enum UserPermissions
{
public static final String PERMISSION_FILING = "Filing";
public static final String PERMISSION_READ_RECORDS = "ReadRecords";
public static final String PERMISSION_FILE_RECORDS = "FileRecords";
PERMISSION_FILING("Filing"),
PERMISSION_READ_RECORDS("ReadRecords"),
PERMISSION_FILE_RECORDS("FileRecords");
public final String permissionId;
UserPermissions(String permissionId)
{
this.permissionId = permissionId;
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -41,14 +41,14 @@ import lombok.Setter;
* @author Tuna Aksoy
* @since 2.6
*/
public abstract class RMModelRequest extends ModelRequest<RMModelRequest>
public abstract class RMModelRequest<Request> extends ModelRequest<Request>
{
@Getter (value = PROTECTED)
@Setter (value = PRIVATE)
private RMRestWrapper rmRestWrapper;
/**
* @param restWrapper
* @param rmRestWrapper
*/
public RMModelRequest(RMRestWrapper rmRestWrapper)
{

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -29,10 +29,11 @@ package org.alfresco.rest.rm.community.requests.gscore;
import static java.lang.Integer.parseInt;
import static java.lang.String.format;
import com.jayway.restassured.RestAssured;
import io.restassured.RestAssured;
import org.alfresco.rest.core.RMRestProperties;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.requests.gscore.api.ActionsExecutionAPI;
import org.alfresco.rest.rm.community.requests.RMModelRequest;
import org.alfresco.rest.rm.community.requests.gscore.api.FilePlanAPI;
import org.alfresco.rest.rm.community.requests.gscore.api.FilesAPI;
@@ -113,7 +114,7 @@ public class GSCoreAPI extends RMModelRequest
/**
* Provides DSL on all REST calls under <code>records/...</code> API path
*
* @return {@link FilePlanComponentAPI}
* @return {@link RecordsAPI}
*/
public RecordsAPI usingRecords()
{
@@ -179,4 +180,14 @@ public class GSCoreAPI extends RMModelRequest
{
return new RMUserAPI(getRmRestWrapper());
}
/**
* Provides DSL for ActionExecution API
*
* @return {@link ActionsExecutionAPI}
*/
public ActionsExecutionAPI usingActionsExecutionsAPI()
{
return new ActionsExecutionAPI(getRmRestWrapper());
}
}

View File

@@ -0,0 +1,78 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2020 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.requests.gscore.api;
import com.google.common.collect.ImmutableMap;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.rules.ActionsOnRule;
import org.alfresco.rest.rm.community.requests.RMModelRequest;
import org.alfresco.utility.model.RepoTestModel;
import org.json.JSONObject;
/**
* Produces processed results from Core Actions API calls
*
* @author Claudia Agache
* @since 3.1
*/
public class ActionsExecutionAPI extends RMModelRequest
{
/**
* @param rmRestWrapper RM REST Wrapper
*/
public ActionsExecutionAPI(RMRestWrapper rmRestWrapper)
{
super(rmRestWrapper);
}
/**
* Declares and files a document as record to a record folder using v1 actions api
*
* @param targetNode the node on which the action is executed
* @param destinationPath the path to the record folder
* @throws Exception
*/
public JSONObject declareAndFile(RepoTestModel targetNode, String destinationPath) throws Exception
{
return getRmRestWrapper().withCoreAPI().usingActions()
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode,
ImmutableMap.of("path", destinationPath));
}
/**
* Declares a document as record using v1 actions api
*
* @param targetNode the node on which the action is executed
* @throws Exception
*/
public JSONObject declareAsRecord(RepoTestModel targetNode) throws Exception
{
return getRmRestWrapper().withCoreAPI().usingActions()
.executeAction(ActionsOnRule.DECLARE_AS_RECORD.getActionValue(), targetNode);
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -54,7 +54,7 @@ public class FilePlanAPI extends RMModelRequest
/**
* Constructor.
*
* @param restWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public FilePlanAPI(RMRestWrapper rmRestWrapper)
{
@@ -77,7 +77,7 @@ public class FilePlanAPI extends RMModelRequest
* @param filePlanId The identifier of a file plan
* @param parameters The URL parameters to add
* @return The {@link FilePlan} for the given {@code filePlanId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code filePlanId} is not a valid format</li>
* <li>authentication fails</li>
@@ -113,7 +113,7 @@ public class FilePlanAPI extends RMModelRequest
* @param filePlanId The identifier of a file plan
* @param parameters The URL parameters to add
* @return The {@link RecordCategoryCollection} for the given {@code filePlanId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code filePlanId}</li>
@@ -135,7 +135,7 @@ public class FilePlanAPI extends RMModelRequest
/**
* see {@link #createRootRecordCategory(RecordCategory, String, String)}
*/
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId) throws Exception
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId)
{
mandatoryObject("recordCategoryModel", recordCategoryModel);
mandatoryString("filePlanId", filePlanId);
@@ -150,7 +150,7 @@ public class FilePlanAPI extends RMModelRequest
* @param filePlanId The identifier of a file plan
* @param parameters The URL parameters to add
* @return The created {@link RecordCategory}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code filePlanId} is not a valid format or {@code filePlanId} is invalid</li>
* <li>authentication fails</li>
@@ -160,7 +160,7 @@ public class FilePlanAPI extends RMModelRequest
* <li>model integrity exception, including node name with invalid characters</li>
* </ul>
*/
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId, String parameters) throws Exception
public RecordCategory createRootRecordCategory(RecordCategory recordCategoryModel, String filePlanId, String parameters)
{
mandatoryObject("recordCategoryModel", recordCategoryModel);
mandatoryString("filePlanId", filePlanId);
@@ -177,7 +177,7 @@ public class FilePlanAPI extends RMModelRequest
/**
* see {@link #updateFilePlan(FilePlan, String, String)
*/
public FilePlan updateFilePlan(FilePlan filePlanModel, String filePlanId) throws Exception
public FilePlan updateFilePlan(FilePlan filePlanModel, String filePlanId)
{
mandatoryObject("filePlanModel", filePlanModel);
mandatoryString("filePlanId", filePlanId);
@@ -191,7 +191,7 @@ public class FilePlanAPI extends RMModelRequest
* @param filePlanModel The file plan model which holds the information
* @param filePlanId The identifier of the file plan
* @param parameters The URL parameters to add
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code filePlanId} is not a valid format or {@code filePlanModel} is invalid</li>
* <li>authentication fails</li>
@@ -200,7 +200,7 @@ public class FilePlanAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public FilePlan updateFilePlan(FilePlan filePlanModel, String filePlanId, String parameters) throws Exception
public FilePlan updateFilePlan(FilePlan filePlanModel, String filePlanId, String parameters)
{
mandatoryObject("filePlanModel", filePlanModel);
mandatoryString("filePlanId", filePlanId);

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -28,7 +28,6 @@ package org.alfresco.rest.rm.community.requests.gscore.api;
import static org.alfresco.rest.core.RestRequest.simpleRequest;
import static org.alfresco.rest.rm.community.util.ParameterCheck.mandatoryString;
import static org.apache.commons.lang3.StringUtils.EMPTY;
import static org.springframework.http.HttpMethod.POST;
import org.alfresco.rest.core.RMRestWrapper;
@@ -41,10 +40,12 @@ import org.alfresco.rest.rm.community.requests.RMModelRequest;
* @author Kristijan Conkas
* @since 2.6
*/
public class FilesAPI extends RMModelRequest
public class FilesAPI extends RMModelRequest<FilesAPI>
{
public static final String PARENT_ID_PARAM = "parentId";
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public FilesAPI(RMRestWrapper rmRestWrapper)
{
@@ -55,11 +56,10 @@ public class FilesAPI extends RMModelRequest
* Declare file as record
*
* @param fileId The Id of a file to declare as record
* @param parameters Request parameters, refer to API documentation for more details
* @return The {@link Record} for created record
* @throws Exception for malformed JSON responses
* @throws RuntimeException for malformed JSON responses
*/
public Record declareAsRecord(String fileId, String parameters) throws Exception
public Record declareAsRecord(String fileId)
{
mandatoryString("fileId", fileId);
@@ -67,22 +67,8 @@ public class FilesAPI extends RMModelRequest
POST,
"/files/{fileId}/declare?{parameters}",
fileId,
parameters
getRmRestWrapper().getParameters()
));
}
/**
* A no-parameter version of {@link FilesAPI#declareAsRecord}
*
* @param fileId The Id of a file to declare as record
* @return The {@link Record} for created record
* @throws Exception for malformed JSON responses
*/
public Record declareAsRecord(String fileId) throws Exception
{
mandatoryString("fileId", fileId);
return declareAsRecord(fileId, EMPTY);
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -62,7 +62,7 @@ public class RMSiteAPI extends RMModelRequest
* Get the RM site
*
* @return The {@link RMSite} for the given file plan component id
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Api Response code 400 Invalid parameter: GET request is supported only for the RM site</li>
* <li>Api Response code 401 If authentication failed</li>
@@ -70,7 +70,7 @@ public class RMSiteAPI extends RMModelRequest
* <li>Api Response code default Unexpected error</li>
* </ul>
*/
public RMSite getSite() throws Exception
public RMSite getSite()
{
return getRmRestWrapper().processModel(RMSite.class, simpleRequest(
GET,
@@ -83,7 +83,7 @@ public class RMSiteAPI extends RMModelRequest
*
* @param rmSite The properties of the rm site to be created
* @return The {@link RMSite} with the given properties
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Api Response code 400 Invalid parameter: title, or description exceed the maximum length; or siteBodyCreate invalid</li>
* <li>Api Response code 401 If authentication failed</
@@ -91,7 +91,7 @@ public class RMSiteAPI extends RMModelRequest
* <li>Api Response code default Unexpected error</li>
* </ul>
*/
public RMSite createRMSite(RMSite rmSiteModel) throws Exception
public RMSite createRMSite(RMSite rmSiteModel)
{
mandatoryObject("rmSiteModel", rmSiteModel);
@@ -104,7 +104,7 @@ public class RMSiteAPI extends RMModelRequest
/**
* Delete RM site
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Api Response code 400 Invalid parameter: DELETE request is supported only for the RM site</li>
* <li>Api Response code 401 If authentication failed</
@@ -113,7 +113,7 @@ public class RMSiteAPI extends RMModelRequest
* <li>Api Response code default Unexpected error</li>
* </ul>
*/
public void deleteRMSite() throws Exception
public void deleteRMSite()
{
getRmRestWrapper().processEmptyModel(simpleRequest(
DELETE,
@@ -126,7 +126,7 @@ public class RMSiteAPI extends RMModelRequest
*
* @param rmSiteProperties The properties to be updated
* @return The updated {@link RMSite}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Api Response code 400 the update request is invalid {@code rmSiteModel} is invalid</li>
* <li>Api Response code 401 If authentication fails</li>
@@ -135,7 +135,7 @@ public class RMSiteAPI extends RMModelRequest
* <li>Api Response code default Unexpected error,model integrity exception</li>
* </ul>
*/
public RMSite updateRMSite(RMSite rmSiteModel) throws Exception
public RMSite updateRMSite(RMSite rmSiteModel)
{
mandatoryObject("rmSiteProperties", rmSiteModel);
@@ -150,7 +150,7 @@ public class RMSiteAPI extends RMModelRequest
* Checks if the RM site exists or not
*
* @return <code>true</code> if the RM site exists, <code>false</code> otherwise
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Api Response code 400 Invalid parameter: GET request is supported only for the RM site</li>
* <li>Api Response code 401 If authentication failed</li>
@@ -158,7 +158,7 @@ public class RMSiteAPI extends RMModelRequest
* <li>Api Response code default Unexpected error</li>
* </ul>
*/
public boolean existsRMSite() throws Exception
public boolean existsRMSite()
{
getSite();
return getRmRestWrapper().getStatusCode().equals(OK.toString());

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -26,17 +26,17 @@
*/
package org.alfresco.rest.rm.community.requests.gscore.api;
import static com.jayway.restassured.RestAssured.basic;
import static com.jayway.restassured.RestAssured.given;
import static org.jglue.fluentjson.JsonBuilderFactory.buildObject;
import static org.springframework.http.HttpStatus.OK;
import com.google.gson.JsonObject;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import com.jayway.restassured.response.Response;
import com.jayway.restassured.specification.RequestSpecification;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import static io.restassured.RestAssured.basic;
import static io.restassured.RestAssured.given;
import org.alfresco.dataprep.AlfrescoHttpClient;
import org.alfresco.dataprep.AlfrescoHttpClientFactory;
@@ -59,7 +59,7 @@ import org.alfresco.utility.model.UserModel;
public class RMUserAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public RMUserAPI(RMRestWrapper rmRestWrapper)
{
@@ -84,11 +84,12 @@ public class RMUserAPI extends RMModelRequest
/**
* Assign RM role to user
*
* @param userName User's username
* @param userRole User's RM role, one of {@link UserRoles} roles
* @throws Exception for failed requests
* @throws RuntimeException for failed requests
*/
public void assignRoleToUser(String userName, String userRole) throws Exception
public void assignRoleToUser(String userName, String userRole)
{
UserModel adminUser = getRmRestWrapper().getTestUser();
@@ -97,31 +98,31 @@ public class RMUserAPI extends RMModelRequest
// override v1 baseURI and basePath
RequestSpecification spec = new RequestSpecBuilder()
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.build();
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.build();
Response response = given()
.spec(spec)
.log().all()
.pathParam("role", userRole)
.pathParam("authority", userName)
.param("alf_ticket", client.getAlfTicket(adminUser.getUsername(),
adminUser.getPassword()))
.when()
.post("/rm/roles/{role}/authorities/{authority}")
.prettyPeek()
.andReturn();
.spec(spec)
.log().all()
.pathParam("role", userRole)
.pathParam("authority", userName)
.param("alf_ticket", client.getAlfTicket(adminUser.getUsername(),
adminUser.getPassword()))
.when()
.post("/rm/roles/{role}/authorities/{authority}")
.prettyPeek()
.andReturn();
getRmRestWrapper().setStatusCode(Integer.toString(response.getStatusCode()));
}
/**
* Helper method to add permission on a component to user
* @param component The id of the file plan component on which permission should be given
* @param filePlanComponentId The id of the file plan component on which permission should be given
* @param user {@link UserModel} for a user to be granted permission
* @param permission {@link UserPermissions} to be granted
*/
public void addUserPermission(String filePlanComponentId, UserModel user, String permission)
public void addUserPermission(String filePlanComponentId, UserModel user, UserPermissions permission)
{
UserModel adminUser = getRmRestWrapper().getTestUser();
@@ -129,34 +130,76 @@ public class RMUserAPI extends RMModelRequest
AlfrescoHttpClient client = getAlfrescoHttpClient();
JsonObject bodyJson = buildObject()
.addArray("permissions")
.addArray("permissions")
.addObject()
.add("authority", user.getUsername())
.add("role", permission)
.end()
.getJson();
.add("authority", user.getUsername())
.add("role", permission.permissionId)
.end()
.getJson();
// override v1 baseURI and basePath
RequestSpecification spec = new RequestSpecBuilder()
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.build();
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.build();
// execute an "old-style" API call
Response response = given()
.spec(spec)
.auth().basic(adminUser.getUsername(), adminUser.getPassword())
.contentType(ContentType.JSON)
.body(bodyJson.toString())
.pathParam("nodeId", filePlanComponentId)
.log().all()
.when()
.post("/node/workspace/SpacesStore/{nodeId}/rmpermissions")
.prettyPeek()
.andReturn();
.spec(spec)
.auth().basic(adminUser.getUsername(), adminUser.getPassword())
.contentType(ContentType.JSON)
.body(bodyJson.toString())
.pathParam("nodeId", filePlanComponentId)
.log().all()
.when()
.post("/node/workspace/SpacesStore/{nodeId}/rmpermissions")
.prettyPeek()
.andReturn();
getRmRestWrapper().setStatusCode(Integer.toString(response.getStatusCode()));
}
/**
* Helper method to set permission inheritance on a file plan component
*
* @param filePlanComponentId The id of the file plan component on which inherited permission should be set
* @param isInherited true if the permission is inherited
* false if the permission inheritance is disabled
*/
public void setUserPermissionInheritance(String filePlanComponentId, Boolean isInherited)
{
final UserModel adminUser = getRmRestWrapper().getTestUser();
// get an "old-style" REST API client
final AlfrescoHttpClient client = getAlfrescoHttpClient();
final JsonObject bodyJson = buildObject()
.addArray("permissions")
.end()
.add("isInherited", isInherited)
.getJson();
// override v1 baseURI and basePath
RequestSpecification spec = new RequestSpecBuilder()
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.build();
// execute an "old-style" API call
final Response response = given()
.spec(spec)
.auth().basic(adminUser.getUsername(), adminUser.getPassword())
.contentType(ContentType.JSON)
.body(bodyJson.toString())
.pathParam("nodeId", filePlanComponentId)
.log().all()
.when()
.post("/node/workspace/SpacesStore/{nodeId}/rmpermissions")
.prettyPeek()
.andReturn();
getRmRestWrapper().setStatusCode(Integer.toString(response.getStatusCode()));
}
/**
* Creates a user with the given name using the old APIs
*
@@ -168,7 +211,7 @@ public class RMUserAPI extends RMModelRequest
public boolean createUser(String userName, String userPassword, String userEmail)
{
UserModel adminUser = getRmRestWrapper().getTestUser();
AlfrescoHttpClient client = getAlfrescoHttpClient();
final AlfrescoHttpClient client = getAlfrescoHttpClient();
JsonObject body = buildObject()
.add("userName", userName)
@@ -178,7 +221,7 @@ public class RMUserAPI extends RMModelRequest
.add("email", userEmail)
.getJson();
RequestSpecification spec = new RequestSpecBuilder()
final RequestSpecification spec = new RequestSpecBuilder()
.setBaseUri(client.getApiUrl())
.setBasePath("/")
.setAuth(basic(adminUser.getUsername(), adminUser.getPassword()))

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -54,7 +54,7 @@ public class RecordCategoryAPI extends RMModelRequest
/**
* Constructor.
*
* @param restWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public RecordCategoryAPI(RMRestWrapper rmRestWrapper)
{
@@ -65,7 +65,7 @@ public class RecordCategoryAPI extends RMModelRequest
* Deletes a record category.
*
* @param recordCategoryId The identifier of a record category
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordCategoryId} is not a valid format</li>
* <li>authentication fails</li>
@@ -101,7 +101,7 @@ public class RecordCategoryAPI extends RMModelRequest
* @param recordCategoryId The identifier of a record category
* @param parameters The URL parameters to add
* @return The {@link RecordCategory} for the given {@code recordCategoryId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordCategoryId} is not a valid format</li>
* <li>authentication fails</li>
@@ -124,7 +124,7 @@ public class RecordCategoryAPI extends RMModelRequest
/**
* see {@link #updateRecordCategory(RecordCategory, String, String)
*/
public RecordCategory updateRecordCategory(RecordCategory recordCategoryModel, String recordCategoryId) throws Exception
public RecordCategory updateRecordCategory(RecordCategory recordCategoryModel, String recordCategoryId)
{
mandatoryObject("recordCategoryModel", recordCategoryModel);
mandatoryString("recordCategoryId", recordCategoryId);
@@ -139,7 +139,7 @@ public class RecordCategoryAPI extends RMModelRequest
* @param recordCategoryId The identifier of a record category
* @param parameters The URL parameters to add
* @param returns The updated {@link RecordCategory}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code recordCategoryId} is not a valid format or {@code recordCategoryModel} is invalid</li>
* <li>authentication fails</li>
@@ -149,7 +149,7 @@ public class RecordCategoryAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public RecordCategory updateRecordCategory(RecordCategory recordCategoryModel, String recordCategoryId, String parameters) throws Exception
public RecordCategory updateRecordCategory(RecordCategory recordCategoryModel, String recordCategoryId, String parameters)
{
mandatoryObject("recordCategoryModel", recordCategoryModel);
mandatoryString("recordCategoryId", recordCategoryId);
@@ -179,7 +179,7 @@ public class RecordCategoryAPI extends RMModelRequest
* @param recordCategoryId The identifier of a record category
* @param parameters The URL parameters to add
* @return The {@link RecordCategoryChildCollection} for the given {@code recordCategoryId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code recordCategoryId}</li>
@@ -201,7 +201,7 @@ public class RecordCategoryAPI extends RMModelRequest
/**
* see {@link #createRecordCategoryChild(RecordCategoryChild, String, String)}
*/
public RecordCategoryChild createRecordCategoryChild(RecordCategoryChild recordCategoryChildModel, String recordCategoryId) throws Exception
public RecordCategoryChild createRecordCategoryChild(RecordCategoryChild recordCategoryChildModel, String recordCategoryId)
{
mandatoryObject("recordCategoryChildModel", recordCategoryChildModel);
mandatoryString("recordCategoryId", recordCategoryId);
@@ -216,7 +216,7 @@ public class RecordCategoryAPI extends RMModelRequest
* @param recordCategoryId The identifier of a record category
* @param parameters The URL parameters to add
* @return The created {@link RecordCategoryChild}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordCategoryId} is not a valid format or {@code recordCategoryChildModel} is invalid</li>
* <li>authentication fails</li>
@@ -226,7 +226,7 @@ public class RecordCategoryAPI extends RMModelRequest
* <li>model integrity exception, including node name with invalid characters</li>
* </ul>
*/
public RecordCategoryChild createRecordCategoryChild(RecordCategoryChild recordCategoryChildModel, String recordCategoryId, String parameters) throws Exception
public RecordCategoryChild createRecordCategoryChild(RecordCategoryChild recordCategoryChildModel, String recordCategoryId, String parameters)
{
mandatoryObject("filePlanComponentProperties", recordCategoryChildModel);
mandatoryString("recordCategoryId", recordCategoryId);

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -40,12 +40,13 @@ import static org.springframework.http.HttpMethod.PUT;
import static org.testng.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.http.ContentType;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.record.Record;
@@ -65,7 +66,7 @@ public class RecordFolderAPI extends RMModelRequest
/**
* Constructor.
*
* @param restWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public RecordFolderAPI(RMRestWrapper rmRestWrapper)
{
@@ -76,7 +77,7 @@ public class RecordFolderAPI extends RMModelRequest
* Deletes a record folder.
*
* @param recordFolderId The identifier of a record folder
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordFolderId} is not a valid format</li>
* <li>authentication fails</li>
@@ -112,7 +113,7 @@ public class RecordFolderAPI extends RMModelRequest
* @param recordFolderId The identifier of a record folder
* @param parameters The URL parameters to add
* @return The {@link RecordFolder} for the given {@code recordFolderId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordFolderId} is not a valid format</li>
* <li>authentication fails</li>
@@ -135,7 +136,7 @@ public class RecordFolderAPI extends RMModelRequest
/**
* see {@link #updateRecordFolder(RecordFolder, String, String)
*/
public RecordFolder updateRecordFolder(RecordFolder recordFolderModel, String recordFolderId) throws Exception
public RecordFolder updateRecordFolder(RecordFolder recordFolderModel, String recordFolderId)
{
mandatoryObject("recordFolderModel", recordFolderModel);
mandatoryString("recordFolderId", recordFolderId);
@@ -150,7 +151,7 @@ public class RecordFolderAPI extends RMModelRequest
* @param recordFolderId The identifier of a record folder
* @param parameters The URL parameters to add
* @param returns The updated {@link RecordFolder}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code recordFolderId} is not a valid format or {@code recordFolderModel} is invalid</li>
* <li>authentication fails</li>
@@ -160,7 +161,7 @@ public class RecordFolderAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public RecordFolder updateRecordFolder(RecordFolder recordFolderModel, String recordFolderId, String parameters) throws Exception
public RecordFolder updateRecordFolder(RecordFolder recordFolderModel, String recordFolderId, String parameters)
{
mandatoryObject("recordFolderModel", recordFolderModel);
mandatoryString("recordFolderId", recordFolderId);
@@ -190,7 +191,7 @@ public class RecordFolderAPI extends RMModelRequest
* @param recordFolderId The identifier of a record folder
* @param parameters The URL parameters to add
* @return The {@link RecordFolderCollection} for the given {@code recordFolderId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code recordFolderId}</li>
@@ -212,7 +213,7 @@ public class RecordFolderAPI extends RMModelRequest
/**
* see {@link #createRecord(Record, String, String)}
*/
public Record createRecord(Record recordModel, String recordFolderId) throws Exception
public Record createRecord(Record recordModel, String recordFolderId)
{
mandatoryObject("recordModel", recordModel);
mandatoryString("recordFolderId", recordFolderId);
@@ -227,9 +228,9 @@ public class RecordFolderAPI extends RMModelRequest
* @param recordContent {@link File} pointing to the content of the electronic record to be created
* @param recordFolderId The identifier of a record folder
* @return newly created {@link Record}
* @throws Exception for invalid recordModel JSON strings
* @throws RuntimeException for invalid recordModel JSON strings
*/
public Record createRecord(Record recordModel, String recordFolderId, File recordContent) throws Exception
public Record createRecord(Record recordModel, String recordFolderId, File recordContent) throws RuntimeException
{
mandatoryString("recordFolderId", recordFolderId);
mandatoryObject("recordContent", recordContent);
@@ -245,7 +246,15 @@ public class RecordFolderAPI extends RMModelRequest
* to the request.
*/
RequestSpecBuilder builder = getRmRestWrapper().configureRequestSpec();
JsonNode root = new ObjectMapper().readTree(toJson(recordModel, Record.class, FilePlanComponentMixIn.class));
JsonNode root;
try
{
root = new ObjectMapper().readTree(toJson(recordModel, Record.class, FilePlanComponentMixIn.class));
}
catch (IOException e)
{
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();
while (fieldNames.hasNext())
@@ -266,7 +275,7 @@ public class RecordFolderAPI extends RMModelRequest
* @param recordFolderId The identifier of a record folder
* @param parameters The URL parameters to add
* @return The created {@link Record}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordFolderId is not a valid format or {@code recordModel} is invalid</li>
* <li>authentication fails</li>
@@ -275,7 +284,7 @@ public class RecordFolderAPI extends RMModelRequest
* <li>model integrity exception, including node name with invalid characters</li>
* </ul>
*/
public Record createRecord(Record recordModel, String recordFolderId, String parameters) throws Exception
public Record createRecord(Record recordModel, String recordFolderId, String parameters)
{
mandatoryObject("recordModel", recordModel);
mandatoryString("recordFolderId", recordFolderId);

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -37,13 +37,14 @@ import static org.springframework.http.HttpMethod.GET;
import static org.springframework.http.HttpMethod.POST;
import static org.springframework.http.HttpMethod.PUT;
import com.jayway.restassured.response.ResponseBody;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.record.Record;
import org.alfresco.rest.rm.community.model.record.RecordBodyFile;
import org.alfresco.rest.rm.community.requests.RMModelRequest;
import io.restassured.response.ResponseBody;
/**
* Records REST API Wrapper
*
@@ -53,7 +54,7 @@ import org.alfresco.rest.rm.community.requests.RMModelRequest;
public class RecordsAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public RecordsAPI(RMRestWrapper rmRestWrapper)
{
@@ -65,7 +66,7 @@ public class RecordsAPI extends RMModelRequest
*
* @param recordId The id of the electronic record
* @return {@link ResponseBody} representing content for the given record id
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordId} has no content</li>
* <li> {@code recordId} is not a valid format, or is not a record</li>
@@ -73,7 +74,7 @@ public class RecordsAPI extends RMModelRequest
* <li>{@code recordId} does not exist</li>
* </ul>
*/
public ResponseBody<?> getRecordContent(String recordId) throws Exception
public ResponseBody<?> getRecordContent(String recordId)
{
mandatoryString("recordId", recordId);
@@ -89,7 +90,7 @@ public class RecordsAPI extends RMModelRequest
* @param recordBodyFile The properties where to file the record
* @param recordId The id of the record to file
* @return The {@link Record} with the given properties
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Invalid parameter: {@code recordBodyFile} is not a valid format,{@code recordId} is not a record</li>
* <li>authentication fails</li>
@@ -100,7 +101,7 @@ public class RecordsAPI extends RMModelRequest
* </ul>
*
*/
public Record fileRecord(RecordBodyFile recordBodyFile, String recordId) throws Exception
public Record fileRecord(RecordBodyFile recordBodyFile, String recordId)
{
mandatoryObject("recordBodyFile", recordBodyFile);
mandatoryString("recordId", recordId);
@@ -114,7 +115,7 @@ public class RecordsAPI extends RMModelRequest
* @param recordBodyFile The properties where to file the record
* @param recordId The id of the record to file
* @return The {@link Record} with the given properties
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Invalid parameter: {@code recordBodyFile} is not a valid format,{@code recordId} is not a record</li>
* <li>authentication fails</li>
@@ -125,7 +126,7 @@ public class RecordsAPI extends RMModelRequest
* </ul>
*
*/
public Record fileRecord(RecordBodyFile recordBodyFile, String recordId, String parameters) throws Exception
public Record fileRecord(RecordBodyFile recordBodyFile, String recordId, String parameters)
{
mandatoryObject("requestBodyFile", recordBodyFile);
mandatoryString("recordId", recordId);
@@ -142,7 +143,7 @@ public class RecordsAPI extends RMModelRequest
/**
* see {@link #completeRecord(String, String)
*/
public Record completeRecord(String recordId) throws Exception
public Record completeRecord(String recordId)
{
mandatoryString("recordId", recordId);
@@ -154,7 +155,7 @@ public class RecordsAPI extends RMModelRequest
*
* @param recordId The id of the record to complete
* @return The completed {@link Record} with the given properties
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>Invalid parameter: {@code recordId} is not a record</li>
* <li>authentication fails</li>
@@ -164,7 +165,7 @@ public class RecordsAPI extends RMModelRequest
* <li>model integrity exception: the record has missing meta-data</li>
* </ul>
*/
public Record completeRecord(String recordId, String parameters) throws Exception
public Record completeRecord(String recordId, String parameters)
{
mandatoryString("recordId", recordId);
@@ -179,7 +180,7 @@ public class RecordsAPI extends RMModelRequest
* Deletes a record.
*
* @param recordId The identifier of a record
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordId} is not a valid format</li>
* <li>authentication fails</li>
@@ -215,7 +216,7 @@ public class RecordsAPI extends RMModelRequest
* @param recordId The identifier of a record
* @param parameters The URL parameters to add
* @return The {@link Record} for the given {@code recordId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code recordId} is not a valid format</li>
* <li>authentication fails</li>
@@ -238,7 +239,7 @@ public class RecordsAPI extends RMModelRequest
/**
* see {@link #updateRecord(Record, String, String)
*/
public Record updateRecord(Record recordModel, String recordId) throws Exception
public Record updateRecord(Record recordModel, String recordId)
{
mandatoryObject("recordModel", recordModel);
mandatoryString("recordId", recordId);
@@ -253,7 +254,7 @@ public class RecordsAPI extends RMModelRequest
* @param recordId The identifier of a record
* @param parameters The URL parameters to add
* @return The updated {@link Record}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code recordId} is not a valid format or {@code recordModel} is invalid</li>
* <li>authentication fails</li>
@@ -263,7 +264,7 @@ public class RecordsAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public Record updateRecord(Record recordModel, String recordId, String parameters) throws Exception
public Record updateRecord(Record recordModel, String recordId, String parameters)
{
mandatoryObject("recordModel", recordModel);
mandatoryString("recordId", recordId);

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -46,7 +46,7 @@ import org.alfresco.rest.rm.community.requests.RMModelRequest;
public class TransferAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public TransferAPI(RMRestWrapper rmRestWrapper)
{
@@ -69,7 +69,7 @@ public class TransferAPI extends RMModelRequest
* @param transferId The identifier of a transfer
* @param parameters The URL parameters to add
* @return The {@link Transfer} for the given {@code transferId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code transferId} is not a valid format</li>
* <li>authentication fails</li>
@@ -104,7 +104,7 @@ public class TransferAPI extends RMModelRequest
* @param transferId The identifier of a transfer
* @param parameters The URL parameters to add
* @return The {@link TransferChildCollection} for the given {@code transferId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code transferId}</li>

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -50,7 +50,7 @@ import org.alfresco.rest.rm.community.requests.RMModelRequest;
public class TransferContainerAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public TransferContainerAPI(RMRestWrapper rmRestWrapper)
{
@@ -73,7 +73,7 @@ public class TransferContainerAPI extends RMModelRequest
* @param transferContainerId The identifier of a transfer container
* @param parameters The URL parameters to add
* @return The {@link TransferContainer} for the given {@code transferContainerId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code transferContainerId} is not a valid format</li>
* <li>authentication fails</li>
@@ -96,7 +96,7 @@ public class TransferContainerAPI extends RMModelRequest
/**
* see {@link #updateTransferContainer(TransferContainer, String, String)
*/
public TransferContainer updateTransferContainer(TransferContainer transferContainerModel, String transferContainerId) throws Exception
public TransferContainer updateTransferContainer(TransferContainer transferContainerModel, String transferContainerId)
{
mandatoryObject("transferContainerModel", transferContainerModel);
mandatoryString("transferContainerId", transferContainerId);
@@ -111,7 +111,7 @@ public class TransferContainerAPI extends RMModelRequest
* @param transferContainerId The identifier of a transfer container
* @param parameters The URL parameters to add
* @param returns The updated {@link TransferContainer}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code transferContainerId} is not a valid format or {@code transferContainerModel} is invalid</li>
* <li>authentication fails</li>
@@ -121,7 +121,7 @@ public class TransferContainerAPI extends RMModelRequest
* <li>model integrity exception, including transfer container name with invalid characters</li>
* </ul>
*/
public TransferContainer updateTransferContainer(TransferContainer transferContainerModel, String transferContainerId, String parameters) throws Exception
public TransferContainer updateTransferContainer(TransferContainer transferContainerModel, String transferContainerId, String parameters)
{
mandatoryObject("transferContainerModel", transferContainerModel);
mandatoryString("transferContainerId", transferContainerId);
@@ -151,7 +151,7 @@ public class TransferContainerAPI extends RMModelRequest
* @param transferContainerId The identifier of a transfer container
* @param parameters The URL parameters to add
* @return The {@link TransferCollection} for the given {@code transferContainerId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code transferContainerId}</li>

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -39,12 +39,14 @@ import static org.springframework.http.HttpMethod.PUT;
import static org.testng.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.http.ContentType;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainer;
@@ -63,7 +65,7 @@ import org.alfresco.rest.rm.community.util.UnfiledContainerChildMixin;
public class UnfiledContainerAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public UnfiledContainerAPI(RMRestWrapper rmRestWrapper)
{
@@ -86,7 +88,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* @param unfiledContainerId The identifier of a unfiled record container
* @param parameters The URL parameters to add
* @return The {@link UnfiledContainer} for the given {@code unfiledContainerId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code unfiledContainerId} is not a valid format</li>
* <li>authentication fails</li>
@@ -122,7 +124,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* @param unfiledContainerId The identifier of an unfiled records container
* @param parameters The URL parameters to add
* @return The {@link UnfiledContainerChildCollection} for the given {@code unfiledContainerId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code unfiledContainerId}</li>
@@ -144,7 +146,7 @@ public class UnfiledContainerAPI extends RMModelRequest
/**
* see {@link #createUnfiledContainerChild(UnfiledContainerChild, String, String)}
*/
public UnfiledContainerChild createUnfiledContainerChild(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId) throws Exception
public UnfiledContainerChild createUnfiledContainerChild(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId)
{
mandatoryObject("unfiledContainerChildModel", unfiledContainerChildModel);
mandatoryString("unfiledContainerId", unfiledContainerId);
@@ -159,7 +161,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* @param unfiledContainerId The identifier of an unfiled container
* @param parameters The URL parameters to add
* @return The created {@link UnfiledContainerChild}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code unfiledContainerId} is not a valid format or {@code unfiledContainerChildModel} is invalid</li>
* <li>authentication fails</li>
@@ -169,7 +171,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* <li>model integrity exception, including node name with invalid characters</li>
* </ul>
*/
public UnfiledContainerChild createUnfiledContainerChild(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId, String parameters) throws Exception
public UnfiledContainerChild createUnfiledContainerChild(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId, String parameters)
{
mandatoryObject("unfiledContainerChildModel", unfiledContainerChildModel);
mandatoryString("unfiledContainerId", unfiledContainerId);
@@ -190,9 +192,9 @@ public class UnfiledContainerAPI extends RMModelRequest
* @param unfiledContainerChildContent {@link File} pointing to the content of the electronic record to be created
* @param unfiledContainerId The identifier of a unfiled container
* @return newly created {@link UnfiledContainerChild}
* @throws Exception for invalid recordModel JSON strings
* @throws RuntimeException for invalid recordModel JSON strings
*/
public UnfiledContainerChild uploadRecord(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId, File unfiledContainerChildContent) throws Exception
public UnfiledContainerChild uploadRecord(UnfiledContainerChild unfiledContainerChildModel, String unfiledContainerId, File unfiledContainerChildContent)
{
mandatoryObject("unfiledContainerChildModel", unfiledContainerChildModel);
mandatoryObject("unfiledContainerChildContent", unfiledContainerChildContent);
@@ -208,7 +210,15 @@ public class UnfiledContainerAPI extends RMModelRequest
* to the request.
*/
RequestSpecBuilder builder = getRmRestWrapper().configureRequestSpec();
JsonNode root = new ObjectMapper().readTree(toJson(unfiledContainerChildModel, UnfiledContainerChild.class, UnfiledContainerChildMixin.class));
JsonNode root;
try
{
root = new ObjectMapper().readTree(toJson(unfiledContainerChildModel, UnfiledContainerChild.class, UnfiledContainerChildMixin.class));
}
catch (IOException e)
{
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();
while (fieldNames.hasNext())
@@ -225,7 +235,7 @@ public class UnfiledContainerAPI extends RMModelRequest
/**
* see {@link #updateUnfiledContainer(UnfiledContainer, String, String)
*/
public UnfiledContainer updateUnfiledContainer(UnfiledContainer unfiledContainerModel, String unfiledContainerId) throws Exception
public UnfiledContainer updateUnfiledContainer(UnfiledContainer unfiledContainerModel, String unfiledContainerId)
{
mandatoryObject("unfiledContainerModel", unfiledContainerModel);
mandatoryString("unfiledContainerId", unfiledContainerId);
@@ -240,7 +250,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* @param unfiledContainerId The identifier of an unfiled record container
* @param parameters The URL parameters to add
* @param returns The updated {@link UnfiledContainer}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code unfiledContainerId} is not a valid format or {@code unfiledContainerModel} is invalid</li>
* <li>authentication fails</li>
@@ -250,7 +260,7 @@ public class UnfiledContainerAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public UnfiledContainer updateUnfiledContainer(UnfiledContainer unfiledContainerModel, String unfiledContainerId, String parameters) throws Exception
public UnfiledContainer updateUnfiledContainer(UnfiledContainer unfiledContainerModel, String unfiledContainerId, String parameters)
{
mandatoryObject("unfiledContainerModel", unfiledContainerModel);
mandatoryString("unfiledContainerId", unfiledContainerId);

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -40,12 +40,13 @@ import static org.springframework.http.HttpMethod.PUT;
import static org.testng.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.jayway.restassured.builder.RequestSpecBuilder;
import com.jayway.restassured.http.ContentType;
import io.restassured.builder.RequestSpecBuilder;
import io.restassured.http.ContentType;
import org.alfresco.rest.core.RMRestWrapper;
import org.alfresco.rest.rm.community.model.unfiledcontainer.UnfiledContainerChild;
@@ -63,7 +64,7 @@ import org.alfresco.rest.rm.community.util.UnfiledContainerChildMixin;
public class UnfiledRecordFolderAPI extends RMModelRequest
{
/**
* @param rmRestWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public UnfiledRecordFolderAPI(RMRestWrapper rmRestWrapper)
{
@@ -86,7 +87,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* @param unfiledRecordFolderId The identifier of a unfiled record folder
* @param parameters The URL parameters to add
* @return The {@link UnfiledRecordFolder} for the given {@code unfiledRecordFolderId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code unfiledRecordFolderId} is not a valid format</li>
* <li>authentication fails</li>
@@ -122,7 +123,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* @param unfiledRecordFolderId The identifier of an unfiled records folder
* @param parameters The URL parameters to add
* @return The {@link UnfiledRecordFolderChildCollection} for the given {@code unfiledRecordFolderId}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>authentication fails</li>
* <li>current user does not have permission to read {@code unfiledRecordFolderId}</li>
@@ -144,7 +145,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
/**
* see {@link #createUnfiledRecordFolderChild(UnfiledContainerChild, String, String)}
*/
public UnfiledContainerChild createUnfiledRecordFolderChild(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId) throws Exception
public UnfiledContainerChild createUnfiledRecordFolderChild(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId)
{
mandatoryObject("unfiledRecordFolderChildModel", unfiledRecordFolderChildModel);
mandatoryString("unfiledRecordFolderId", unfiledRecordFolderId);
@@ -159,7 +160,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* @param unfiledRecordFolderId The identifier of an unfiled folder
* @param parameters The URL parameters to add
* @return The created {@link UnfiledRecordFolderChild}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code unfiledRecordFolderId} is not a valid format or {@code unfiledRecordFolderChildModel} is invalid</li>
* <li>authentication fails</li>
@@ -169,7 +170,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* <li>model integrity exception, including node name with invalid characters</li>
* </ul>
*/
public UnfiledContainerChild createUnfiledRecordFolderChild(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId, String parameters) throws Exception
public UnfiledContainerChild createUnfiledRecordFolderChild(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId, String parameters)
{
mandatoryObject("unfiledRecordFolderChildModel", unfiledRecordFolderChildModel);
mandatoryString("unfiledRecordFolderId", unfiledRecordFolderId);
@@ -190,9 +191,9 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* @param unfiledRecordFolderChildContent {@link File} pointing to the content of the electronic record to be created
* @param unfiledRecordFolderId The identifier of a unfiled record folder
* @return newly created {@link UnfiledContainerChild}
* @throws Exception for invalid recordModel JSON strings
* @throws RuntimeException for invalid recordModel JSON strings
*/
public UnfiledContainerChild uploadRecord(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId, File unfiledRecordFolderChildContent) throws Exception
public UnfiledContainerChild uploadRecord(UnfiledContainerChild unfiledRecordFolderChildModel, String unfiledRecordFolderId, File unfiledRecordFolderChildContent)
{
mandatoryObject("unfiledRecordFolderChildModel", unfiledRecordFolderChildModel);
mandatoryObject("unfiledRecordFolderChildContent", unfiledRecordFolderChildContent);
@@ -208,7 +209,15 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* to the request.
*/
RequestSpecBuilder builder = getRmRestWrapper().configureRequestSpec();
JsonNode root = new ObjectMapper().readTree(toJson(unfiledRecordFolderChildModel, UnfiledContainerChild.class, UnfiledContainerChildMixin.class));
JsonNode root;
try
{
root = new ObjectMapper().readTree(toJson(unfiledRecordFolderChildModel, UnfiledContainerChild.class, UnfiledContainerChildMixin.class));
}
catch (IOException e)
{
throw new RuntimeException("Failed to convert model to JSON.", e);
}
// add request fields
Iterator<String> fieldNames = root.fieldNames();
while (fieldNames.hasNext())
@@ -225,7 +234,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
/**
* see {@link #updateUnfiledRecordFolder(UnfiledRecordFolder, String, String)
*/
public UnfiledRecordFolder updateUnfiledRecordFolder(UnfiledRecordFolder unfiledRecordFolderModel, String unfiledRecordFolderId) throws Exception
public UnfiledRecordFolder updateUnfiledRecordFolder(UnfiledRecordFolder unfiledRecordFolderModel, String unfiledRecordFolderId)
{
mandatoryObject("unfiledRecordFolderModel", unfiledRecordFolderModel);
mandatoryString("unfiledRecordFolderId", unfiledRecordFolderId);
@@ -240,7 +249,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* @param unfiledRecordFolderId The identifier of an unfiled record folder
* @param parameters The URL parameters to add
* @param returns The updated {@link UnfiledRecordFolder}
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>the update request is invalid or {@code unfiledRecordFolderId} is not a valid format or {@code unfiledRecordFolderModel} is invalid</li>
* <li>authentication fails</li>
@@ -250,7 +259,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* <li>model integrity exception, including file name with invalid characters</li>
* </ul>
*/
public UnfiledRecordFolder updateUnfiledRecordFolder(UnfiledRecordFolder unfiledRecordFolderModel, String unfiledRecordFolderId, String parameters) throws Exception
public UnfiledRecordFolder updateUnfiledRecordFolder(UnfiledRecordFolder unfiledRecordFolderModel, String unfiledRecordFolderId, String parameters)
{
mandatoryObject("unfiledRecordFolderModel", unfiledRecordFolderModel);
mandatoryString("unfiledRecordFolderId", unfiledRecordFolderId);
@@ -268,7 +277,7 @@ public class UnfiledRecordFolderAPI extends RMModelRequest
* Deletes an unfiled record folder.
*
* @param unfiledRecordFolderId The identifier of a unfiled record folder
* @throws Exception for the following cases:
* @throws RuntimeException for the following cases:
* <ul>
* <li>{@code unfiledRecordFolderId} is not a valid format</li>
* <li>authentication fails</li>

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -0,0 +1,142 @@
/*
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2020 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.util;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command.LogContainerCmd;
import com.github.dockerjava.api.model.Container;
import com.github.dockerjava.api.model.Frame;
import com.github.dockerjava.core.DockerClientBuilder;
import com.github.dockerjava.core.command.LogContainerResultCallback;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.SystemUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* Helper class for interaction with docker containers
*
* @author Claudia Agache
* @since 3.1
*/
@Service
public class DockerHelper
{
private static final Logger LOGGER = LoggerFactory.getLogger(DockerHelper.class);
private static final String REPO_IMAGE_NAME = "repository";
@Getter
@Setter
private DockerClient dockerClient;
@Autowired
public DockerHelper(@Value ("${docker.host}") String dockerHost)
{
if (SystemUtils.IS_OS_WINDOWS)
{
this.dockerClient = DockerClientBuilder.getInstance(dockerHost).build();
}
else
{
this.dockerClient = DockerClientBuilder.getInstance().build();
}
}
/**
* Method for returning logs of docker container
*
* @param containerId - ID of the container
* @return list of strings, where every string is log line
*/
private List<String> getDockerLogs(String containerId)
{
final List<String> logs = new ArrayList<>();
// get the logs since current time - 10 seconds
final int timeStamp = (int) (System.currentTimeMillis() / 1000) - 10;
final LogContainerCmd logContainerCmd = getDockerClient().logContainerCmd(containerId);
logContainerCmd.withStdOut(true)
.withStdErr(true)
.withSince(timeStamp) // UNIX timestamp to filter logs. Output log-entries since that timestamp.
.withTimestamps(true); //print timestamps for every log line
try
{
logContainerCmd.exec(new LogContainerResultCallback()
{
@Override
public void onNext(Frame item)
{
logs.add(item.toString());
}
}).awaitCompletion();
}
catch (InterruptedException e)
{
Thread.currentThread().interrupt(); // set interrupt flag
LOGGER.error("Failed to retrieve logs of container " + containerId, e);
}
return logs;
}
/**
* Get the alfresco container logs
*
* @return list of strings, where every string is log line
*/
public List<String> getAlfrescoLogs()
{
final Optional<Container> alfrescoContainer = findContainerByImageName(REPO_IMAGE_NAME);
return (alfrescoContainer.isPresent()) ? getDockerLogs(alfrescoContainer.get().getId()) : Collections.emptyList();
}
/**
* Method for finding a docker container after the image name
*
* @param imageName - the name of the image used by container
* @return the container
*/
private Optional<Container> findContainerByImageName(String imageName)
{
final List<Container> containers = getDockerClient().listContainersCmd().withShowAll(true).exec();
return containers.stream()
.filter(container -> container.getImage().contains(imageName))
.findFirst();
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -54,6 +54,10 @@ public class PojoUtility
*/
private static final Logger LOGGER = LoggerFactory.getLogger(PojoUtility.class);
/** Private constructor to prevent instantiation. */
private PojoUtility()
{}
/**
* see {@link #toJson(Object, Class, Class)}
*/
@@ -122,7 +126,7 @@ public class PojoUtility
}
catch (IOException e)
{
LOGGER.error("Unable to convert the json into a java object.", e.toString());
LOGGER.error("Unable to convert the json into a java object.", e);
}
return obj;
@@ -152,7 +156,7 @@ public class PojoUtility
}
catch (IOException e)
{
LOGGER.error("Unable to convert the json array into a java collection.", e.toString());
LOGGER.error("Unable to convert the json array into a java collection.", e);
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -105,7 +105,7 @@ public class CustomDefinitionsAPI extends BaseAPI
}
catch (JSONException error)
{
LOGGER.error("Unable to get the refId for the custom reference definition " + customDefinition);
LOGGER.error("Unable to get the refId for the custom reference definition {}", customDefinition);
}
}
return null;

View File

@@ -0,0 +1,360 @@
/*-
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2020 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.v0;
import static org.alfresco.rest.core.v0.APIUtils.convertHTTPResponseToJSON;
import static org.apache.http.HttpStatus.SC_OK;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.alfresco.rest.core.v0.APIUtils;
import org.alfresco.rest.core.v0.BaseAPI;
import org.alfresco.rest.rm.community.model.hold.HoldEntry;
import org.alfresco.rest.rm.community.util.PojoUtility;
import org.alfresco.utility.model.UserModel;
import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.stereotype.Component;
/**
* Methods to make API requests using v0 API for generalized holds
*
* @author Rodica Sutu
* @since 3.2
*/
@Component
public class HoldsAPI extends BaseAPI
{
public static final String HOLDS_CONTAINER = "Holds";
/**
* The URI to create a hold
*/
private static final String CREATE_HOLDS_API = "{0}type/rma:hold/formprocessor";
/**
* The URI to add items to hold or to remove items from hold
*/
private static final String RM_HOLDS_API = "{0}rma/holds";
/**
* The URI to get holds.
*/
private static final String GET_RM_HOLDS = RM_HOLDS_API + "?{1}";
/**
* Util method to create a hold
*
* @param user the user creating the hold
* @param password the user's password
* @param holdName the hold name
* @param reason hold reason
* @param description hold description
* @return The HTTP response.
*/
public HttpResponse createHold(String user, String password, String holdName, String reason, String description)
{
return createHold(user, password, holdName, reason, description, SC_OK);
}
/**
* Util method to create a hold
*
* @param user the user creating the hold
* @param password the user's password
* @param holdName the hold name
* @param reason hold reason
* @param description hold description
* @param expectedStatusCode The expected return status code.
* @return The HTTP response or throws AssertionError if the returned status code is not as expected.
*/
public HttpResponse createHold(String user, String password, String holdName, String reason, String description,
int expectedStatusCode)
{
// retrieve the Holds container nodeRef
final String parentNodeRef = getItemNodeRef(user, password, "/" + HOLDS_CONTAINER);
final JSONObject requestParams = new JSONObject();
requestParams.put("alf_destination", getNodeRefSpacesStore() + parentNodeRef);
requestParams.put("prop_cm_name", holdName);
requestParams.put("prop_cm_description", description);
requestParams.put("prop_rma_holdReason", reason);
return doPostJsonRequest(user, password, expectedStatusCode, requestParams, CREATE_HOLDS_API);
}
/**
* Create a hold and get the node ref of the hold from the response body
*
* @param user the user creating the hold
* @param password the user's password
* @param holdName the hold name to be created
* @param reason reason of the hold to be created
* @param description hold description
* @return node ref of the hold created
*/
public String createHoldAndGetNodeRef(String user, String password,
String holdName, String reason, String description)
{
final HttpResponse httpResponse = createHold(user, password, holdName, reason, description);
try
{
return convertHTTPResponseToJSON(httpResponse).getString("persistedObject")
.replace(NODE_REF_WORKSPACE_SPACES_STORE, "");
}
catch(JSONException error)
{
LOGGER.error("Converting message body to JSON failed. Body: {}", httpResponse, error);
}
catch(ParseException error)
{
LOGGER.error("Parsing message body failed.", error);
}
return null;
}
/**
* Deletes hold using RM Actions API and expect action to be successful
*
* @param user the user who does the request
* @param holdNodeRef the hold node ref
* @return The HTTP Response or throws AssertionError if the request is not successful.
*/
public HttpResponse deleteHold(UserModel user, String holdNodeRef)
{
return deleteHold(user.getUsername(), user.getPassword(), holdNodeRef, SC_OK);
}
/**
* Deletes hold using RM Actions API and expect a specific status code
*
* @param username user's username
* @param password its password
* @param holdNodeRef the hold node ref
* @return The HTTP Response or throws AssertionError if the returned status code is not as expected.
*/
public HttpResponse deleteHold(String username, String password, String holdNodeRef, int expectedStatusCode)
{
JSONObject requestParams = new JSONObject();
requestParams.put("name", "deleteHold");
requestParams.put("nodeRef", getNodeRefSpacesStore() + holdNodeRef);
return doPostJsonRequest(username, password, expectedStatusCode, requestParams, RM_ACTIONS_API);
}
/**
* Deletes hold using cmis
*
* @param username user's username
* @param password its password
* @param holdName the hold name
* @throws AssertionError if the deletion was unsuccessful.
*/
public void deleteHold( String username, String password, String holdName)
{
deleteItem(username, password, String.format("/%s/%s", HOLDS_CONTAINER, holdName));
}
/**
* Adds item(content/record/record folder) to the hold
*
* @param user the user who adds the item to the hold
* @param password the user's password
* @param itemNodeRef the nodeRef of the item to be added to hold
* @param holdName the hold name
* @return The HTTP response
*/
public HttpResponse addItemToHold(String user, String password, String itemNodeRef, String holdName)
{
return addItemsToHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName));
}
/**
* Adds a list of items (content/record/record folder) to a list of holds
*
* @param user the user who adds the items to the holds
* @param password the user's password
* @param itemNodeRefs the list of items nodeRefs to be added to holds
* @param holdNames the list of holds
* @return The HTTP response
*/
public HttpResponse addItemsToHolds(String user, String password, List<String> itemNodeRefs, List<String> holdNames)
{
final List<String> holdNodeRefs = holdNames.stream()
.map(hold -> getItemNodeRef(user, password, String.format("/%s/%s", HOLDS_CONTAINER, hold)))
.collect(Collectors.toList());
return addItemsToHolds(user, password, SC_OK, itemNodeRefs, holdNodeRefs);
}
/**
* Adds a list of items (content/record/record folder) to a list of holds
*
* @param user the user who adds the items to the holds
* @param password the user's password
* @param itemNodeRefs the list of items nodeRefs to be added to holds
* @param holdNodeRefs the list of holds
* @return The HTTP response
*/
public HttpResponse addItemsToHolds(String user, String password, int expectedStatus, List<String> itemNodeRefs,
List<String> holdNodeRefs)
{
final JSONObject requestParams = addOrRemoveToFromHoldJsonObject(itemNodeRefs, holdNodeRefs);
return doPostJsonRequest(user, password, expectedStatus, requestParams, RM_HOLDS_API);
}
/**
* Util method to add item(content/record/record folder) to the hold and get the error message
*
* @param user the user who adds the item to the hold
* @param password the user's password
* @param itemNodeRef the nodeRef of the item to be added to hold
* @param holdNodeRef the hold node ref
* @return The error message
*/
public String addToHoldAndGetMessage(String user, String password, int expectedStatus, String itemNodeRef, String
holdNodeRef)
{
final HttpResponse httpResponse = addItemsToHolds(user, password, expectedStatus, Collections.singletonList(itemNodeRef),
Collections.singletonList(holdNodeRef));
return APIUtils.extractErrorMessageFromHttpResponse(httpResponse);
}
/**
* Util method to create the request body used when adding items to holds or when removing items from holds
*
* @param items list of items node refs to be added to holds
* @param holdNodeRefs list of hold node refs for add/remove items
* @return JSONObject fo
*/
private JSONObject addOrRemoveToFromHoldJsonObject(List<String> items, List<String> holdNodeRefs)
{
final JSONArray nodeRefs = new JSONArray();
items.forEach(itemNodeRef -> nodeRefs.put(getNodeRefSpacesStore() + itemNodeRef));
final JSONArray holds = new JSONArray();
holdNodeRefs.forEach(holdNodeRef -> holds.put(getNodeRefSpacesStore() + holdNodeRef));
final JSONObject requestParams = new JSONObject();
requestParams.put("nodeRefs", nodeRefs);
requestParams.put("holds", holds);
return requestParams;
}
/**
* Remove item(content/record/record folder) from hold
*
* @param user the user who removes the item from the hold
* @param password the user's password
* @param itemNodeRef the nodeRef of the item to be removed from hold
* @param holdName the hold name
* @return The HTTP response
*/
public HttpResponse removeItemFromHold(String user, String password, String itemNodeRef, String holdName)
{
return removeItemsFromHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName));
}
/**
* Remove a list of items (content/record/record folder) from a list of holds
*
* @param user the user who removes the item from the hold
* @param password the user's password
* @param itemNodeRefs the list of items nodeRefs to be removed from hold
* @param holdNames the list of hold names
* @return The HTTP response
*/
public HttpResponse removeItemsFromHolds(String user, String password, List<String> itemNodeRefs, List<String> holdNames)
{
final List<String> holdNodeRefs = holdNames.stream()
.map(hold -> getItemNodeRef(user, password, String.format("/%s/%s", HOLDS_CONTAINER, hold)))
.collect(Collectors.toList());
return removeItemsFromHolds(user, password, SC_OK, itemNodeRefs, holdNodeRefs);
}
/**
* Remove a list of items (content/record/record folder) from a list of holds
*
* @param user the user who removes the item from the hold
* @param password the user's password
* @param expectedStatus https status code expected
* @param itemNodeRefs the list of items nodeRefs to be removed from hold
* @param holdNodeRefs the list of hold node refs
* @return The HTTP response
*/
public HttpResponse removeItemsFromHolds(String user, String password, int expectedStatus, List<String> itemNodeRefs,
List<String> holdNodeRefs)
{
final JSONObject requestParams = addOrRemoveToFromHoldJsonObject(itemNodeRefs, holdNodeRefs);
return doPutJsonRequest(user, password, expectedStatus, requestParams, RM_HOLDS_API);
}
/**
* Util method to remove item(content/record/record folder) from hold and get the error message
*
* @param user the user who removes the item from hold
* @param password the user's password
* @param itemNodeRef the nodeRef of the item to be removed from hold
* @param holdNodeRef the hold node ref
* @return The error message
*/
public String removeFromHoldAndGetMessage(String user, String password, int expectedStatus, String itemNodeRef, String
holdNodeRef)
{
final HttpResponse httpResponse = removeItemsFromHolds(user, password, expectedStatus, Collections.singletonList(itemNodeRef),
Collections.singletonList(holdNodeRef));
return APIUtils.extractErrorMessageFromHttpResponse(httpResponse);
}
/**
* Get the list of the available holds which have the item node reference if includedInHold parameter is true,
* otherwise a list of hold node references will be retrieved which do not include the given node reference.
*
* @param user The username of the user to use.
* @param password The password of the user.
* @param itemNodeRef The item node reference
* @param includedInHold True to retrieve the holds which have the item node reference
* @param fileOnly True if only files should be return
* @return return a list of hold entries
*/
public List<HoldEntry> getHolds(String user, String password, final String itemNodeRef,
final Boolean includedInHold, final Boolean fileOnly)
{
final String parameters = (itemNodeRef != null ? "itemNodeRef=" + NODE_REF_WORKSPACE_SPACES_STORE + itemNodeRef : "")
+ (includedInHold != null ? "&includedInHold=" + includedInHold : "")
+ (fileOnly != null ? "&fileOnly=" + fileOnly : "");
final JSONArray holdEntries = doGetRequest(user, password,
MessageFormat.format(GET_RM_HOLDS, "{0}", parameters)).getJSONObject("data").getJSONArray("holds");
return PojoUtility.jsonToObject(holdEntries, HoldEntry.class);
}
}

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -76,7 +76,7 @@ public class RMAuditAPI extends BaseAPI
}
catch (UnsupportedEncodingException e)
{
LOGGER.error("Unable to encode the event name" + e.getMessage());
LOGGER.error("Unable to encode the event name {}", e.getMessage());
}
JSONArray auditEntries = doGetRequest(user, password,
MessageFormat.format(RM_AUDIT_LOG_API,"{0}", parameters)).getJSONObject("data").getJSONArray("entries");

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -27,9 +27,10 @@
package org.alfresco.rest.v0;
import static org.alfresco.dataprep.AlfrescoHttpClient.MIME_TYPE_JSON;
import static org.alfresco.rest.core.v0.APIUtils.ISO_INSTANT_FORMATTER;
import static org.apache.http.HttpStatus.SC_OK;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
@@ -37,14 +38,12 @@ import java.io.IOException;
import java.text.MessageFormat;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import org.alfresco.dataprep.AlfrescoHttpClient;
import org.alfresco.dataprep.AlfrescoHttpClientFactory;
import org.alfresco.dataprep.ContentService;
import org.alfresco.dataprep.UserService;
import org.alfresco.rest.core.v0.BaseAPI;
import org.alfresco.rest.core.v0.RMEvents;
@@ -82,7 +81,6 @@ public class RMRolesAndActionsAPI extends BaseAPI
// logger
private static final Logger LOGGER = LoggerFactory.getLogger(RMRolesAndActionsAPI.class);
private static final String MOVE_ACTIONS_API = "action/rm-move-to/site/rm/documentLibrary/{0}";
private static final String CREATE_HOLDS_API = "{0}type/rma:hold/formprocessor";
/** http client factory */
@Autowired
@@ -92,9 +90,6 @@ public class RMRolesAndActionsAPI extends BaseAPI
@Autowired
private UserService userService;
@Autowired
private ContentService contentService;
/**
* Get all the configured RM roles.
*
@@ -105,7 +100,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
public Set<String> getConfiguredRoles(String adminUser, String adminPassword)
{
// Using "is=true" includes the in-place readers and writers.
JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject("data");
final JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject(
"data");
return jsonObject.toMap().keySet();
}
@@ -119,11 +115,31 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public Set<String> getCapabilitiesForRole(String adminUser, String adminPassword, String role)
{
JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject("data");
final JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject(
"data");
assertTrue("Could not find role '" + role + "' in " + jsonObject.keySet(), jsonObject.has(role));
return jsonObject.getJSONObject(role).getJSONObject("capabilities").keySet();
}
/**
* Creates the body for PUT/POST Roles API requests
*
* @param roleName the role name
* @param roleDisplayLabel a human-readable label for the role
* @param capabilities a list of capabilities for the role
* @return
*/
private JSONObject roleRequestBody(String roleName, String roleDisplayLabel, Set<String> capabilities)
{
final JSONObject requestBody = new JSONObject();
requestBody.put("name", roleName);
requestBody.put("displayLabel", roleDisplayLabel);
final JSONArray capabilitiesArray = new JSONArray();
capabilities.forEach(capabilitiesArray::put);
requestBody.put("capabilities", capabilitiesArray);
return requestBody;
}
/**
* Create a new RM role.
*
@@ -135,13 +151,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public void createRole(String adminUser, String adminPassword, String roleName, String roleDisplayLabel, Set<String> capabilities)
{
JSONObject requestBody = new JSONObject();
requestBody.put("name", roleName);
requestBody.put("displayLabel", roleDisplayLabel);
JSONArray capabilitiesArray = new JSONArray();
capabilities.forEach(capabilitiesArray::put);
requestBody.put("capabilities", capabilitiesArray);
doPostJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, requestBody, RM_ROLES);
doPostJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, roleRequestBody(roleName, roleDisplayLabel, capabilities),
RM_ROLES);
}
/**
@@ -155,13 +166,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public void updateRole(String adminUser, String adminPassword, String roleName, String roleDisplayLabel, Set<String> capabilities)
{
JSONObject requestBody = new JSONObject();
requestBody.put("name", roleName);
requestBody.put("displayLabel", roleDisplayLabel);
JSONArray capabilitiesArray = new JSONArray();
capabilities.forEach(capabilitiesArray::put);
requestBody.put("capabilities", capabilitiesArray);
doPutJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, requestBody, RM_ROLES_ROLE, roleName);
doPutJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, roleRequestBody(roleName, roleDisplayLabel, capabilities),
RM_ROLES_ROLE, roleName);
}
/**
@@ -174,8 +180,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
public void deleteRole(String adminUser, String adminPassword, String roleName)
{
doDeleteRequest(adminUser, adminPassword, MessageFormat.format(RM_ROLES_ROLE, "{0}", roleName));
boolean success = !getConfiguredRoles(adminUser, adminPassword).contains(roleName);
assertTrue("Failed to delete role " + roleName + " with " + adminUser, success);
assertFalse("Failed to delete role " + roleName + " with " + adminUser,
getConfiguredRoles(adminUser, adminPassword).contains(roleName));
}
/**
@@ -205,8 +211,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public void assignRoleToUser(String adminUser, String adminPassword, String userName, String role)
{
AlfrescoHttpClient client = alfrescoHttpClientFactory.getObject();
String reqURL = MessageFormat.format(
final AlfrescoHttpClient client = alfrescoHttpClientFactory.getObject();
final String reqURL = MessageFormat.format(
RM_ROLES_AUTHORITIES,
client.getApiUrl(),
role,
@@ -274,7 +280,7 @@ public class RMRolesAndActionsAPI extends BaseAPI
}
catch (JSONException | IOException e)
{
e.printStackTrace();
LOGGER.error(e.toString());
}
finally
{
@@ -312,16 +318,40 @@ public class RMRolesAndActionsAPI extends BaseAPI
}
/**
* Perform an action on the record folder
* Perform an action on the given content
*
* @param user the user executing the action
* @param password the user's password
* @param contentName the content name
* @return The HTTP response.
*/
public HttpResponse executeAction(String user, String password, String contentName, RM_ACTIONS rm_action)
public HttpResponse executeAction(String user, String password, String contentName, RM_ACTIONS action)
{
return executeAction(user, password, contentName, rm_action, null);
return executeAction(user, password, contentName, action, null);
}
/**
* Creates the body for Actions API requests
*
* @param user the user executing the action
* @param password the user's password
* @param contentName the content on which the action is executed
* @param action the action executed
* @param actionsParams the request parameters
* @return the JSONObject created
*/
private JSONObject actionsRequestBody(String user, String password, String contentName, RM_ACTIONS action,
JSONObject actionsParams)
{
final String recNodeRef = getNodeRefSpacesStore() + contentService.getNodeRef(user, password, RM_SITE_ID, contentName);
final JSONObject requestParams = new JSONObject();
requestParams.put("name", action.getAction());
requestParams.put("nodeRef", recNodeRef);
if (actionsParams != null)
{
requestParams.put("params", actionsParams);
}
return requestParams;
}
/**
@@ -335,19 +365,12 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public HttpResponse executeAction(String user, String password, String contentName, RM_ACTIONS action, ZonedDateTime date)
{
String recNodeRef = getNodeRefSpacesStore() + contentService.getNodeRef(user, password, RM_SITE_ID, contentName);
JSONObject requestParams = new JSONObject();
requestParams.put("name", action.getAction());
requestParams.put("nodeRef", recNodeRef);
final JSONObject actionParams = new JSONObject();
if (date != null)
{
String thisMoment = date.format(DateTimeFormatter.ISO_INSTANT);
requestParams.put("params", new JSONObject()
.put("asOfDate", new JSONObject()
.put("iso8601", thisMoment)
)
);
actionParams.put("asOfDate", new JSONObject().put("iso8601", ISO_INSTANT_FORMATTER.format(date)));
}
final JSONObject requestParams = actionsRequestBody(user, password, contentName, action, actionParams);
return doPostJsonRequest(user, password, SC_OK, requestParams, RM_ACTIONS_API);
}
@@ -363,20 +386,14 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public HttpResponse completeEvent(String user, String password, String nodeName, RMEvents event, Instant date)
{
String recNodeRef = getNodeRefSpacesStore() + contentService.getNodeRef(user, password, RM_SITE_ID, nodeName);
JSONObject requestParams = new JSONObject();
requestParams.put("name", RM_ACTIONS.COMPLETE_EVENT.getAction());
requestParams.put("nodeRef", recNodeRef);
date = (date != null) ? date : Instant.now();
String formattedDate = DateTimeFormatter.ISO_INSTANT.format(date);
requestParams.put("params", new JSONObject()
.put("eventName", event.getEventName())
.put("eventCompletedBy", user)
.put("eventCompletedAt", new JSONObject()
.put("iso8601", formattedDate)
)
);
final JSONObject actionParams = new JSONObject().put("eventName", event.getEventName())
.put("eventCompletedBy", user)
.put("eventCompletedAt", new JSONObject()
.put("iso8601", ISO_INSTANT_FORMATTER.format(date))
);
final JSONObject requestParams = actionsRequestBody(user, password, nodeName, RM_ACTIONS.COMPLETE_EVENT,
actionParams);
return doPostJsonRequest(user, password, SC_OK, requestParams, RM_ACTIONS_API);
}
@@ -391,13 +408,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
*/
public HttpResponse undoEvent(String user, String password, String contentName, RMEvents event)
{
String recNodeRef = getNodeRefSpacesStore() + contentService.getNodeRef(user, password, RM_SITE_ID, contentName);
JSONObject requestParams = new JSONObject();
requestParams.put("name", RM_ACTIONS.UNDO_EVENT.getAction());
requestParams.put("nodeRef", recNodeRef);
requestParams.put("params", new JSONObject()
.put("eventName", event.getEventName()));
final JSONObject requestParams = actionsRequestBody(user, password, contentName, RM_ACTIONS.UNDO_EVENT,
new JSONObject().put("eventName", event.getEventName()));
return doPostJsonRequest(user, password, SC_OK, requestParams, RM_ACTIONS_API);
}
@@ -416,58 +428,8 @@ public class RMRolesAndActionsAPI extends BaseAPI
{
item.delete();
}
boolean success = !(contentService.getFolderObject(contentService.getCMISSession(username, password), siteId, containerName).getChildren().getHasMoreItems());
assertTrue("Not all items were deleted from " + containerName, success);
}
/**
* Deletes hold
*
* @param username user's username
* @param password its password
* @param holdName the hold name
* @throws AssertionError if the deletion was unsuccessful.
*/
public void deleteHold(String username, String password, String holdName)
{
deleteItem(username, password, "/Holds/" + holdName);
}
/**
* Util method to create a hold
*
* @param user the user creating the category
* @param password the user's password
* @param holdName the hold name
* @param reason hold reason
* @param description hold description
* @return The HTTP response (or null if no POST call was needed).
*/
public HttpResponse createHold(String user, String password, String holdName, String reason, String description)
{
// if the hold already exists don't try to create it again
String holdsContainerPath = getFilePlanPath() + "/Holds";
String fullHoldPath = holdsContainerPath + "/" + holdName;
CmisObject hold = getObjectByPath(user, password, fullHoldPath);
if (hold != null)
{
return null;
}
// retrieve the Holds container nodeRef
String parentNodeRef = getItemNodeRef(user, password, "/Holds");
JSONObject requestParams = new JSONObject();
requestParams.put("alf_destination", getNodeRefSpacesStore() + parentNodeRef);
requestParams.put("prop_cm_name", holdName);
requestParams.put("prop_cm_description", description);
requestParams.put("prop_rma_holdReason", reason);
// Make the POST request and throw an assertion error if it fails.
HttpResponse httpResponse = doPostJsonRequest(user, password, SC_OK, requestParams, CREATE_HOLDS_API);
assertNotNull("Expected object to have been created at " + fullHoldPath,
getObjectByPath(user, password, fullHoldPath));
return httpResponse;
assertFalse("Not all items were deleted from " + containerName,
contentService.getFolderObject(contentService.getCMISSession(username, password), siteId, containerName).getChildren().getHasMoreItems());
}
/**

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -28,14 +28,12 @@ package org.alfresco.rest.v0;
import static org.apache.http.HttpStatus.SC_OK;
import org.alfresco.dataprep.ContentService;
import org.alfresco.rest.core.v0.BaseAPI;
import org.apache.http.HttpResponse;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
@@ -49,9 +47,6 @@ public class RecordFoldersAPI extends BaseAPI
{
private static final Logger LOGGER = LoggerFactory.getLogger(RecordFoldersAPI.class);
@Autowired
private ContentService contentService;
/**
* Close the record folder
*

View File

@@ -2,7 +2,7 @@
* #%L
* Alfresco Records Management Module
* %%
* Copyright (C) 2005 - 2018 Alfresco Software Limited
* Copyright (C) 2005 - 2020 Alfresco Software Limited
* %%
* This file is part of the Alfresco software.
* -
@@ -33,7 +33,6 @@ import java.text.MessageFormat;
import java.util.Map;
import org.alfresco.dataprep.CMISUtil.DocumentType;
import org.alfresco.dataprep.ContentService;
import org.alfresco.rest.core.v0.BaseAPI;
import org.apache.chemistry.opencmis.client.api.CmisObject;
import org.apache.commons.lang3.tuple.Pair;
@@ -42,7 +41,6 @@ import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
@@ -59,9 +57,6 @@ public class RecordsAPI extends BaseAPI
private static final String CREATE_NON_ELECTRONIC_RECORD_API = "{0}type/rma:nonElectronicDocument/formprocessor";
@Autowired
private ContentService contentService;
/**
* Declare documents as records
*

Some files were not shown because too many files have changed in this diff Show More