Compare commits

..

1222 Commits

Author SHA1 Message Date
alfresco-build
7b396dc652 [maven-release-plugin] prepare release V3.2.0.3 2020-08-19 11:32:43 +01:00
alfresco-build
5b080cf308 [maven-release-plugin] prepare for next development iteration 2020-08-14 12:04:35 +01:00
alfresco-build
c6a9ec43f5 [maven-release-plugin] prepare release V3.2.0.2 2020-08-14 12:04:24 +01:00
evasques
0ea0565909 Merge pull request #1182 from Alfresco/hotfix-3.2/MNT-21585_fix_ipr_group_match
MNT-21585 - Having EVERYONE in original ACL causes IPR duplication (#…
2020-08-10 11:10:21 +01:00
evasques
ff81afe125 MNT-21585 - Having EVERYONE in original ACL causes IPR duplication (#1144)
* MNT-21585 - Having EVERYONE in original authorities causes IPR duplication

* Update License Headers

* prevent NPE when authorities is null and refactored findIPRGroup method
2020-07-29 13:21:33 +01:00
Claudia Agache
2a014eefe0 Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge-3.2/APPS-235_SetupEnv_no
# Conflicts:
#	.travis.yml
2020-07-15 16:49:27 +03:00
rodicasutu
4c9fe378c6 Merge remote-tracking branch 'remotes/origin/release/V3.1' into merge-3.2/APPS-230_BuildAGSOnTravis
# Conflicts:
#	pom.xml

# Conflicts:
#	.travis.settings.xml
#	.travis.yml
2020-07-15 09:19:38 +03:00
Claudia Agache
6d22541437 Change SCM URLs in order to switch to SSH authentication with 2FA for Github
(cherry picked from commit 53f26b5793)
2020-06-09 08:53:33 +01:00
Claudia Agache
06a8df491c RM-7131 Update old gitlab repo links with the new one from github
(cherry picked from commit c3cdd88873)
2020-06-09 08:29:35 +01:00
alfresco-build
5b34dbd24f [maven-release-plugin] prepare for next development iteration 2020-02-26 12:04:24 +00:00
alfresco-build
783dcc7710 [maven-release-plugin] prepare release V3.2.0.1 2020-02-26 12:04:18 +00:00
Rodica Sutu
7604b96b88 Merge branch 'hotfix-3.2/MNT-21292_DownloadsViaPostForRecord' into 'release/V3.2.0.x'
Resolve MNT-21292 "Hotfix 3.2/ downloadsviapostforrecord"

See merge request records-management/records-management!1388
2020-02-24 10:52:15 +00:00
Rodica Sutu
e78f159844 Merge branch 'feature/RM-7012_ActionNameInListOfValuesForAudit' into 'master'
RM-7012

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

(cherry picked from commit a3450f74cf)
2020-02-21 15:04:35 +02:00
Rodica Sutu
43268debd3 move test DownloadAsZipRecordTest into rm enterprise package as there is no ACS 6.1.1 community equivalent and the issue is not reproducing with ACS community 6.1.2-ga 2020-02-21 11:23:32 +02:00
Rodica Sutu
b2b0121d20 revert unwanted changes 2020-02-20 12:53:54 +02:00
Rodica Sutu
738fce1c37 update the ACS library versions in order to have the changes that cause download post to work 2020-02-20 10:11:22 +02:00
Rodica Sutu
1292cb495b 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
2020-02-19 19:56:11 +02:00
Rodica Sutu
098c80bd03 cherry pick
# Conflicts:
#	rm-community/rm-community-repo/source/java/org/alfresco/module/org_alfresco_module_rm/capability/policy/AssocPolicy.java
#	rm-community/rm-community-repo/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/record/DownloadAsZipRecordTest.java
2020-02-18 16:32:43 +02:00
Rodica Sutu
49f504ba93 update the assoc policy for the case when the create assoc source node is not a file plan component node 2020-02-18 16:31:20 +02:00
Rodica Sutu
d85d6227ce Merge branch 'hotfix-3.2/MNT-21292_UpdateHeadersCherryPick' into 'release/V3.2.0.x'
Hotfix 3.2/ updateheaderscherrypick"

See merge request records-management/records-management!1386
2020-02-18 14:16:14 +00:00
Sara Aspery
2790244142 Update license headers 2020-02-18 11:10:36 +02:00
Sara Aspery
2d0913df35 Merge branch 'release/V3.1' into release/V3.2 2020-02-18 11:07:45 +02:00
cagache
55602eb72c Update version to 3.2.0.1-SNAPSHOT 2019-10-22 12:36:41 +03: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
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
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
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
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
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
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
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
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
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
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
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
alfresco-build
35e2523fe6 [maven-release-plugin] prepare release V2.7.0.1 2018-06-15 13:14:50 +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
54285c1fd9 RM-6363 Use internal-releases credentials for all deployment repos.
(cherry picked from commit 7840703706)
2018-06-15 11:46:24 +01:00
Tom Page
e381b8ba15 RM-6363 Add correct destinations for released artifacts.
(cherry picked from commit f47875c100)
2018-06-15 11:46:20 +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
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
Rodica Sutu
1dd650d5eb rename the extended bean simpleMappingExceptionResolverParent (core change) 2018-06-14 08:27:55 +03:00
David Webster
d0c1afcb89 Updates to GS entitiy relationships, add packages, flesh out metadeta, esp Disposition 2018-06-13 13:53:02 +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
Sara Aspery
0da38c1bb7 RM-6354 Module repo version error 2018-06-13 10:28:36 +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
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
alfresco-build
5796d0ef11 [maven-release-plugin] prepare for next development iteration 2018-06-06 15:49:44 +01:00
alfresco-build
2ea308da3c [maven-release-plugin] prepare release V2.7.0.1 2018-06-06 15:49:42 +01: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
alfresco-build
1ae5c9a3ef [maven-release-plugin] prepare for next development iteration 2018-06-06 12:32:55 +01:00
alfresco-build
6fb73c0f26 [maven-release-plugin] prepare release V2.7.0.1 2018-06-06 12:32:53 +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
alfresco-build
f2c2a970d4 [maven-release-plugin] prepare for next development iteration 2018-06-06 10:47:51 +01:00
alfresco-build
35991c7bf2 [maven-release-plugin] prepare release V2.7.0.1 2018-06-06 10:47:49 +01:00
Ross Gale
6f671e7aeb Merging up from 2.5.4 2018-06-06 10:06:07 +01: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
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
d2500ac516 Merge branch 'hotfix-2.7/RM-6377_AccessionVisibilityFixBackport' into 'release/V2.7.0.x'
Backport fix from master

See merge request records-management/records-management!1020
2018-06-01 10:11:33 +01: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
Roxana Lucanu-Ghetu
6175e46e24 RM-6337 Code review changes 2018-05-31 16:02:21 +03:00
Roxana Lucanu-Ghetu
5a32d48b57 RM-6337 Code review changes 2018-05-31 16:01:59 +03:00
Roxana Lucanu-Ghetu
8c37e0ca82 RM-6337 Fix failing tests 2018-05-31 16:00:32 +03:00
Roxana Lucanu-Ghetu
085cb55764 RM-6337 Fix visibility conditions for accession step. 2018-05-31 15:59:47 +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
jcule
0e9a680ea2 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:25:15 +01:00
jcule
f254a2462e RM-6310: sc:securityMarksSearch is not properly updated when editing the content classification (affects the results from RM search results): fixed typo 2018-05-29 14:48:39 +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
jcule
5f940ed287 RM-6310: sc:securityMarksSearch is not properly updated when editing the content classification (affects the results from RM search results): automation test 2018-05-25 21:46:19 +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
576cc2d06e RM-6318: Search for "derived by" and classification reasons: Automate AC - fixed tests 2018-05-23 16:37:03 +01: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
d278ed86a9 Merge remote-tracking branch 'remotes/origin/release/V2.7.0.x' into feature/RM-6310_securityMarksSearchNotProperlyUpdated_AutomationTests 2018-05-23 15:10:06 +01:00
jcule
4c902ebf0e Merge remote-tracking branch 'remotes/origin/release/V2.7.0.x' into feature/RM-6310_securityMarksSearchNotProperlyUpdated_AutomationTests 2018-05-23 12:42:57 +01:00
jcule
8140842066 RM-6318: Search for "derived by" and classification reasons: Automate AC 2018-05-23 12:37:34 +01:00
jcule
43ad506338 RM-6318: Search for "derived by" and classification reasons: Automate AC 2018-05-23 11:53:11 +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
jcule
71d353d963 RM-6318: Search for "derived by" and classification reasons: Automate AC 2018-05-22 20:13:42 +01:00
Rodica Sutu
2befbb56e3 library updates 2018-05-22 17:20:31 +03:00
Sara Aspery
d4721683f6 Merge branch 'feature/RM-6318_SearchUpdatesForCert' into 'release/V2.7.0.x'
RM-6318 SearchDerivedByJavaAPI

See merge request records-management/records-management!996
2018-05-22 13:26:30 +01: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
933904a15c added license 2018-05-21 16:03:34 +03:00
cagache
e6ab009ee2 code review changes 2018-05-21 15:50:56 +03:00
jcule
c1ffecb1d6 RM-6318: Search for "derived by" and classification reasons: Automate AC 2018-05-21 13:38:21 +01:00
cagache
9e148643ec reverted version changes 2018-05-21 11:58:17 +03:00
cagache
3eb3983b30 javadoc updates 2018-05-21 11:20:24 +03:00
cagache
85a3c99b33 fix license 2018-05-21 11:08:50 +03:00
cagache
f400532496 Merge remote-tracking branch 'remotes/origin/release/V2.7' into hotfix-2.7/RM-6320_DeclassificationReviewTests 2018-05-21 10:41:15 +03:00
cagache
4c11e48ff3 RM-6320 Automated tests for Declassification review for records and record folders 2018-05-18 17:45:38 +03:00
Jelena Cule
b641f3807c Merge branch 'feature/RM-6302_AddEditFunctionalityToDispositionSchedule_AutomationTest1' into 'release/V2.7.0.x'
Merge to release/v2.7.0.x

See merge request records-management/records-management!1005
2018-05-18 10:36:53 +01:00
Jelena Cule
dc6e2e0e98 Merge branch 'feature/RM-6302_AddEditFunctionalityToDispositionSchedule_AutomationTest1' into 'release/V2.7'
Merge to release/V2.7

See merge request records-management/records-management!1004
2018-05-18 10:34:50 +01:00
cagache
1fd239b35f Merge branch 'release/V2.7' 2018-05-18 10:56:25 +03:00
cagache
603362ddd1 Merge remote-tracking branch 'remotes/origin/release/V2.7.0.x' into release/V2.7 2018-05-18 10:54:20 +03:00
Claudia Agache
b3df55117e Merge branch 'feature/RM-6320_AddDecassificationReviewInfo' into 'release/V2.7.0.x'
Add Declassification Review in Records Search

See merge request records-management/records-management!1000
2018-05-18 08:52:39 +01:00
Tom Page
8cbe9efc2e Record-only merge release/V2.7 into master. 2018-05-18 06:52:59 +01:00
Tom Page
65a3919d2f Merge release/V2.7.0.x into release/V2.7. 2018-05-18 06:51:45 +01:00
Tom Page
f838f6a90e Update version to V2.7.0.1-SNAPSHOT. 2018-05-18 06:51:02 +01:00
jcule
280fb0f422 RM-6310: sc:securityMarksSearch is not properly updated when editing the content classification (affects the results from RM search results): automation test 2018-05-17 22:46:53 +01:00
alfresco-build
bab3604934 [maven-release-plugin] prepare for next development iteration 2018-05-17 13:53:57 +01:00
alfresco-build
1a48c3e689 [maven-release-plugin] prepare release V2.7.b 2018-05-17 13:53:55 +01:00
Jelena Cule
6617577e19 Merge branch 'master' into 'feature/RM-6318_SearchForDerivedByAndClassificationReasons_AutomateAC'
Sync with master

See merge request records-management/records-management!1003
2018-05-17 13:12:44 +01:00
alfresco-build
b4426f4e27 [maven-release-plugin] prepare for next development iteration 2018-05-17 11:49:15 +01:00
alfresco-build
cfad6fdf74 [maven-release-plugin] prepare release V2.7.b 2018-05-17 11:49:13 +01:00
jcule
fdfd6279bd RM-6302: Add Edi tFunctionality To Disposition Schedule: automation tests 2018-05-16 18:22:28 +01:00
Roxana Lucanu-Ghetu
8251588fd1 RM-6320 Code review changes. 2018-05-16 15:35:43 +03:00
Tom Page
7f492ca9f9 Remove broken test of legacy feature: RMCaveatConfigServiceImplTest. 2018-05-16 12:20:56 +01:00
jcule
79873a908d RM-6302: Add Edi tFunctionality To Disposition Schedule: automation tests 2018-05-16 11:55:14 +01:00
Roxana Lucanu-Ghetu
5dd2640674 RM-6320 Added Declassification Review properties in records search 2018-05-16 11:03:32 +03: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
Ross Gale
c68ce588bb RM-6318 code review changes 2018-05-15 10:12:03 +01:00
Ross Gale
233fa33afb Merge branch 'release/V2.7' 2018-05-15 09:01:56 +01:00
Ross Gale
e2665e0c2f record only merge with 2.7.0.x 2018-05-15 09:01:01 +01:00
Tom Page
38ba822d29 Record-only merge release/V2.7 into master. 2018-05-15 08:08:25 +01:00
Ross Gale
0866f80b59 Merge branch 'feature/RM-6302_EditDispositionSchedule' into 'release/V2.7.0.x'
merge edit disposition fix to 2.7.0.x

See merge request records-management/records-management!998
2018-05-14 17:02:54 +01:00
Ross Gale
b52bdf395c Merge branch 'feature/RM-6302_EditDispositionSchedule' into 'release/V2.7'
merging edit disposition schedule to 2.7

See merge request records-management/records-management!997
2018-05-14 17:02:04 +01:00
Ross Gale
d80cd3698e Merge branch 'feature/RM-6302_EditDispositionSchedule' into 'master'
Adding the ability to block disposition step completion until all events in the step have been resolved

See merge request records-management/records-management!977
2018-05-14 16:59:42 +01: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
Tom Page
0d32715f19 Revert "[maven-release-plugin] prepare release V2.7.b"
This reverts commit 62f5c84f2e.
2018-05-14 14:02:36 +01:00
Tom Page
a627422919 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit e1c5b749ed.
2018-05-14 14:02:34 +01:00
alfresco-build
e1c5b749ed [maven-release-plugin] prepare for next development iteration 2018-05-14 13:49:40 +01:00
alfresco-build
62f5c84f2e [maven-release-plugin] prepare release V2.7.b 2018-05-14 13:49:38 +01:00
cagache
7f904edcfd Merge branch 'release/V2.7' 2018-05-14 14:24:41 +03:00
cagache
80c3582878 Merge remote-tracking branch 'remotes/origin/release/V2.7.0.x' into release/V2.7 2018-05-14 14:19:42 +03:00
Claudia Agache
6a44198d5a Merge branch 'hotfix-2.7/RM-6311_TestRMSearchOrderByMarks_sm' into 'release/V2.7.0.x'
RM-6311 added API test to check that rm search results are sorted by marks

See merge request records-management/records-management!994
2018-05-14 10:03:46 +01:00
cagache
cc97785d23 code review changes 2018-05-14 11:07:06 +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
cagache
7c41b89cf3 RM-6311 wait for the expected records to be in the search results list 2018-05-11 17:26:09 +03:00
cagache
d0c4593a50 RM-6311 added API test to check that rm search results are ordered by security marks 2018-05-11 16:54:54 +03:00
Rodica Sutu
e87bfb626b Merge branch 'master' of git.alfresco.com:records-management/records-management 2018-05-11 09:21:11 +03:00
Jelena Cule
24ced5d13a Merge branch 'master' into 'feature/RM-6302_EditDispositionSchedule'
Syncing with master

See merge request records-management/records-management!985
2018-05-10 10:23:13 +01:00
Ross Gale
2345e871e1 RM-6302 code review comments addressed 2018-05-09 15:52:01 +01:00
Ross Gale
081dcddbea Merge branch 'master' into feature/RM-6302_EditDispositionSchedule 2018-05-09 14:33:33 +01:00
Ross Gale
888157199d search fields added 2018-05-09 14:29:12 +01:00
Tom Page
ebd7ac2956 Update version to V3.0.0-SNAPSHOT. 2018-05-09 09:15:34 +01:00
Ross Gale
504d85e8d3 Search changes, adding support for search by reason key and 'other source' names 2018-05-04 15:46:30 +01:00
Rodica Sutu
ed5fc95bf3 Merge remote-tracking branch 'remotes/origin/feature/RM-6302_EditDispositionSchedule' 2018-05-04 14:57:14 +03:00
Tom Page
5ff6808ecc Record-only merge of release/V2.7 into master. 2018-05-04 10:28:59 +01:00
Tom Page
b3f9f0bd52 Record-only merge release/V2.7.0.x into release/V2.7. 2018-05-04 10:22:30 +01:00
Tom Page
29ab436eaf Update version to V2.7.1-SNAPSHOT. 2018-05-04 10:18:40 +01:00
alfresco-build
7b15eb6963 [maven-release-plugin] prepare for next development iteration 2018-05-04 10:10:11 +01:00
alfresco-build
606c1637d3 [maven-release-plugin] prepare release V2.7.0 2018-05-04 10:10:09 +01:00
jcule
83635643e6 RM-6288: Record Search of classified files with marks return also the files classified only with classification levels: api test 2018-05-03 18:01:16 +01:00
Ross Gale
308e86a4e5 RM-6302 adding the java work to edit disposition schedule 2018-05-02 21:52:08 +01:00
Ross Gale
b8af7ba22a JITC prevent accession disposition action being offered if there is an incomplete event 2018-05-01 17:51:13 +01:00
Claudia Agache
3fbc054881 Merge branch 'feature/RM-5234_FilterByLoginEventsTests_fp' into 'master'
RM-5234 Filter audit logs by Login events

See merge request records-management/records-management!972
2018-04-30 19:05:17 +01:00
Roxana Lucanu
3beaf71bb1 Merge branch 'feature/RM-5234_AuditEventsFilter_fp' into 'master'
RM-5234 Fix Login filter

See merge request records-management/records-management!971
2018-04-30 19:01:18 +01:00
Roxana Lucanu-Ghetu
d85ded1a8e RM-5234 Minor refactor. 2018-04-30 21:00:40 +03:00
gbroadbent
9f38cddb3a SIMPLIFIED CHINESE: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:12:29 +01:00
gbroadbent
dc10fcb806 BRAZILIAN Portuguese: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:11:49 +01:00
gbroadbent
d25e253a27 RUSSIAN: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:11:13 +01:00
gbroadbent
063792cf58 DUTCH: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:10:36 +01:00
gbroadbent
c462db8e1b NORWEGIAN Bokmal: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:10:05 +01:00
gbroadbent
7a28007ca2 JAPANESE: Updated bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:09:32 +01:00
gbroadbent
41643a0509 ITALIAN: Updated Italian bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:08:50 +01:00
gbroadbent
4a735cde65 FRENCH: Updated French bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:08:17 +01:00
gbroadbent
230460f8ec SPANISH: Updated Spanish bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:07:27 +01:00
gbroadbent
646aa49bfe GERMAN: Updated German bundle based on EN-RM-rev2018-04-30T100445 2018-04-30 17:06:37 +01:00
cagache
918751f962 review changes 2018-04-30 15:54:46 +03:00
Ross Gale
a20ccc5705 WIP edit disposition capability 2018-04-30 11:52:47 +01:00
cagache
5b14d7fd4f RM-5234 Check that user can filter the audit logs by Login successful and Login unsuccessful events 2018-04-30 12:42:29 +03:00
Roxana Lucanu-Ghetu
03579010f1 RM-5234 Fix Login filter 2018-04-30 10:08:19 +03:00
Ross Gale
aa9672cc25 Update rm-events.properties adding string for declassification review 2018-04-27 15:36:18 +01:00
gbroadbent
a0ca321bb8 BRAZILIAN PORTUGUESE: Updated Italian bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:18:31 +01:00
gbroadbent
e761227120 RUSSIAN: Updated Italian bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:17:10 +01:00
gbroadbent
9163374076 DUTCH: Updated Dutch bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:13:31 +01:00
gbroadbent
103fdfedea ITALIAN: Updated Italian bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:12:45 +01:00
gbroadbent
59b0674a42 FRENCH: Updated French bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:10:08 +01:00
gbroadbent
12a6063e4b SPANISH: Updated Spanish bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 15:08:11 +01:00
gbroadbent
4e27fc92c1 GERMAN: Updated German bundle based on EN-RM-rev2018-04-27T090855 2018-04-27 14:49:01 +01:00
Claudia Agache
405a7d3502 Merge branch 'rm-automation-api/RM-5236_AuditGroupEventsTests' into 'master'
RM-5236 Created tests for Audit Group Events

See merge request records-management/records-management!966
2018-04-27 08:26:50 +01:00
Tom Page
9d080fabd8 Merge branch 'feature/RM-5236_AuditGroupEvents_no' into 'master'
RM-5236 Audit events for user groups.

See merge request records-management/records-management!965
2018-04-27 08:22:26 +01:00
Tom Page
95c8e56673 Merge RM-5236_AuditGroupEvents_no into RM-5236_AuditGroupEventsTests. 2018-04-26 15:50:08 +01:00
Tom Page
b37100c477 RM-5236 Refactor common code when getting node name. 2018-04-26 15:49:07 +01:00
cagache
600ad04c44 fix license 2018-04-25 16:50:07 +03:00
cagache
71dadbf722 RM-5236 Added tests for audit group events 2018-04-25 16:40:35 +03:00
cagache
3ee0e2090e Merge remote-tracking branch 'remotes/origin/feature/RM-5236_AuditGroupEvents_no' into rm-automation-api/RM-5236_AuditGroupEventsTests 2018-04-25 16:39:29 +03:00
Tom Page
04686978b3 RM-5236 Audit event for removing group members.
Also tidy up title of audit events so that the user group display
label is used if it exists.
2018-04-25 12:22:23 +01:00
Tom Page
524fc7f740 RM-5236 Audit event for adding member to user group. 2018-04-25 10:54:01 +01:00
Rodica Sutu
7ed8ef7684 Merge branch 'rm-automation-api/RM-6223_CreateUserEventNotDisplayed_no' into 'master'
Tests for RM-6223 Create User Event Not Displayed in the list of audit entries

See merge request records-management/records-management!964
2018-04-25 10:17:54 +01:00
Rodica Sutu
0b44e3fd70 review changes 2018-04-25 11:07:14 +03:00
Rodica Sutu
62d4840ae1 update the java docs for the changes added 2018-04-25 09:41:39 +03:00
Rodica Sutu
535d50edd1 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6223_CreateUserEventNotDisplayed 2018-04-24 17:22:17 +03:00
Rodica Sutu
9c1c934d14 add support for writing tests via API for Audit
simple test for checking the create user event is audited
2018-04-24 17:21:27 +03:00
Tom Page
4dc86b420d RM-5236 Audit user group events.
Add audit events for user group creation and deletion.

Also update the create user event so that the username is still displayed after the user is deleted.
2018-04-24 10:41:06 +01:00
Tom Page
9a8cc02e51 RM-5236 Audit events for creating and deleting a user group. 2018-04-24 08:45:56 +01:00
Rodica Sutu
13c4b4c4ae Merge branch 'feature/RM-6223_AuditCreateUserEvent' into 'master'
Fix for RM-6223 Create User Event  not displayed in Audit Logs

See merge request records-management/records-management!963
2018-04-24 08:40:49 +01:00
Rodica Sutu
68433857c7 integration test for create user event 2018-04-23 17:39:13 +03:00
gbroadbent
1744dacdc9 DUTCH: Updated Dutch bundle based on EN-RM-rev2018-04-12T100714 2018-04-23 14:47:52 +01:00
Rodica Sutu
9b28e44fa1 check if the node is rm specific; 2018-04-23 16:38:24 +03:00
gbroadbent
5781d71c8f BRAZILIAN PORTUGUESE: Updated Brazilian Portuguese bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:33:46 +01:00
gbroadbent
291e29c4bd RUSSIAN: Updated Russian bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:32:38 +01:00
gbroadbent
dc3d239ca0 NORWEGIAN BOKMAL: Updated Norwegian bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:31:49 +01:00
gbroadbent
780d0c152f JAPANESE: Updated Japanese bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:30:54 +01:00
gbroadbent
4eff64617d ITALIAN: Updated Italian bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:20:21 +01:00
gbroadbent
77e63fce4c SPANISH: Updated Spanish bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:19:24 +01:00
gbroadbent
2205284f3f GERMAN: Updated German bundle based on EN-RM-rev2018-04-12T100714 2018-04-20 10:17:11 +01:00
gbroadbent
62fab7bfe3 SIMPLIFIED CHINESE: Updated bundle based on EN-RM-rev2018-04-12T100714 2018-04-17 15:49:50 +01:00
gbroadbent
d5fcb3ef99 FRENCH: Updated French bundle based on EN-RM-rev2018-04-12T100714 2018-04-17 10:40:12 +01:00
Rashmi Itagi
efd1b237f2 Merge branch 'feature/RM-6249_SkipNodesWithExemptions_sm' into 'master'
RM-6249 Don't update the declassification date of nodes with exemptions.

See merge request records-management/records-management!937
2018-04-12 09:46:14 +01:00
Claudia Agache
3f6f1939aa Merge branch 'feature/RM-2053_ClassificationCapability_UI_tests' into 'master'
RM-2053 Classification Capability UI tests

See merge request records-management/records-management!958
2018-04-12 09:19:01 +01:00
cagache
fb2e857d02 applied code review changes 2018-04-12 11:18:17 +03:00
Rodica Sutu
71b5fa7556 Merge branch 'feature/RM-6245_AutomateAcForCategoryId_fp' into 'master'
RM-6245 Tests for Add Record Category Identifier to Record Search Results

See merge request records-management/records-management!959
2018-04-12 07:15:23 +01:00
Rodica Sutu
ffdaf407aa Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6245_AutomateAcForCategoryId_fp 2018-04-12 09:12:42 +03:00
Ross Gale
321d424d40 Merge branch 'feature/RM-6137_AddCategoryIdToSearch' into 'master'
RM-6137 Add record category identifier to search

See merge request records-management/records-management!956
2018-04-11 18:06:17 +01:00
Ross Gale
09ebad77d1 remove unused field from test 2018-04-11 18:06:01 +01:00
Rodica Sutu
df78730461 Merge remote-tracking branch 'remotes/origin/master' into feature/RM-6245_AutomateAcForCategoryId_fp 2018-04-11 16:14:43 +03:00
Ross Gale
44bed4a796 RM-6137 Add record category identifier to search changes added 2018-04-10 17:11:26 +01:00
cagache
25feb9d5bb Merge remote-tracking branch 'remotes/origin/feature/RM-6171_ViewClassifyAction' into feature/RM-2053_ClassificationCapability_UI_tests 2018-04-05 13:48:00 +03:00
cagache
8a5746993c RM-2053 UI tests for Manage Record Classification capability 2018-04-05 13:47:25 +03:00
Roxana Lucanu-Ghetu
7795d3d8b0 RM-6171 Fix to display classify action from a collaboration site. 2018-04-05 11:52:20 +03:00
cagache
91f810e7e8 Merge remote-tracking branch 'remotes/origin/feature/RM-6171_ViewClassifyAction' into feature/RM-2053_ClassificationCapability_UI_tests 2018-04-04 17:19:10 +03:00
Roxana Lucanu-Ghetu
ddcfe2e8c7 RM-6171 Added restrictions for displaying classify option. 2018-04-04 15:16:18 +03:00
rwetherall
60422a853a Role and Capability initial technical documentation. 2018-04-04 10:45:50 +10:00
Claudia Agache
e690c80906 Merge branch 'feature/RM_2053_ClassificationCapability_fixTests' into 'feature/RM-2053_ClassificationCapability'
RM-2053 Fix rest api tests affected by new capability

See merge request records-management/records-management!947
2018-04-03 13:42:32 +01:00
cagache
608dfc066c RM-2053 UI tests for Manage Record Classification capability 2018-04-03 09:21:03 +03:00
Rodica Sutu
eae3fd403a Merge branch 'feature/RM-2004_ExemptionCapability' into 'master'
Create an "Add Declassification Exemptions" capability

See merge request records-management/records-management!926
2018-04-02 15:51:07 +01:00
cagache
aa6d0b3ceb Merge remote-tracking branch 'remotes/origin/feature/RM-2004_ExemptionCapabilityFixTests' into feature/RM_2053_ClassificationCapability_fixTests 2018-03-30 14:18:26 +03:00
Rodica Sutu
18cf69b56e changes after review 2018-03-30 09:53:43 +03:00
Rodica Sutu
4a10ded602 Merge remote-tracking branch 'remotes/origin/feature/RM-2004_ExemptionCapability' into feature/RM-2004_ExemptionCapabilityFixTests 2018-03-29 21:01:02 +03:00
Rodica Sutu
1075455457 changes to cover review;
remove unnecessary changes
move the capability check a bit earlier in the classification process
2018-03-29 12:27:10 +03:00
Rodica Sutu
38dd584839 changes to cover review;
remove unnecessary changes
move the capability check a bit earlier in the classification process
2018-03-28 23:14:11 +03:00
cagache
1054fcef62 RM-2053 Fix tests affected by the new Manage Record Classification capability 2018-03-28 17:11:06 +03:00
Rodica Sutu
8d5b2f785d change the list of capabilities into a set 2018-03-28 12:16:31 +03:00
Rodica Sutu
419484719c change the UserRoles.java to a enum
add the within RoleService a utility method to add/remove list of capabilities from a ROLE
2018-03-27 21:14:21 +03:00
Rodica Sutu
ba1e480536 Merge branch 'remotes/origin/master' into feature/RM-2004_ExemptionCapability
# Conflicts:
#	rm-automation/rm-automation-enterprise-rest-api/src/main/java/org/alfresco/rest/rm/enterprise/core/ClassificationData.java
#	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/messages/classified-content/classified-content.properties
#	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/model/recordsPermissionModel.xml
#	rm-enterprise/rm-enterprise-repo/src/main/amp/config/alfresco/module/alfresco-rm-enterprise-repo/security/rm-default-roles-bootstrap.json
2018-03-27 18:07:08 +03:00
Tom Page
e85914c857 RM-6249 Don't update the declassification date of nodes with exemptions. 2018-03-27 15:29:16 +01:00
Roxana Lucanu-Ghetu
9080fc7976 RM-2053 Added classification capability restriction to classify action. Code review changes. 2018-03-27 01:25:49 +03:00
Rodica Sutu
9671416fd5 Merge branch 'feature/RM-5235_Audit_DeleteUser' into 'master'
RM-5235_Audit_DeleteUser

See merge request records-management/records-management!925
2018-03-24 15:56:19 +00:00
Ross Gale
132b301d8e RM-2004 adding in changes for AddDeclassificationExemption capability. A user can only add an exemption if they have the capability, this includes appling classification guides 2018-03-23 16:00:08 +00:00
Rodica Sutu
b537bf6804 minor java docs update 2018-03-23 17:31:02 +02:00
Rodica Sutu
9d6bdeaa8b review changes 2018-03-23 17:28:21 +02:00
Rodica Sutu
d009244189 test to cover the audit event for user deletion 2018-03-23 08:59:29 +02:00
cagache
490c7d9954 Merge branch 'master' into feature/RM-6167_RequestRecalculation_API_tests_no 2018-03-22 17:22:21 +02:00
Rodica Sutu
07d494f165 Merge remote-tracking branch 'remotes/origin/master' into xperimental/RM-5235_Audit_DeleteUser 2018-03-21 23:07:22 +02:00
Rodica Sutu
da54db41c7 audit the properties specific to cm:person before deleting the node in order to provide information about the delete user 2018-03-21 23:06:48 +02:00
cagache
cb449f532b moved createRMSite from a test class to base class 2018-03-21 15:00:50 +02:00
Sara Aspery
ec094f8e98 Merge branch 'feature/RM-6107__ViewAndAddExemptionUI_sm' into 'master'
RM-6107 View and Add Exemption UI

See merge request records-management/records-management!872
2018-03-21 09:18:29 +00:00
Rodica Sutu
94581b56fa audit the delete person event on beforeDeleteNode 2018-03-20 21:52:25 +02:00
Ross Gale
a8be3bdc96 RM-2004 adding update to use enterprise files for all besides recordsPermissionModel 2018-03-20 16:52:39 +00:00
Rodica Sutu
f658688783 audit the cm:person beforeDeleteNode 2018-03-20 08:49:04 +02:00
Rodica Sutu
d40accb9af Merge branch 'feature/RM-6151RemoveExemptionUITests_sm' into 'feature/RM-6107__ViewAndAddExemptionUI_sm'
RM-6151 RemoveExemptionUITests_sm

See merge request records-management/records-management!897
2018-03-14 07:06:04 +00:00
Ross Gale
6dac611ab1 RM-2004 initial commit of capability 2018-03-13 10:26:05 +00:00
Rodica Sutu
99f32e08e2 Merge remote-tracking branch 'remotes/origin/feature/RM-6106_ViewAddExemptions_Automate_AC' into feature/RM-6151RemoveExemptionUITests_sm
# Conflicts:
#	rm-automation/rm-automation-ui/src/main/java/org/alfresco/po/share/console/securitycontrols/DeclassificationExemptionsPanel.java
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/enterprise/level2/filePlan/ManagePermissionsTests.java
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/enterprise/security/configuration/AddAndViewDeclassificationExemptionsTests.java
#	rm-enterprise/rm-enterprise-share/src/main/amp/config/alfresco/site-webscripts/org/alfresco/components/console/classification/security-groups.get.properties
2018-03-09 10:18:08 +02:00
Tom Page
6ebb19abef Merge branch 'feature/RM-6129_ManageClassifCapTests_no' into 'master'
RM-6129 Create new API test methods to interact with RM roles

See merge request records-management/records-management!882
2018-03-06 12:58:42 +00:00
cagache
0378205a68 swapped expected status code with actual status code (fix for expected:<500> but was:<200>) 2018-03-06 09:10:12 +02:00
Rodica Sutu
08d409b554 Merge branch 'feature/RM-6106_ViewAddExemptions_Automate_AC' of git.alfresco.com:records-management/records-management into feature/RM-6106_ViewAddExemptions_Automate_AC
# Conflicts:
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/community/level2/disposition_schedule/DispositionScheduleLinkedRecords.java
2018-03-05 15:37:40 +02:00
jcule
48f98f56ec Merge branch 'master' into feature/RM-6106_ViewAddExemptions_Automate_AC 2018-03-05 13:29:24 +00:00
Rodica Sutu
5e23cf092c Revert "Revert "Merge branch 'feature/RM-6107__ViewAndAddExemptionUI_sm' into…""
This reverts commit e9beac0144.
2018-03-05 15:29:05 +02:00
Claudia Agache
e75852d30c Merge branch 'feature/RM-6125_UserWarnDeclassificationDateTests_sm' into 'master'
RM-5296 Automated tests for the Declassification Date exceeds Time Frame warning

See merge request records-management/records-management!875
2018-03-05 07:24:01 +00:00
Tom Page
d35ca27ab8 RM-6129 Use roles from UserRoles. 2018-03-02 15:58:49 +00:00
Tom Page
16fafb4262 RM-6129 Add API tests for creating and editing RM roles. 2018-03-02 13:32:04 +00:00
Tom Page
2faf6dbff6 RM-6125 More useful builder for creating RM site.
Add a private constructor so that Lombok will generate a builder
including the site title and description (which come from a
superclass).
2018-03-02 09:24:28 +00:00
Jelena Cule
e9beac0144 Revert "Merge branch 'feature/RM-6107__ViewAndAddExemptionUI_sm' into…"
This reverts merge request !877
2018-03-01 22:37:45 +00:00
cagache
ee748e3b68 RM-5296 Warn When Declassification Date exceeds Time Frame 2018-03-01 10:45:19 +02:00
Tom Page
d22362e3c3 RM-6129 Add test for capabilities of the RM user. 2018-02-28 16:26:27 +00:00
Tom Page
48b26d6b22 RM-6129 Add test for pre-configured RM roles. 2018-02-28 16:00:34 +00:00
Rodica Sutu
3e99d756a3 Merge branch 'merge/RM-6069_MergeFrom2.6ToMaster' into 'master'
RM-6069_MergeFrom2.5ToMaster

See merge request records-management/records-management!869
2018-02-28 13:16:06 +00:00
Rodica Sutu
9e96d0772b Merge remote-tracking branch 'remotes/origin/release/V2.6' into merge/RM-6069_MergeFrom2.6ToMaster 2018-02-27 17:20:46 +02:00
Rodica Sutu
7b7948ccb4 Merge branch 'merge-2.6/FixesFrom2.5' into merge/RM-6069_MergeFrom2.6ToMaster
# Conflicts:
#	rm-automation/rm-automation-ui/src/main/java/org/alfresco/po/rm/dialog/AuthoritySelectDialog.java
#	rm-automation/rm-automation-ui/src/main/java/org/alfresco/po/share/page/SharePage.java
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/community/level2/disposition_schedule/DispositionScheduleLinkedRecords.java
#	rm-automation/rm-automation-ui/src/test/java/org/alfresco/test/enterprise/security/classification/content/ClassifyRecord.java
#	rm-automation/rm-automation-ui/src/test/resources/smokeTests.xml
#	rm-automation/rm-automation-ui/src/test/resources/testng.xml
2018-02-27 15:35:44 +02:00
alfresco-build
0e869a735f [maven-release-plugin] prepare for next development iteration 2018-02-19 14:24:52 +00:00
alfresco-build
5d80268501 [maven-release-plugin] prepare release V2.7-EA2 2018-02-19 14:24:50 +00:00
Tom Page
a1c9dbc505 Merge branch 'feature/RM-6080_ClassifyRecordFoldersAndCategoriesTests_sm' into 'feature/v2.7EA1'
RM-6080 Check that cleared rm users with filling permissions on a category can classify with children the category or the record folder

See merge request records-management/records-management!843
2018-02-19 08:35:48 +00:00
Tom Page
96e3b8d1b2 RM-6080 Use system user to handle metadata node.
This allows an rm admin user to classify record folders and their children.
2018-02-16 11:10:17 +00:00
alfresco-build
cbfa402a24 [maven-release-plugin] prepare for next development iteration 2018-02-14 15:59:52 +00:00
alfresco-build
50091181f3 [maven-release-plugin] prepare release V2.7-EA1 2018-02-14 15:59:50 +00:00
Tom Page
fb87586fa1 Remove tag from scm management. 2018-02-14 15:41:21 +00:00
Sara Aspery
e5d42ac653 Merge branch 'feature/RM-6040_HighestChildClassificationAllowsNonContainer_sm' into 'master'
Resolve External Issue

See merge request records-management/records-management!834
2018-02-09 16:10:17 +00:00
Sara Aspery
2c0133d0a2 Merge branch 'master' into 'feature/RM-6040_HighestChildClassificationAllowsNonContainer_sm'
# Conflicts:
#   rm-enterprise/rm-enterprise-repo/src/test/java/org/alfresco/module/org_alfresco_module_rm/test/integration/classification/HighestClassificationFromImmediateChildrenTest.java
2018-02-09 10:13:01 +00:00
Sara Aspery
6d1b54d23d RM-6040 Fix Highest Classified Child for non-container 2018-02-09 09:58:53 +00:00
Rodica Sutu
fa973b90f7 Merge branch 'feature/fix_continueSuiteToRun' into 'master'
Fix for stopping the suite of tests to run if @Before/@After fails

See merge request records-management/records-management!830
2018-02-09 07:48:21 +00:00
Rodica Sutu
9b9dce1db2 update the suite of tests with configfailurepolicy="continue" 2018-02-08 15:51:24 +02:00
gbroadbent
29933615d3 JAPANESE: Updated bundle based on EN-rev2018-02-07 2018-02-08 12:36:52 +00:00
gbroadbent
a357526160 SPANISH: Updated bundle based on EN-rev2018-02-07 2018-02-08 12:33:57 +00:00
Sara Aspery
4bdcbd68b7 Merge branch 'feature/RM-6008_HighestClassificationRestApi_no' into 'master'
RM-6008 - Highest Child Classification Rest Api

See merge request records-management/records-management!813
2018-02-05 19:34:28 +00:00
Roxana Lucanu-Ghetu
46e56fa7a4 RM-5733 Removed unused parameter allowContextFromAsOf. 2018-02-04 21:52:46 +02:00
Roxana Lucanu-Ghetu
4c42b2cdf6 RM-5733 Changed the way retention as of date is calculated. 2018-02-02 16:11:38 +02:00
Sara Aspery
5c17f76656 RM-6008 Highest child classification Rest API 2018-02-02 10:52:28 +00:00
Sara Aspery
72b4fc4011 Merge branch 'feature/RM-5987_ViewFullAuditLogCanCrashAlfresco' into 'master'
RM-5987 View Audit Log can crash Alfresco

See merge request records-management/records-management!788
2018-02-01 09:10:12 +00:00
Rodica Sutu
06974177a5 Merge branch 'feature/RM-6007_highestClassificationLevelApiDevelopment_sm' into 'master'
RM-6007 - Added method to find the highest classification level seen by an user in a folder

See merge request records-management/records-management!798
2018-01-30 15:21:12 +00:00
Sara Aspery
cdf68bc39e RM-5987 View Audit Log - removed spring default 2018-01-30 11:50:06 +00:00
Rodica Sutu
2f104e9215 minor updates for getHighestClassificationLevelFromImmediateChildren() implementation
unit tests & integration tests created
2018-01-29 18:16:15 +02:00
Rodica Sutu
1c222cddf6 Merge branch 'feature/RM-6006_SQL_Query' into 'master'
feature/RM-6006_SQL_Query

See merge request records-management/records-management!794
2018-01-29 08:10:56 +00:00
Rodica Sutu
0dfc32fc15 review updates - minor formatting, update java docs 2018-01-29 09:29:08 +02:00
Rodica Sutu
0167d75c44 updates after review:
update the getChildrenPropertyValues return type
update the existing tests from RecordsManagementQueryDAOImplTest that test getChildrenPropertyValues() method
2018-01-26 16:48:38 +02:00
Rodica Sutu
245ffee3e0 modify the hasChildrenWithPropertyValues to getChildrenPropertyValues in order to return the query result
update the implementation where the modified method is used
update tests
2018-01-26 10:57:49 +02:00
Sara Aspery
69439bb3d8 RM-5987 changes from review 2018-01-26 07:11:20 +00:00
Rodica Sutu
0de2737529 change the old query select_CountChildrenWithPropertyValues to return the list of distinct property values from children
update the implementation were the updated query is used
2018-01-24 15:22:10 +02:00
Sara Aspery
d466e29dbc RM-5987 use Spring to hold max entries default 2018-01-24 09:08:09 +00:00
Sara Aspery
c748b65cd9 RM-5987 View Audit Log can crash Alfresco 2018-01-23 17:59:41 +00:00
Tom Page
0393f338ec Merge branch 'feature/TimeZoneFixUnitTest_no' into 'master'
Revert changes to getStartOfDay.

See merge request records-management/records-management!780
2018-01-19 08:14:25 +00:00
Sara Aspery
55472663ba Merge branch 'feature/RM-5927_v20PatchesRunWhenV22Upgrade' into 'master'
RM-5927 Add appliesToVersion to v20 v21 patches

See merge request records-management/records-management!764
2018-01-18 15:36:41 +00:00
Tom Page
0a54487bcf Revert changes to getStartOfDay.
Sonar suggested using the Java 8 method Instant.truncatedTo, as it is faster than
DateUtils.truncate. However it has different handling of TimeZones, and the old
version of this code only works when the server is set to use UTC. In order to fix
this 'properly' we need code like:
  date = (date == null ? new Date() : date);
  return Date.from(date.toInstant().atZone(ZoneId.systemDefault()).truncatedTo(ChronoUnit.DAYS).toInstant());
which is significantly less readable than just using DateUtils.truncate. Given that
this code hasn't ever been highlighted by our profiling, I suggest we revert back
to the older code.
2018-01-18 16:13:20 +01:00
Sara Aspery
16d7e961de RM-5927 Changes from review 2018-01-18 11:41:02 +00:00
cagache
398f8079fe automated test cases for edit classification sources 2018-01-18 10:12:48 +02:00
Sara Aspery
b1c33ab9a4 RM-5927 Check installed vs current version 2018-01-18 02:58:38 +00:00
cagache
e13ef5e0ae revert last change 2018-01-17 13:05:54 +02:00
cagache
a4167525a2 updated selectors based on review 2018-01-17 13:01:56 +02:00
Sara Aspery
1d144c612b RM-5927 Check version nbrs and remove appliesTo 2018-01-17 06:47:24 +00:00
Tom Page
b18561e81e Merge release/V2.6 into master. 2018-01-16 13:14:22 +00:00
Tom Page
f69b4f2258 Merge branch 'feature/VariousSonarFixes' into 'master'
Various fixes based on issues found by Sonar

See merge request records-management/records-management!773
2018-01-15 15:49:27 +00:00
Sara Aspery
72cf9d05ee RM-5927 Fix v21 appliesFromVersion to 2.0 2018-01-13 01:01:54 +00:00
Tom Page
9becfe79a5 Add debug log message if exceptions are swallowed.
Fix a couple of minor issues in DynamicAuthoritiesGet webscript.
2018-01-12 15:25:56 +00:00
Tom Page
db4871fd8d Replace a few RuntimeExceptions with AlfrescoRuntimeExceptions. 2018-01-12 14:54:51 +00:00
Tom Page
20edcae7c4 A couple of minor fixes.
Fix method signature to refer to the precise exception thrown.

Use Instant from Java 8 rather than DateUtils.truncate.
2018-01-12 14:13:05 +00:00
Brian Remmington
4fc3b718c1 RM-5996: Removed empty pages for clarity. 2018-01-12 09:03:46 +00:00
Sara Aspery
d7a0a34b53 RM-5927 Fix appliesToVersion to 2.0.999 2018-01-11 14:57:33 +00:00
Sara Aspery
c5fdf205f8 RM-5927 Fix appliesToVersion to 2.x.999 2018-01-11 14:56:34 +00:00
Brian Remmington
e5eff8669e RM-5996: Added component diagram to the overview page. 2018-01-11 13:29:13 +00:00
Brian Remmington
7ca167df57 RM-5996: Removed design docs for security marks and content classification from the community code. 2018-01-11 13:16:41 +00:00
Brian Remmington
322c48600c A fairly dumb initial copy of RM-related design information from the Architecture Map 2018-01-11 12:23:09 +00:00
Tom Page
be45b4ba37 Simplify inequality check as suggested in code review. 2018-01-08 08:34:42 +00:00
Tom Page
dbc57451ed Fix some issues raised by Sonar.
Avoid NPE if calculateListOfEmptyFolders returns null in ScheduleXRecordLoaders.

Fix equals method of a few classes to check against the other instance.

Make synchonisation consistent in AppliedSourceServiceImpl and also remove a
redundant null check.

Use Arrays.toString to make a more readable string representation of an array.

Combine a few if statement branches that do the same thing.
2018-01-05 16:19:33 +00:00
Sara Aspery
4972188311 RM-5927 Add appliesToVersion to v20 v21 patches 2018-01-05 11:41:19 +00:00
Jelena Cule
6825040016 Merge branch 'feature/RM-5917_ClassificationSourceReference_API_TESTS_2' into 'master'
Merge RM-5917 ClassificationSourceReference API TESTS to master

See merge request records-management/records-management!731
2018-01-05 10:41:35 +00:00
Jelena Cule
c24ee2ec0f Merge RM-5917 ClassificationSourceReference API TESTS to master 2018-01-05 10:41:35 +00:00
Tom Page
d46ff0b2dd Merge branch 'feature/RM-5344_DODAuditQuery_fp' into 'master'
RM-5344 Only gather DOD audit entries if there is a DOD RM site.

See merge request records-management/records-management!759
2018-01-05 08:19:57 +00:00
Tom Page
77b5d35685 RM-5344 Handle case where site with id "rm" doesn't exist.
This is not possible normally, but it does happen with the integration tests.

Also fix some whitespace in the test class.
2018-01-04 14:38:57 +00:00
Tom Page
29e00d1ec2 RM-5344 Only gather DOD audit entries if there is a DOD RM site.
This creates an edge case where DOD audit entries are no longer displayed
if a DOD RM site is deleted and then a standard RM site is created to
replace it. However this seems like an unlikely use case, and there is a
workaround of exporting the audit log before deleting the DOD RM site.

Two audit queries are still made for DOD RM sites because DOD sites cause
some standard audit entries to be created (e.g. the holds container
created event, etc.).
2018-01-04 12:08:01 +00:00
Elena Hardon
d7088d1a29 Merge branch 'feature/RM-5225_AppendUniqueIdToRecordOnCopyToAction_fp' into 'master'
Solved issue and added integration test

See merge request records-management/records-management!755
2018-01-04 08:56:54 +00:00
Elena Hardon
4540456eb8 RM-5970 - Added javadoc on the class and repaired typo 2018-01-03 16:05:40 +02:00
Elena Hardon
1cb87e7d6c Merge branch 'master' into feature/RM-5225_AppendUniqueIdToRecordOnCopyToAction_fp 2018-01-03 12:13:53 +02:00
Ana Bozianu
9ab406504e Merge branch 'feature/UpdateHeadersTo2018' into 'master'
update headers to 2018

See merge request records-management/records-management!756
2018-01-03 10:12:16 +00:00
Elena Hardon
19dc1d9c55 RM-5970 - Added header for the integration test for copy to action 2018-01-03 12:10:20 +02:00
Ana Manolache
f908442af2 update headers to 2018 2018-01-03 12:01:00 +02:00
Elena Hardon
94594d0b15 RM-5970 - Added integration test for copy to action 2017-12-27 13:15:13 +02:00
Elena Hardon
5fd6602038 RM-5970 - Removed onCopyComplete method from RecordComponentIdentifierAspect because it was overwriting the existing unique id for a record on copy to action 2017-12-21 10:58:30 +02:00
Tom Page
a0e770052b Merge release/V2.6 into master. 2017-12-19 10:27:34 +00:00
Tom Page
81d3e9e322 Revert community pom change "Fix h2scripts version..."
This partially reverts commit 1707339d68.
2017-12-18 15:24:36 +00:00
cagache
a66de5c3e9 Merge remote-tracking branch 'origin/release/v2.6' 2017-12-13 10:01:14 +02:00
cagache
2826521209 Merge branch 'release/V2.6' 2017-12-12 13:23:29 +02:00
Ross Gale
88ac5834c9 Merge branch 'release/V2.6' into merge/2.3.2 2017-12-11 15:19:33 +00:00
Tom Page
ab3fa87fa1 Merge release/V2.6 into master. 2017-12-08 09:25:53 +00:00
Tom Page
48e5a6d852 Merge branch 'merge/RM-5132_AutomationChanges' into 'master'
Merge/rm 5132 automation changes

See merge request records-management/records-management!713
2017-12-08 08:29:05 +00:00
Ana Bozianu
78e9a234f9 Merge branch 'feature/MNT-18502_DODPropertiesOnEMLNodes_no' into 'master'
MNT-18502 - filtered out dod properties if the node is not a dod record

See merge request records-management/records-management!715
2017-12-08 07:53:22 +00:00
Ana Bozianu
3c72bbc0f9 MNT-18502 - filtered out dod properties if the node is not a dod record 2017-12-08 07:53:22 +00:00
David Webster
a265daf8f1 Merge branch 'feature/RM-5900-document-extended-permission-service_no' into 'master'
Feature/rm 5900 document extended permission service no

See merge request !700
2017-12-06 10:59:28 +00:00
David Webster
51a47c56c4 Documentation updates following review 2017-12-06 09:50:50 +00:00
Tom Page
4d6aaff70e Merge release/V2.6 into master. 2017-12-05 10:20:50 +00:00
Claudia Agache
9c9f1d6098 Merge branch 'feature/RestApiRefactoring' into 'master'
deleted duplicates and moved some methods from RmEnterpriseTestUtils to specific…

See merge request !697
2017-11-28 07:56:29 +00:00
Ana Bozianu
a36e1773af Merge remote-tracking branch 'origin/merge-2.6/MNT-18793' into merge/MNT-18793 2017-11-27 15:17:16 +02:00
Tom Page
c73f5b9863 Use apache commons Pair, rather than javafx.
This makes automated import ordering simpler if nothing else.
2017-11-27 11:22:43 +00:00
David Webster
31b4115209 RM-5900: minor link updates 2017-11-24 12:47:03 +00:00
David Webster
a3c5fc26f0 RM-5900: minor link updates 2017-11-24 12:43:35 +00:00
David Webster
d3ba4d89a2 RM-5900: Document Extended Permission Service. 2017-11-24 12:37:49 +00:00
Tom Page
dd2b4aafbf Minor updates to README.md. 2017-11-23 11:12:48 +00:00
Richard Smith
8fd929abec Update reporting email address on CODE_OF_CONDUCT document. 2017-11-23 11:06:06 +00:00
Richard Smith
b882ef25c6 Reformatting README.txt to README.md and adding in a CODE_OF_CONDUCT.md file. 2017-11-23 10:56:33 +00:00
Sara Aspery
38a6134ce8 Merge branch 'feature-2.6/RM-5901_SonarIssuesEmptyCollectionTest' into feature/RM-5901_SonarIssuesEmptyCollectionTest 2017-11-20 15:34:28 +00:00
Sara Aspery
7165c0d95e RM-5901 review changes 2017-11-20 15:14:53 +00:00
Tom Page
0c49d8a0ea Record-only merge of release/V2.6 into master. 2017-11-17 08:24:18 +00:00
Sara Aspery
dd89c7d2f2 RM-5901 fixes in benchmark driver 2017-11-16 18:15:59 +00:00
Sara Aspery
34b863ff16 RM-5901 fixes in community repo 2017-11-16 17:59:02 +00:00
Tom Page
7a83088206 Merge master into RefactorSecurityMark. 2017-11-16 08:57:30 +00:00
Tom Page
38e6bc80dd Update version to 2.7-SNAPSHOT. 2017-11-15 16:31:44 +00:00
Tom Page
5b510cafb4 Fix a test that previously failed to create a security mark.
Also refactor an @BeforeClass into an @Test so that if it fails it doesn't
kill all subsequent tests (in all subsequent classes).
2017-11-10 16:35:00 +00:00
1310 changed files with 18014 additions and 5292 deletions

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,129 @@
import:
- source: travis-env-vars.yml
os: linux
dist: xenial
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
before_script: source scripts/setUpMavenPhase.sh
install:
- 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
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
before_script: source scripts/setUpMavenPhase.sh
install:
- travis_retry travis_wait 80 mvn -B -q clean install $MVN_SKIP -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
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
before_install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-community-repo -am
install:
- bash scripts/startAlfresco.sh $COMMUNITY_REPO_PATH
- bash scripts/waitForAlfrescoToStart.sh
script:
- echo "Community Rest API Tests"
- name: "Enterprise Rest API Tests"
stage: Tests
before_install:
- travis_retry travis_wait 90 mvn -B -q install $MVN_SKIP -PbuildDockerImage -pl :alfresco-governance-services-enterprise-repo -am
install:
- bash scripts/startAlfresco.sh $ENTERPRISE_REPO_PATH
- bash scripts/waitForAlfrescoToStart.sh
script:
- echo "Enterprise Rest API Tests"
- 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"

73
CODE_OF_CONDUCT.md Normal file
View File

@@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at katalin.zanaty@alfresco.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org

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)

172
README.md Normal file
View File

@@ -0,0 +1,172 @@
# Records Management: README
## Contributing
Please refer to our [How to contribute](/CONTRIBUTING.md) guide and our [Contributor Covenant Code of Conduct](/CODE_OF_CONDUCT.md).
## Configuring and starting Alfresco/Share
* Clone the project (e.g. `git clone git@gitlab.alfresco.com:records-management/records-management.git`)
* Import the project as a maven project
* Start the Alfresco/Share instances with the following commands:
```
mvn clean install -Pstart-repo
mvn clean install -Pstart-share
```
(these commands work best if run from the specific directories, e.g. start Share from
rm-community/rm-community-share/ or rm-enterprise/rm-enterprise-share/ )
## Configuring a different DB other than H2 (e.g. MySQL or PostgreSQL)
* Create a file called _local.properties_ under src/main/resources in alfresco-rm-enterprise-repo
* Add the following properties in this new file
```
my.db.name -> The name of the database schema
my.db.port -> The port number for your database (default port number for postgres is 5432 and for mysql it is 3306)
```
* Run the following commands to start your Alfresco instance:
to start Alfresco (using Postgres):
```
mvn clean install -Pstart-repo,use-postgres
```
to start Alfresco (using MySQL):
```
mvn clean install -Pstart-repo,use-mysql
```
## Technical documentation
Technical documentation is available at [rm-community/documentation/README.md](/rm-community/documentation/README.md) and [rm-enterprise/documentation/README.md](/rm-enterprise/documentation/README.md). This should be particularly useful for anyone wanting to integrate with or extend RM.
## Running integration test
In order to execute the integration tests run the following command (unit tests will be executed every time before you start Alfresco/Share):
```
mvn clean install -Dskip.integrationtests=false
```
## Running UI Automation tests
To run the automated UI tests, change to the rm-automation directory and run:
```
mvn clean install -Dskip.automationtests=false
```
Note: due to Selenium Firefox driver changes, the highest supported Firefox version for UI tests is 43.0.4 (with Selenium 2.52.0).
It is possible to have multiple versions of Firefox installed onto your workstation (e.g. one for running the UI tests and the other, kept
up to date, for everyday browsing) but beware Firefox auto-updates. In this scenario the best approach is to create a non-default profile
(default profiles will be shared between your Firefox installations!) for which auto-updates are disabled and forcing the use of this
profile in your tests (`-Dwebdriver.firefox.profile="ProfileName"`). If your Firefox 43 install isn't in your path, you can use the
`-Dwebdriver.firefox.profile` option set to the full path of its "firefox-bin" executable.
MacOS X Sierra users: if you experience by order of magnitude slower performance when connected to a WiFi network (e.g. office WiFi)
add your workstation to your local /etc/hosts file as described on https://github.com/SeleniumHQ/selenium/issues/2824.
To use Chrome instead of Firefox:
1. copy webdriver.properties from https://github.com/AlfrescoTestAutomation/selenium-grid/tree/master/src/main/resources
2. put it under src/test/resource in rm-automation-ui project
3. download the chrome driver from http://chromedriver.storage.googleapis.com and extract it
4. change the following properties in webdriver.properties: webdriver.browser (Chrome) and webdriver.chrome.server.path (path/to/chrome/driver)
5. run the tests as usual
## Updating License Headers
In order to refesh out of date license source headers run the following command:
```
mvn clean install -Dlicense.update.dryrun=false
```
## Running tests against latest Aikau snapshot
The latest Aikau snapshot can be pulled by running the following command in rm-community:
```
mvn clean install -DskipTests -Dalfresco.aikau.version=LATEST -U
```
Thereafter start the Share instance and run automation tests as described above.
## Configuring Outlook Integration
To download and run RM with the Outlook Integration AMPs installed on the repo and Share use the following commands:
```
mvn clean install -Pstart-repo,outlook-integration
mvn clean install -Pstart-share,outlook-integration
```
Follow these instructions to install licence and Outlook plugin:
* http://docs.alfresco.com/outlook2.1/tasks/Outlook-license.html
* http://docs.alfresco.com/outlook2.1/tasks/Outlook-install_v2.html
## SNAPSHOT dependencies
If you're building Enterprise RM, the base project (Community) is pulled in via a snapshot dependency configured in maven.
This dependency will either be loaded from your local .m2 cache, or from Nexus if the version in your .m2 doesn't exist or is old
('old' in maven terms is anything over 24 hours old). If maven fetches community dependencies from Nexus, then it's unlikely to contain your changes.
You want to always use the version in your local cache - this means either doing a daily build at the root project level
that pushes a new copy of the correct version into your cache, or alternatively you could run mvn with the
`--no-snapshot-dependency` (or `-nsu`) option, which won't try to download a newer version.
## Code Formatting
This project follows the usual Alfresco Coding Standards. If you use Eclipse or IntelliJ, there are settings inside the ide-config directory for you to import.
## Surf build errors
If you get:
```
[ERROR] Failed to execute goal on project alfresco-rm-community-share: Could not resolve dependencies for project org.alfresco:alfresco-rm-community-share:amp:2.6-SNAPSHOT: Failed to collect dependencies at org.alfresco.surf:spring-surf-api:jar:6.3 -> org.alfresco.surf:spring-surf:jar:${dependency.surf.version}: Failed to read artifact descriptor for org.alfresco.surf:spring-surf:jar:${dependency.surf.version}: Could not transfer artifact org.alfresco.surf:spring-surf:pom:${dependency.surf.version} from/to alfresco-internal (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
```
then please re-run with `-Ddependency.surf.version=6.3`
## Install lombok plugin for IDEs
To allow automation and benchmark projects to be built within an IDE the lombok 'plugin' needs to be installed.
Execute lombok.jar (doubleclick it, or run `java -jar lombok.jar`). Follow the instructions.
## Use Solr 6 with Alfresco 5.2.x
In alfresco-global.properties (depending on the RM edition `/records-management/rm-community/rm-community-repo/src/test/properties/local` or `/records-management/rm-enterprise/rm-enterprise-repo/src/test/properties/local`)
change the value for "index.subsystem.name" from "solr4" to "solr6".
Add also the following property "solr.port=8983".
Download the latest Alfresco Search Services from
[https://nexus.alfresco.com/nexus/#nexus-search;gav\~\~alfresco-search-services\~\~\~](https://nexus.alfresco.com/nexus/#nexus-search;gav~~alfresco-search-services~~~)
Currently it's 1.0.0 (alfresco-search-services-1.0.0.zip)
Unzip it and change to the "solr" folder within it. Start the Solr server using the following command:
```
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.

View File

@@ -1,155 +0,0 @@
Configuring and starting Alfresco/Share:
----------------------------------------
- Clone the project (e.g. git clone git@gitlab.alfresco.com:records-management/records-management.git)
- Import the project as a maven project
- Start the Alfresco/Share instances with the following commands:
mvn clean install -Pstart-repo
mvn clean install -Pstart-share
(these commands work best if run from the specific directories, e.g. start share from
rm-enterprise/rm-enterprise-share/ or rm-community/rm-community-share/ )
Configuring a different DB other than H2 (e.g. MySQL or PostgreSQL):
--------------------------------------------------------------------
- Create a file called "local.properties" under src/main/resources in alfresco-rm-enterprise-repo
- Add the following properties in this new file
my.db.name -> The name of the database schema
my.db.port -> The port number for your database (default port number for postgres is 5432 and for mysql it is 3306)
- Run the following commands to start your Alfresco instance:
to start Alfresco (using Postgres):
mvn clean install -Pstart-repo,use-postgres
to start Alfresco (using MySQL):
mvn clean install -Pstart-repo,use-mysql
Technical documentation:
------------------------
Technical documentation is available at rm-community/documentation/README.md and rm-enterprise/documentation/README.md.
This should be particularly useful for anyone wanting to integrate with or extend RM.
Running integration test:
-------------------------
In order to execute the integration tests run the following command (unit tests will be executed every time before you start Alfresco/Share):
mvn clean install -Dskip.integrationtests=false
Running UI Automation tests:
----------------------------
To run the automated UI tests, change to the rm-automation directory and run:
mvn clean install -Dskip.automationtests=false
Note: due to Selenium Firefox driver changes, the highest supported Firefox version for UI tests is 43.0.4 (with Selenium 2.52.0).
It is possible to have multiple versions of Firefox installed onto your workstation (e.g. one for running the UI tests and the other, kept
up to date, for everyday browsing) but beware Firefox auto-updates. In this scenario the best approach is to create a non-default profile
(default profiles will be shared between your Firefox installations!) for which auto-updates are disabled and forcing the use of this
profile in your tests (-Dwebdriver.firefox.profile="ProfileName"). If your Firefox 43 install isn't in your path, you can use the
-Dwebdriver.firefox.profile option set to the full path of its "firefox-bin" executable.
MacOS X Sierra users: if you experience by order of magnitude slower performance when connected to a WiFi network (e.g. office WiFi)
add your workstation to your local /etc/hosts file as described on https://github.com/SeleniumHQ/selenium/issues/2824.
To use Chrome instead of Firefox:
- copy webdriver.properties from https://github.com/AlfrescoTestAutomation/selenium-grid/tree/master/src/main/resources
- put it under src/test/resource in rm-automation-ui project
- download the chrome driver from http://chromedriver.storage.googleapis.com/ and extract it
- change the following properties in webdriver.properties: webdriver.browser (Chrome) and webdriver.chrome.server.path (path/to/chrome/driver)
- run the tests as usual
Updating License Headers:
-------------------------
In order to refesh out of date license source headers run the following command:
mvn clean install -Dlicense.update.dryrun=false
Running tests against latest Aikau snapshot:
--------------------------------------------
The latest Aikau snapshot can be pulled by running the following command in rm-community:
mvn clean install -DskipTests -Dalfresco.aikau.version=LATEST -U
Thereafter start the Share instance and run automation tests as described above.
Configuring Outlook Integration:
-------------------------------
To download and run RM with the Outlook Integration AMPs installed on the repo and Share use the following commands:
mvn clean install -Pstart-repo,outlook-integration
mvn clean install -Pstart-share,outlook-integration
Follow these instructions install licence and Outlook plugin:
- http://docs.alfresco.com/outlook2.1/tasks/Outlook-license.html
- http://docs.alfresco.com/outlook2.1/tasks/Outlook-install_v2.html
SNAPSHOT dependencies:
----------------------
If you're building Enterprise RM, the base project (Community) is pulled in via a snapshot dependency configured in maven.
This dependency will either be loaded from your local .m2 cache or from Nexus if the version in your .m2 doesn't exist or is old
(Old in maven terms is anything over 24hrs old). If maven fetches it from Nexus, your code it's unlikely to be the correct version.
You want to always use the version in your local cache - this means either doing a daily build at the root project level
that pushes a new copy of the correct version into your cache, or alternatively you could run mvn with the
--no-snapshot-dependency (or -nsu) option, which won't try to download a newer version.
Code Formatting:
----------------
This project follows the usual Alfresco Coding Standards. If you use Eclipse or IntelliJ, there are settings inside the ide-config directory for you to import.
Surf build errors:
------------------
If you get:
[ERROR] Failed to execute goal on project alfresco-rm-community-share: Could not resolve dependencies for project org.alfresco:alfresco-rm-community-share:amp:2.6-SNAPSHOT: Failed to collect dependencies at org.alfresco.surf:spring-surf-api:jar:6.3 -> org.alfresco.surf:spring-surf:jar:${dependency.surf.version}: Failed to read artifact descriptor for org.alfresco.surf:spring-surf:jar:${dependency.surf.version}: Could not transfer artifact org.alfresco.surf:spring-surf:pom:${dependency.surf.version} from/to alfresco-internal (https://artifacts.alfresco.com/nexus/content/groups/private): Not authorized , ReasonPhrase:Unauthorized. -> [Help 1]
then please re-run with -Ddependency.surf.version=6.3
Install lombok plugin for IDEs:
-------------------------------
To allow automation and benchmark projects to be built within an IDE the lombok 'plugin' needs to be installed.
Execute lombok.jar (doubleclick it, or run java -jar lombok.jar). Follow instructions.
Use Solr 6 with Alfresco 5.2.x:
-------------------------------
In alfresco-global.properties (depending on the RM edition /records-management/rm-community/rm-community-repo/src/test/properties/local or /records-management/rm-enterprise/rm-enterprise-repo/src/test/properties/local)
change the value for "index.subsystem.name" from "solr4" to "solr6".
Add also the following property "solr.port=8983".
Download the latest Alfresco Search Services from
https://nexus.alfresco.com/nexus/#nexus-search;gav~~alfresco-search-services~~~
Currently it's 1.0.0 (alfresco-search-services-1.0.0.zip)
Unzip it and change to the "solr" folder within it. Start the Solr server using the following command:
solr start -a "-Dcreate.alfresco.defaults=alfresco,archive"
Start your repository

883
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.6.1</version>
<artifactId>alfresco-governance-services</artifactId>
<version>3.2.0.3</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>
@@ -131,7 +129,7 @@
</build>
</profile>
<profile>
<id>apply-rm-community</id>
<id>apply-ags-community</id>
<build>
<plugins>
<plugin>
@@ -145,29 +143,15 @@
</goals>
<configuration>
<artifactItems>
<!-- Due to no compatible community version of ACS 5.2.N with RM community
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-community-share</artifactId>
<artifactId>alfresco-governance-services-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>
!-->
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-enterprise-share</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>alfresco-rm-enterprise-repo</artifactId>
<artifactId>alfresco-governance-services-community-repo</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
@@ -192,7 +176,7 @@
<configuration>
<backup>true</backup>
<ampLocation>
${project.build.directory}/amps/alfresco-rm-enterprise-repo-${project.version}.amp
${project.build.directory}/amps/alfresco-governance-services-community-repo-${project.version}.amp
</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war
</warLocation>
@@ -207,7 +191,7 @@
<configuration>
<backup>true</backup>
<ampLocation>
${project.build.directory}/amps/alfresco-rm-enterprise-share-${project.version}.amp
${project.build.directory}/amps/alfresco-governance-services-community-share-${project.version}.amp
</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war
</warLocation>
@@ -219,7 +203,7 @@
</build>
</profile>
<profile>
<id>apply-rm-enterprise</id>
<id>apply-ags-enterprise</id>
<build>
<plugins>
<plugin>
@@ -235,13 +219,13 @@
<artifactItems>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>${alfresco.rm.share}</artifactId>
<artifactId>${ags.share}</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
<artifactItem>
<groupId>org.alfresco</groupId>
<artifactId>${alfresco.rm.repo}</artifactId>
<artifactId>${ags.repo}</artifactId>
<version>${project.version}</version>
<type>amp</type>
</artifactItem>
@@ -265,7 +249,7 @@
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>${project.build.directory}/amps/${alfresco.rm.repo}-${project.version}.amp</ampLocation>
<ampLocation>${project.build.directory}/amps/${ags.repo}-${project.version}.amp</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/alfresco.war</warLocation>
</configuration>
</execution>
@@ -277,7 +261,7 @@
<phase>process-test-resources</phase>
<configuration>
<backup>true</backup>
<ampLocation>${project.build.directory}/amps/${alfresco.rm.share}-${project.version}.amp</ampLocation>
<ampLocation>${project.build.directory}/amps/${ags.share}-${project.version}.amp</ampLocation>
<warLocation>${project.build.directory}/alf-installation/tomcat/webapps/share.war</warLocation>
</configuration>
</execution>

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.6.1</version>
<artifactId>alfresco-governance-services-automation</artifactId>
<version>3.2.0.3</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;
@@ -225,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";
@@ -121,6 +121,37 @@ public abstract class BaseAPI
return results;
}
/**
* Helper method to extract the property value for the given nodeRef and property name
*
* @param result
* @param nodeRef
* @param propertyName
* @return
*/
protected String getPropertyValue(JSONObject result, String nodeRef, String propertyName)
{
String propertyValue = "";
try
{
JSONArray items = result.getJSONArray("items");
for (int i = 0; i < items.length(); i++)
{
JSONObject item = items.getJSONObject(i);
if(nodeRef.equals(item.getString("nodeRef")))
{
propertyValue = item.getJSONObject("properties").getString(propertyName);
}
}
}
catch (JSONException error)
{
throw new RuntimeException("Unable to parse result", error);
}
return propertyValue;
}
/**
* Helper method to extract property values from request result and put them in map as a list that corresponds to a unique property value.
*
@@ -310,6 +341,78 @@ public abstract class BaseAPI
}
}
/**
* Helper method for PUT requests
*
* @param adminUser user with administrative privileges
* @param adminPassword password for adminUser
* @param expectedStatusCode The expected return status code.
* @param requestParams zero or more endpoint specific request parameters
* @param urlTemplate request URL template
* @param urlTemplateParams zero or more parameters used with <i>urlTemplate</i>
*/
protected HttpResponse doPutJsonRequest(String adminUser,
String adminPassword,
int expectedStatusCode,
JSONObject requestParams,
String urlTemplate,
String... urlTemplateParams)
{
AlfrescoHttpClient client = alfrescoHttpClientFactory.getObject();
return doPutJsonRequest(adminUser, adminPassword, expectedStatusCode, client.getApiUrl(), requestParams, urlTemplate, urlTemplateParams);
}
/**
* Helper method for PUT requests
*
* @param adminUser user with administrative privileges
* @param adminPassword password for adminUser
* @param expectedStatusCode The expected return status code.
* @param urlStart the start of the URL (for example "alfresco/s/slingshot").
* @param requestParams zero or more endpoint specific request parameters
* @param urlTemplate request URL template
* @param urlTemplateParams zero or more parameters used with <i>urlTemplate</i>
* @throws AssertionError if the returned status code is not as expected.
*/
private HttpResponse doPutJsonRequest(String adminUser,
String adminPassword,
int expectedStatusCode,
String urlStart,
JSONObject requestParams,
String urlTemplate,
String... urlTemplateParams)
{
String requestUrl = formatRequestUrl(urlStart, urlTemplate, urlTemplateParams);
try
{
HttpResponse httpResponse = doRequestJson(HttpPut.class, requestUrl, adminUser, adminPassword, requestParams);
assertEquals("PUT request to " + requestUrl + " was not successful.", expectedStatusCode, httpResponse.getStatusLine().getStatusCode());
return httpResponse;
}
catch (InstantiationException | IllegalAccessException error)
{
throw new IllegalArgumentException("doPutRequest failed", error);
}
}
/**
* Fill in the parameters for a URL template.
*
* @param urlStart The start of the URL.
* @param urlTemplate The template.
* @param urlTemplateParams Any parameters that need to be filled into the URL template.
* @return The resultant URL.
*/
private String formatRequestUrl(String urlStart, String urlTemplate, String[] urlTemplateParams)
{
if (urlTemplateParams.length == 1)
{
// The format method needs some help to know not to use the whole array object.
return MessageFormat.format(urlTemplate, urlStart, urlTemplateParams[0]);
}
return MessageFormat.format(urlTemplate, urlStart, urlTemplateParams);
}
/**
* Helper method for POST requests
* @param adminUser user with administrative privileges
@@ -403,15 +506,12 @@ public abstract class BaseAPI
String urlTemplate,
String... urlTemplateParams)
{
// Ensure the host is part of the request URL.
String requestUrl = MessageFormat.format(
urlTemplate,
urlStart,
urlTemplateParams);
String requestUrl;
requestUrl = formatRequestUrl(urlStart, urlTemplate, urlTemplateParams);
try
{
HttpResponse httpResponse = doRequestJson(HttpPost.class, requestUrl, adminUser, adminPassword, requestParams);
assertEquals("POST request to " + requestUrl + " was not successful.", httpResponse.getStatusLine().getStatusCode(), expectedStatusCode);
assertEquals("POST request to " + requestUrl + " was not successful.", expectedStatusCode, httpResponse.getStatusLine().getStatusCode());
return httpResponse;
}
catch (InstantiationException | IllegalAccessException error)
@@ -453,7 +553,10 @@ public abstract class BaseAPI
{
((HttpEntityEnclosingRequestBase) request).setEntity(new StringEntity(requestParams.toString()));
}
LOGGER.info("Sending {} request to {}", requestType.getSimpleName(), requestUrl);
LOGGER.info("Request body: {}", requestParams);
response = client.execute(adminUser, adminPassword, request);
LOGGER.info("Response: {}", response.getStatusLine());
try
{
@@ -573,6 +676,9 @@ public abstract class BaseAPI
SHELF,
BOX,
FILE,
ORIGINATOR,
ORIGINATING_ORGANIZATION,
PUBLICATION_DATE
}
public enum RETENTION_SCHEDULE
@@ -587,7 +693,7 @@ public abstract class BaseAPI
RETENTION_GHOST,
RETENTION_ELIGIBLE_FIRST_EVENT,
RETENTION_EVENTS,
COMBINE_DISPOSITION_STEP_CONDITIONS
}
/**
@@ -596,9 +702,12 @@ public abstract class BaseAPI
public enum RM_ACTIONS
{
EDIT_DISPOSITION_DATE("editDispositionActionAsOfDate"),
END_RETENTION("retain"),
CUT_OFF("cutoff"),
UNDO_CUT_OFF("undoCutoff"),
TRANSFER("transfer"),
COMPLETE_EVENT("completeEvent"),
UNDO_EVENT("undoEvent"),
DESTROY("destroy");
String action;

View File

@@ -0,0 +1,49 @@
/*
* #%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.core.v0;
public enum RMEvents
{
ABOLISHED("abolished"),
ALL_ALLOWANCES_GRANTED_ARE_TERMINATED("all_allowances_granted_are_terminated"),
CASE_CLOSED("case_closed"),
DECLASSIFICATION_REVIEW("declassification_review"),
OBSOLETE("obsolete"),
NO_LONGER_NEEDED("no_longer_needed"),
STUDY_COMPLETE("study_complete");
private String eventName;
RMEvents(String eventName)
{
this.eventName = eventName;
}
public String getEventName()
{
return eventName;
}
}

View File

@@ -0,0 +1,89 @@
/*
* #%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.audit;
import java.util.List;
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 audit entry
*
* @author Rodica Sutu
* @since 2.7
*/
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties (ignoreUnknown = true)
public class AuditEntry extends TestModel
{
@JsonProperty (required = true)
private String nodeName;
@JsonProperty (required = true)
private List<Object> changedValues;
@JsonProperty (required = true)
private String identifier;
@JsonProperty (required = true)
private String path;
@JsonProperty (required = true)
private String nodeRef;
@JsonProperty (required = true)
private String fullName;
@JsonProperty
private String createPerson;
@JsonProperty (required = true)
private String userName;
@JsonProperty (required = true)
private String userRole;
@JsonProperty (required = true)
private String nodeType;
@JsonProperty (required = true)
private String event;
@JsonProperty (required = true)
private String timestamp;
}

View File

@@ -0,0 +1,57 @@
/*
* #%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.audit;
/**
* Enumerates the list of events audited
*
* @author Rodica Sutu
* @since 2.7
*
*/
public enum AuditEvents
{
CREATE_PERSON("Create Person", "Create User"),
DELETE_PERSON("Delete Person", "Delete User"),
CREATE_USER_GROUP("Create User Group", "Create User Group"),
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");
/** event audited */
public final String event;
/** display name for the event audited */
public final String eventDisplayName;
AuditEvents(String event, String displayName)
{
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.
* -

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.
* -
@@ -36,4 +36,10 @@ public class 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";
}

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.
* -
@@ -58,6 +58,8 @@ public class FilePlanComponentFields
public static final String PROPERTIES_RECORD_SEARCH_DISPOSITION_ACTION_NAME = "rma:recordSearchDispositionActionName";
public static final String PROPERTIES_RECORD_SEARCH_DISPOSITION_EVENTS_ELIGIBLE = "rma:recordSearchDispositionEventsEligible";
public static final String PROPERTIES_RECORD_SEARCH_DISPOSITION_INSTRUCTIONS = "rma:recordSearchDispositionInstructions";
public static final String PROPERTIES_DECLASSIFICATION_REVIEW_COMPLETED_BY = "rma:declassificationReviewCompletedBy";
public static final String PROPERTIES_DECLASSIFICATION_REVIEW_COMPLETED_AT = "rma:declassificationReviewCompletedAt";
/** File plan properties */
@@ -74,10 +76,13 @@ public class FilePlanComponentFields
public static final String PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD = "rma:recordSearchVitalRecordReviewPeriod";
public static final String PROPERTIES_RECORD_SEARCH_VITAL_RECORD_REVIEW_PERIOD_EXPRESSION = "rma:recordSearchVitalRecordReviewPeriodExpression";
/** Record properties */
/**
* Record properties
*/
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.
* -

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.
* -

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.
* -
@@ -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.
* -
@@ -42,7 +42,6 @@ import lombok.NoArgsConstructor;
* @author Rodica Sutu
* @since 2.6
*/
@Builder
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@@ -51,4 +50,13 @@ public class RMSite extends RestSiteModel
{
@JsonProperty (required = true)
private RMSiteCompliance compliance;
/** Private constructor allowing Lombok to include superclass fields in the builder. */
@Builder
private RMSite(String title, String description, RMSiteCompliance compliance)
{
this.setTitle(title);
this.setDescription(description);
this.compliance = compliance;
}
}

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

@@ -0,0 +1,42 @@
/*
* #%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.user;
/**
* Constants for RM user capabilities
*
* @author Rodica Sutu
* @since 2.7
*/
public class UserCapabilities
{
/** The id of the view records capability. */
public static final String VIEW_RECORDS_CAP = "ViewRecords";
/** The id of the declare records capability. */
public static final String DECLARE_RECORDS_CAP = "DeclareRecords";
}

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.
* -
@@ -24,19 +24,32 @@
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
* #L%
*/
package org.alfresco.rest.rm.community.model.user;
/**
* Constants for RM user roles
*
*
* @author Kristijan Conkas
* @since 2.6
*/
public class UserRoles
public enum UserRoles
{
public static final String ROLE_RM_ADMIN = "Administrator";
public static final String ROLE_RM_MANAGER = "RecordsManager";
public static final String ROLE_RM_POWER_USER = "PowerUser";
public static final String ROLE_RM_SECURITY_OFFICER = "SecurityOfficer";
public static final String ROLE_RM_USER = "User";
IN_PLACE_WRITERS("ExtendedWriters", "In-Place Writers"),
ROLE_RM_ADMIN("Administrator", "Records Management Administrator"),
ROLE_RM_MANAGER("RecordsManager", "Records Management Manager"),
ROLE_RM_POWER_USER("PowerUser", "Records Management Power User"),
ROLE_RM_SECURITY_OFFICER("SecurityOfficer", "Records Management Security Officer"),
ROLE_RM_USER("User", "Records Management User");
public final String roleId;
public final String displayName;
UserRoles(String roleId, String displayName)
{
this.roleId = roleId;
this.displayName = 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.
* -
@@ -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>
@@ -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.
* -
@@ -41,10 +41,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 +57,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 +68,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>

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,8 +45,8 @@ 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;
@@ -66,7 +66,7 @@ public class RecordFolderAPI extends RMModelRequest
/**
* Constructor.
*
* @param restWrapper
* @param rmRestWrapper RM REST Wrapper
*/
public RecordFolderAPI(RMRestWrapper rmRestWrapper)
{
@@ -77,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>
@@ -113,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>
@@ -136,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);
@@ -151,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>
@@ -161,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);
@@ -191,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>

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.
* -
@@ -28,9 +28,18 @@ package org.alfresco.rest.rm.community.util;
import static org.alfresco.rest.rm.community.util.ParameterCheck.mandatoryObject;
import java.io.IOException;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionType;
import org.json.JSONArray;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Utility class for creating the json object
@@ -40,6 +49,11 @@ import com.fasterxml.jackson.databind.ObjectMapper;
*/
public class PojoUtility
{
/**
* Logger for the class.
*/
private static final Logger LOGGER = LoggerFactory.getLogger(PojoUtility.class);
/**
* see {@link #toJson(Object, Class, Class)}
*/
@@ -85,4 +99,64 @@ public class PojoUtility
return error.toString();
}
}
/**
* Converting json to java object
*
* @param json The json object to convert
* @param classz Class for the java object
* @return The converted java object
* @throws JsonProcessingException Throws exceptions if the given object doesn't match to the POJO class model
*/
public static <T> T jsonToObject(JSONObject json, Class<T> classz)
{
mandatoryObject("model", classz);
mandatoryObject("jsonObject", json);
ObjectMapper mapper = new ObjectMapper();
T obj = null;
try
{
obj = mapper.readValue(json.toString(), classz);
}
catch (IOException e)
{
LOGGER.error("Unable to convert the json into a java object.", e.toString());
}
return obj;
}
/**
* Converting json array into a list of java objects
*
* @param json The json array to convert
* @param classz Class for the java object
* @return The list of converted java objects
* @throws JsonProcessingException Throws exceptions if the given object doesn't match to the POJO class model
*/
public static <T> List<T> jsonToObject(JSONArray json, Class<T> classz)
{
mandatoryObject("model", classz);
mandatoryObject("jsonObject", json);
ObjectMapper mapper = new ObjectMapper();
CollectionType collectionType = mapper.getTypeFactory().constructCollectionType(List.class, classz);
List<T> asList = null;
try
{
asList = mapper.readValue(json.toString(), collectionType);
}
catch (IOException e)
{
LOGGER.error("Unable to convert the json array into a java collection.", e.toString());
}
return asList;
}
}

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

@@ -0,0 +1,327 @@
/*-
* #%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 static org.testng.AssertJUnit.assertNotNull;
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.Utility;
import org.apache.chemistry.opencmis.client.api.CmisObject;
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 (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
final String fullHoldPath = Utility.buildPath(getFilePlanPath(), HOLDS_CONTAINER) + holdName;
final CmisObject hold = getObjectByPath(user, password, fullHoldPath);
if (hold != null)
{
return null;
}
// 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);
// Make the POST request and throw an assertion error if it fails.
final 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;
}
/**
* 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
*
* @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)
{
return addItemsToHolds(user, password, SC_OK, itemNodeRefs, holdNames);
}
/**
* 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, int expectedStatus, List<String> itemNodeRefs,
List<String> holdNames)
{
final JSONObject requestParams = addOrRemoveToFromHoldJsonObject(user, password, itemNodeRefs, holdNames);
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 holdName the hold name
* @return The error message
*/
public String addToHoldAndGetMessage(String user, String password, int expectedStatus, String itemNodeRef, String
holdName)
{
final HttpResponse httpResponse = addItemsToHolds(user, password, expectedStatus, Collections.singletonList(itemNodeRef),
Collections.singletonList(holdName));
return APIUtils.extractErrorMessageFromHttpResponse(httpResponse);
}
/**
* Util method to create the request body used when adding items to holds or when removing items from holds
*
* @param user user to create the request body for add/remove an item to/from hold
* @param password the user's password
* @param items list of items node refs to be added to holds
* @param holdNames list of hold names for add/remove items
* @return JSONObject fo
*/
private JSONObject addOrRemoveToFromHoldJsonObject(String user, String password, List<String> items, List<String> holdNames)
{
final JSONArray nodeRefs = new JSONArray();
items.forEach(itemNodeRef -> nodeRefs.put(getNodeRefSpacesStore() + itemNodeRef));
final List<String> holdNodeRefs = holdNames.stream().map(hold ->
getNodeRefSpacesStore() + getItemNodeRef(user, password, String.format("/%s/%s", HOLDS_CONTAINER, hold)))
.collect(Collectors.toList());
final JSONArray holds = new JSONArray();
holdNodeRefs.forEach(holds::put);
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)
{
return removeItemsFromHolds(user, password, SC_OK, itemNodeRefs, holdNames);
}
/**
* 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 holdNames the list of hold names
* @return The HTTP response
*/
public HttpResponse removeItemsFromHolds(String user, String password, int expectedStatus, List<String> itemNodeRefs,
List<String> holdNames)
{
final JSONObject requestParams = addOrRemoveToFromHoldJsonObject(user, password, itemNodeRefs, holdNames);
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 holdName the hold name
* @return The error message
*/
public String removeFromHoldAndGetMessage(String user, String password, int expectedStatus, String itemNodeRef, String
holdName)
{
final HttpResponse httpResponse = removeItemsFromHolds(user, password, expectedStatus, Collections.singletonList(itemNodeRef),
Collections.singletonList(holdName));
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

@@ -0,0 +1,74 @@
/*
* #%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 java.text.MessageFormat;
import org.alfresco.dataprep.AlfrescoHttpClient;
import org.alfresco.dataprep.AlfrescoHttpClientFactory;
import org.alfresco.rest.core.v0.BaseAPI;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* The v0 REST API for nodes
*
* @author jcule
* @since 2.7EA1
*/
@Component
public class NodeAPI extends BaseAPI
{
/** Logger for the class. */
private static final Logger LOGGER = LoggerFactory.getLogger(NodeAPI.class);
/** The URI for the get node API. */
private static final String GET_NODE_API = "{0}alfresco/s/slingshot/doclib2/node/{1}";
@Autowired
private AlfrescoHttpClientFactory alfrescoHttpClientFactory;
/**
* Get the node metadata using the using the node data webscript: Document List v2 Component
*
* @param username
* @param password
* @param nodeId
* @return
*/
public JSONObject getNode(String username, String password, String nodeId)
{
String requestURL;
AlfrescoHttpClient client = alfrescoHttpClientFactory.getObject();
requestURL = MessageFormat.format(GET_NODE_API, client.getAlfrescoUrl(), NODE_PREFIX + nodeId);
client.close();
return doGetRequest(username, password, requestURL);
}
}

View File

@@ -0,0 +1,104 @@
/*
* #%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.testng.Assert.assertTrue;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.text.MessageFormat;
import java.util.List;
import org.alfresco.rest.core.v0.BaseAPI;
import org.alfresco.rest.rm.community.model.audit.AuditEntry;
import org.alfresco.rest.rm.community.util.PojoUtility;
import org.json.JSONArray;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
/**
* The v0 REST API for rm audit logs
*
* @author Rodica Sutu
* @since 2.7
*/
@Component
public class RMAuditAPI extends BaseAPI
{
/** Logger for the class. */
private static final Logger LOGGER = LoggerFactory.getLogger(RMAuditAPI.class);
/** The URI for the audit API. */
private static final String RM_AUDIT_API = "{0}rma/admin/rmauditlog";
private static final String RM_AUDIT_LOG_API = RM_AUDIT_API + "?{1}";
/**
* Returns a list of rm audit entries .
*
* @param user The username of the user to use.
* @param password The password of the user.
* @param size Maximum number of log entries to return
* @param event The name of audit event to be retrieved
* @return return Only return log entries matching this event
*/
public List<AuditEntry> getRMAuditLog(String user, String password, final int size, final String event)
{
String parameters = null;
try
{
parameters = "size=" + size + (event != null ? "&event=" + URLEncoder.encode(event, "UTF-8"):"");
}
catch (UnsupportedEncodingException e)
{
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");
return PojoUtility.jsonToObject(auditEntries, AuditEntry.class);
}
/**
* Clear the list of audit entries.
*
* @param username The username of the user to use.
* @param password The password of the user.
* @throws AssertionError If the API call didn't clear the audit log.
*/
public void clearAuditLog(String username, String password)
{
JSONObject deleteStatus = doDeleteRequest(username, password, RM_AUDIT_API);
assertTrue(deleteStatus != null
//audit clear and login events are returned
&& getRMAuditLog(username, password, 100, null).size() == 2);
}
}

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,24 +27,26 @@
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;
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;
import org.apache.chemistry.opencmis.client.api.CmisObject;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.http.HttpResponse;
@@ -70,12 +72,15 @@ import org.springframework.stereotype.Component;
@Component
public class RMRolesAndActionsAPI extends BaseAPI
{
/** The URI to view the configured roles and capabilities. */
private static final String RM_ROLES = "{0}rma/admin/rmroles";
/** The URI for REST requests about a particular configured role. */
private static final String RM_ROLES_ROLE = RM_ROLES + "/{1}";
private static final String RM_ROLES_AUTHORITIES = "{0}rm/roles/{1}/authorities/{2}?alf_ticket={3}";
// 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
@@ -85,8 +90,99 @@ public class RMRolesAndActionsAPI extends BaseAPI
@Autowired
private UserService userService;
@Autowired
private ContentService contentService;
/**
* Get all the configured RM roles.
*
* @param adminUser The RM admin user.
* @param adminPassword The password of the user.
* @return The RM roles in the system (Note that this will be the internal names, not the display labels).
*/
public Set<String> getConfiguredRoles(String adminUser, String adminPassword)
{
// Using "is=true" includes the in-place readers and writers.
final JSONObject jsonObject = doGetRequest(adminUser, adminPassword, RM_ROLES + "?is=true").getJSONObject(
"data");
return jsonObject.toMap().keySet();
}
/**
* Get the capabilities for a given role.
*
* @param adminUser The RM admin user.
* @param adminPassword The password of the user.
* @param role The role to get capabilities for.
* @return The set of system names for the capabilities.
*/
public Set<String> getCapabilitiesForRole(String adminUser, String adminPassword, String role)
{
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.
*
* @param adminUser The username of the admin user.
* @param adminPassword The password for the admin user.
* @param roleName The name of the new role.
* @param roleDisplayLabel A human-readable label for the role.
* @param capabilities A list of capabilities for the role.
*/
public void createRole(String adminUser, String adminPassword, String roleName, String roleDisplayLabel, Set<String> capabilities)
{
doPostJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, roleRequestBody(roleName, roleDisplayLabel, capabilities),
RM_ROLES);
}
/**
* Update an existing RM role.
*
* @param adminUser The username of the admin user.
* @param adminPassword The password for the admin user.
* @param roleName The name of the new role.
* @param roleDisplayLabel A human-readable label for the role.
* @param capabilities A list of capabilities for the role.
*/
public void updateRole(String adminUser, String adminPassword, String roleName, String roleDisplayLabel, Set<String> capabilities)
{
doPutJsonRequest(adminUser, adminPassword, HttpStatus.SC_OK, roleRequestBody(roleName, roleDisplayLabel, capabilities),
RM_ROLES_ROLE, roleName);
}
/**
* Delete a created RM role.
*
* @param adminUser The username of the admin user.
* @param adminPassword The password for the admin user.
* @param roleName The name of the role to be deleted.
*/
public void deleteRole(String adminUser, String adminPassword, String roleName)
{
doDeleteRequest(adminUser, adminPassword, MessageFormat.format(RM_ROLES_ROLE, "{0}", roleName));
assertFalse("Failed to delete role " + roleName + " with " + adminUser,
getConfiguredRoles(adminUser, adminPassword).contains(roleName));
}
/**
* create user and assign to records management role
@@ -115,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,
@@ -184,7 +280,7 @@ public class RMRolesAndActionsAPI extends BaseAPI
}
catch (JSONException | IOException e)
{
e.printStackTrace();
LOGGER.error(e.toString());
}
finally
{
@@ -222,42 +318,98 @@ 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;
}
/**
* Perform an action on the record folder
*
* @param user the user closing the folder
* @param user the user executing the action
* @param password the user's password
* @param contentName the record folder name
* @param contentName the content name
* @param date the date to be updated
* @return The HTTP response.
*/
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);
}
/**
* Complete an event on the record/record folder
*
* @param user the user executing the action
* @param password the user's password
* @param nodeName the node name
* @param event the event to be completed
* @param date the date to be updated
* @return The HTTP response.
*/
public HttpResponse completeEvent(String user, String password, String nodeName, RMEvents event, Instant date)
{
date = (date != null) ? date : Instant.now();
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);
}
/**
* Undo an event on the record/record folder
*
* @param user the user executing the action
* @param password the user's password
* @param contentName the content name
* @param event the event to be undone
* @return The HTTP response.
*/
public HttpResponse undoEvent(String user, String password, String contentName, RMEvents event)
{
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);
}
@@ -276,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());
}
/**
@@ -345,6 +447,10 @@ public class RMRolesAndActionsAPI extends BaseAPI
addPropertyToRequest(requestParams, "prop_cm_title", properties, RMProperty.TITLE);
addPropertyToRequest(requestParams, "prop_cm_description", properties, RMProperty.DESCRIPTION);
addPropertyToRequest(requestParams, "prop_cm_author", properties, RMProperty.AUTHOR);
addPropertyToRequest(requestParams, "prop_dod_originator", properties, RMProperty.ORIGINATOR);
addPropertyToRequest(requestParams, "prop_dod_originatingOrganization", properties, RMProperty
.ORIGINATING_ORGANIZATION);
addPropertyToRequest(requestParams, "prop_dod_publicationDate", properties, RMProperty.PUBLICATION_DATE);
return doPostJsonRequest(username, password, SC_OK, requestParams, MessageFormat.format(UPDATE_METADATA_API, "{0}", itemNodeRef));
}

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.
* -
@@ -51,6 +51,8 @@ public class RecordCategoriesAPI extends BaseAPI
private static final Logger LOGGER = LoggerFactory.getLogger(RecordCategoriesAPI.class);
private static final String RM_ACTIONS_API = "{0}rma/actions/ExecutionQueue";
private static final String DISPOSITION_ACTIONS_API = "{0}node/{1}/dispositionschedule/dispositionactiondefinitions";
private static final String DISPOSITION_SCHEDULE_API = "{0}node/{1}/dispositionschedule";
/**
* Creates a retention schedule for the category given as parameter
@@ -71,6 +73,21 @@ public class RecordCategoriesAPI extends BaseAPI
return doPostJsonRequest(user, password, SC_OK, requestParams, RM_ACTIONS_API);
}
/**
* Get the disposition schedule nodeRef
*
* @param user
* @param password
* @param categoryName
* @return the disposition schedule nodeRef
*/
public String getDispositionScheduleNodeRef(String user, String password, String categoryName)
{
String catNodeRef = NODE_PREFIX + getItemNodeRef(user, password, "/" + categoryName);
JSONObject dispositionSchedule = doGetRequest(user, password, MessageFormat.format(DISPOSITION_SCHEDULE_API, "{0}", catNodeRef));
return dispositionSchedule.getJSONObject("data").getString("nodeRef").replace(getNodeRefSpacesStore(), "");
}
/**
* Sets retention schedule authority and instructions, also if it is applied to records or folders
*
@@ -108,7 +125,12 @@ public class RecordCategoriesAPI extends BaseAPI
addPropertyToRequest(requestParams, "period", properties, RETENTION_SCHEDULE.RETENTION_PERIOD);
addPropertyToRequest(requestParams, "ghostOnDestroy", properties, RETENTION_SCHEDULE.RETENTION_GHOST);
addPropertyToRequest(requestParams, "periodProperty", properties, RETENTION_SCHEDULE.RETENTION_PERIOD_PROPERTY);
addPropertyToRequest(requestParams, "events", properties, RETENTION_SCHEDULE.RETENTION_EVENTS);
String events = getPropertyValue(properties, RETENTION_SCHEDULE.RETENTION_EVENTS);
if(!events.equals(""))
{
requestParams.append("events", events);
}
addPropertyToRequest(requestParams, "combineDispositionStepConditions", properties, RETENTION_SCHEDULE.COMBINE_DISPOSITION_STEP_CONDITIONS);
addPropertyToRequest(requestParams, "eligibleOnFirstCompleteEvent", properties, RETENTION_SCHEDULE.RETENTION_ELIGIBLE_FIRST_EVENT);
return doPostJsonRequest(user, password, SC_OK, requestParams, MessageFormat.format(DISPOSITION_ACTIONS_API, "{0}", catNodeRef));

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
*

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