Commit Graph

221 Commits

Author SHA1 Message Date
Tom Page
277d9aabbd RM-5481 Handle empty string as a reason or exemption id.
If the empty string is passed as a classification reason or exemption id then the API framework
converts it to null for us. We should throw a 404 (not found) error, because there are no reasons
or exemptions with the empty string as their id (or null for that matter).  Add two new REST API
tests for these cases.

Also stopped using the helper method addParam in TopicsWithInstructionsTest, as it is only saving us
about ten characters, causes an extra import and includes an explicit mention of the topicsApi
inside it (i.e. it doesn't work at all with the guidesAPI).
2017-08-03 13:10:37 +01:00
Tuna Aksoy
1712bac995 RM-4689 (Can delete all RM site content through Repository browser)
Manually backported following changes:

RM-4293
734c1b2a82

RM-4326
a4aac053a8
c6ca74ab26
2017-06-12 16:17:24 +01:00
Tom Page
fa1e703428 Update copyright header. 2017-05-23 08:55:10 +01:00
Ana Bozianu
98b10e616f RM-5012 - fix unit tests and cleanedup merge request 2017-05-17 16:04:54 +03:00
Tuna Aksoy
b244b56e7b Feature/rm 4639 rest api refactoring 2 2017-04-12 07:36:12 +01:00
Ana Bozianu
f0a3d300e0 Merge RM-2396 and RM-3727 to master 2017-04-06 10:52:25 +03:00
Ana Bozianu
75a7285679 Merge 'release/V2.4' into 'release/V2.5' 2017-04-06 10:18:16 +03:00
Ana Bozianu
dac9f630de RM-3727 - added unit test for reviewed action and removed notification issued property 2017-04-05 12:04:31 +03:00
Ana Bozianu
92fa327f1e RM-4619 - updated unit tests 2017-02-27 16:17:22 +02:00
Ana Bozianu
764b13d473 RM-4619 - convert the folder nodes before setting identifier 2017-02-27 12:41:39 +02:00
Ana Bozianu
539a0a6265 RM-4619 - replaced unit tests with integration tests 2017-02-07 16:24:10 +02:00
Ana Bozianu
6c2f58e734 Revert "RM-4619 - added the fileplan component check back but in different place"
This reverts commit abfc606428.
2017-01-30 16:53:58 +02:00
Ana Bozianu
d0401ea569 RM-4619 - doing the conversion at first event 2017-01-30 14:35:23 +02:00
Ana Bozianu
abfc606428 RM-4619 - added the fileplan component check back but in different place 2017-01-30 12:54:37 +02:00
Ana Bozianu
c52e2a7cf5 RM-4619 - added cm:folder as accepted type and do the conversion onCommit - request doesn't have full info 2017-01-30 12:05:48 +02:00
Ana Bozianu
444218a539 RM-4619 - moved code to existing onCommit method 2017-01-29 17:37:05 +02:00
Ana Bozianu
df919acfc7 RM-4619 - fixed unit tests 2017-01-26 12:16:54 +02:00
Tom Page
43f7864d70 MNT-16881 Fix typo in unit test.
Due to the lack of ordering in hash sets, this was passing locally but
failing on Bamboo with a NPE.
2017-01-24 11:45:39 +00:00
Tom Page
e26ba87906 MNT-16881 Fix unit test and write an additional one. 2017-01-24 11:30:26 +00:00
Ana Bozianu
0f00c63ac1 RM-4436 and RM-4549 - unit tests for record api 2017-01-04 17:57:10 +02:00
Tuna Aksoy
4462899fb1 RM-4570 (Update license headers) 2017-01-02 19:45:32 +00:00
Tuna Aksoy
4cb59970d0 RM-4570 (Update license headers) 2017-01-02 19:21:21 +00:00
Tuna Aksoy
3d7661746c Updated license headers 2017-01-01 11:52:56 +00:00
Ana Bozianu
6a45a6dab6 RM-4436 - implemented file record
RM-4429 - implemented declare record
-renamed the nodes package into fileplancomponents
2016-12-17 23:22:12 +02:00
Tom Page
80b2fcdd90 RM-4456 Make unit tests work against Alfresco 5.2.b and 5.1.1. 2016-11-24 16:01:06 +00:00
Tuna Aksoy
39642b39a8 RM-4399 (Update Alfresco dependency for RM Community to 5.2.b) 2016-11-23 19:43:25 +00:00
Ana Bozianu
9fc4a32454 RM-4376 - create RM relative path + unit tests 2016-11-21 17:11:37 +02:00
Ana Bozianu
a15ff96e25 RM-4357 - return null when allowableOperations is empty 2016-11-17 14:50:17 +02:00
Ana Bozianu
537b7c78cf RM-4357 - updated test for fileplan create operation check 2016-11-17 13:01:25 +02:00
Ana Bozianu
a05bcdb34c Merge master into feature/RM-4357_and_RM_4373 2016-11-17 11:37:04 +02:00
Silviu Dinuta
e2659aa356 Merge remote-tracking branch 'origin/master' into feature/RM-4293_RM_special_containers_can_be_deleted 2016-11-17 11:10:28 +02:00
Ana Bozianu
ee1a24f647 Revert "Revert "Merge branch 'feature/RM-4357_AllowableOperations' into 'master'""
This reverts commit 521a0689a3.
2016-11-17 11:07:14 +02:00
Silviu Dinuta
93674c191d Merge master into feature/RM-4293_RM_special_containers_can_be_deleted 2016-11-17 10:53:25 +02:00
Ana Bozianu
521a0689a3 Revert "Merge branch 'feature/RM-4357_AllowableOperations' into 'master'"
This reverts commit 9b658e2452, reversing
changes made to 3e1d740d76.
2016-11-17 10:52:40 +02:00
Ana Bozianu
9b658e2452 Merge branch 'feature/RM-4357_AllowableOperations' into 'master'
Feature/rm 4357 allowable operations

RM-4357 - fileplanComponent's allowable actions don't reflect RM security

RM's capabilities overrides core's security so it is enough to test the capabilities. Please see the table from the issue's comment.

See merge request !624
2016-11-17 07:33:42 +00:00
Ana Bozianu
87f0391922 RM-4357 - updated unit tests 2016-11-16 16:19:16 +02:00
Silviu Dinuta
7ab2f753ad RM-4293: prevent filePlan and unfiled Record container from behaviour
beans, also removed deleteNode method from RMNodesImpl and some unit
tests
2016-11-15 19:00:48 +02:00
Ana Bozianu
dd86bd3cc7 RM-4357 - change addChildren capability and updated unit tests 2016-11-14 18:16:04 +02:00
Silviu Dinuta
b713fd146b Merge master into feature/RM-4327 2016-11-14 14:08:09 +02:00
Silviu Dinuta
6891845cb3 RM-4367: restricted types created under record category and added unit
tests for RecordCategoryType
2016-11-14 10:20:00 +02:00
Silviu Dinuta
b31a075324 RM-4327: changed exception type on RecordFolderType and added unit tests
for the changes
2016-11-11 17:39:01 +02:00
Tom Page
99acb9351c RM-4247 Merge master into RM-4247_UpdateDispositionProperty. 2016-11-11 08:21:58 +00:00
Silviu Dinuta
7753ccad06 RM-4327: changed InvalidParameterException with IntegrityException 2016-11-10 16:58:05 +02:00
Tom Page
9a66a6cf8c RM-4247 Re-add changes that were meant to be merged from release/V2.5.
The merge in '5f75e3' missed the changes from RM-4247, so this commit adds
them back in.
2016-11-10 13:14:33 +00:00
Silviu Dinuta
35fa9c1e0d RM-4326 : added some more unit tests for RmSiteType and did some code
cleanup in this class
2016-11-10 11:04:34 +02:00
Silviu Dinuta
b67a8878a9 RM-4326: renamed rm site type unit test class 2016-11-09 16:52:17 +02:00
Silviu Dinuta
7685a5e36d RM-4326: added unit tests for RmSiteType class 2016-11-09 16:35:51 +02:00
Silviu Dinuta
0b656e544a RM-4326: undo some formatting 2016-11-09 12:51:14 +02:00
Silviu Dinuta
94e8664129 RM-4326: removed checkPostPermission method and changed RmSyteType to
handle allowed created types
2016-11-09 12:44:19 +02:00
Silviu Dinuta
9746ee9ff3 RM-4326: allow creation under hold type only from HoldServiceImpl 2016-11-08 20:40:51 +02:00