Commit Graph

121 Commits

Author SHA1 Message Date
Tuna Aksoy
276aed6179 Merge branch 'feature-2.3/RM-4162_MergeToV2.3' into release/V2.3 2016-10-03 17:02:06 +01:00
David Webster
8470ed38f8 Merge remote-tracking branch 'origin/release/V2.2' into feature-2.3/merge_from_v2.2.0.1 2016-09-30 16:33:49 +01:00
David Webster
76ca8ea811 Merge remote-tracking branch 'origin/release/V2.2.0.x' into feature-2.2/merge-2.2.0.1 2016-09-30 15:35:04 +01:00
Silviu Dinuta
c336a70846 RM-4162: formatting fix 2016-09-29 23:02:13 +03:00
Silviu Dinuta
39a8273063 RM-4162: fixed formatting 2016-09-29 22:44:37 +03:00
Silviu Dinuta
31c6b1e228 RM-4162: added extra parentNodeRef parameter, checked writers and
readers individually for null and added unit tests for the changes
2016-09-29 18:44:06 +03:00
Tom Page
e673d7ab03 Let git handle line endings for us. 2016-09-27 13:55:53 +01:00
Silviu Dinuta
8d05147c6e RM-4907: added unit tests for csv acceptance criteria and made
processNode method protected
2016-09-27 12:17:04 +03:00
David Webster
5c90f386f4 MNT-16852: back port code fix for add children permission support 2016-09-26 22:17:24 +01:00
Silviu Dinuta
3209fff5cd Merge branch 'hotfix-2.3/RM-4097' into hotfix-2.3/RM-4096_RM_4097 2016-09-26 18:26:36 +03:00
Silviu Dinuta
577173c2b6 RM-4097: added fix for both issues 2016-09-26 17:32:53 +03:00
Tom Page
7e14b5231b Let git handle line endings for us. 2016-09-21 13:48:28 +01:00
Tom Page
d4937aeda4 Let git handle line endings for us. 2016-09-21 13:47:25 +01:00
Ana Bozianu
a930f5e4f1 Merge release/V2.3.0.x into release/V2.3 2016-09-20 14:00:59 +03:00
Silviu Dinuta
d3628be26b RM-3996: added unit tests and fixed the bug with infinite loop when
batchsize=0
2016-09-15 14:04:06 +03:00
Silviu Dinuta
7d7d10768d RM-3906: set maxProcessedRecords to batchsize value if it is not set
from the request
2016-09-14 10:32:42 +03:00
Silviu Dinuta
9b5e311936 RM-3960: did most of the review mentioned improvements 2016-09-13 21:12:15 +03:00
Silviu Dinuta
194e075cc6 RM-3906: Implemented webscript 2016-09-13 15:58:43 +03:00
Roy Wetherall
f9ef2cd585 RM-3074: Initial refactoring of the extended security service implementation
RM-3074: Added root group and zones

* added root inplace group, created on start-up if not already there
* all groups created in RM zone
* fixed up file plan permission unit test and removed ignore from test
suite
* removed delimeters from groups names to keep length to a min

RM-3074: Find groups and handle clashes

* refactor how existing groups are found
* name with index
* handle hash clahses

RM-3074: Add exact group match

* ensure that hash match is backed up with exact match
* fill out JDoc

RM-3074: unit testing of extended security service impl

RM-3074: groups assigned to RM roles, not authorities

* IPR groups are now assigned to RM roles rather than the individual
authorities
* more unit tests

RM-3074: Remove unnecessary files

RM-3074: review comments

RM-3074: Refactor so read and write groups are reused independantly based on review comments

RM-3074: Inplace move no longer needs to modify extended security

* inplace move no longer needs to store and reset extended security
* no need to clear extended security when assoc is removed
* a couple of extra checks to inplace move integration test

RM-3074: place common logic to get readers and writers of a node in one place

* added getReadersAndWriters method to extended permission service
* refactored calling services, consolidating code into one location
* extended unit test

Note: getFullAuthenticatedUser has been removed from writers list as it
makes no logical sense since you must be a writer in order to perform
these operations in the first place.

RM-3074: Rename set/remove methods on extended security interface

* create deprecated service interface to tidy things up
* create set method and deprecate exisiting
* crate remove method and deprecate exisiting
* remove deprecation warnings in code

RM-3074: missing file

Change in project structure

RM-3074: Rename getReader and getWriter methods

RM-3074: Unit test for records with renditions

RM-3074: Integration Tests, including BDT test helpers to simplify code

RM-3074: Integration tests

* including fix for ghosted records being visible in collab sites

Add completeEvent method

RM-3074: Review comments

RM-3074: Contributor didn't get write in-place access as expected

* owner derived from cm:creator was not added to writer list
* fully authenticated user in base test was being set incorrectly
* transaction executed outside authentication in BDT classes

RM-3074: missing file

RM-3074: Fixup community integration tests

RM-3074: Fixed failing test

RM-3074: Test group reuse

RM-3074: Deleted creators cause failures when declaring records

RM-3074: Fix unit tests

RM-3074: Remove extended security when a record is copied

Add AlfMock to help backport unit tests

RM-3074: Compile tests with 1.8

RM-3074: Fix integration test

RM-3074: Fix integration tests
2016-09-09 14:00:38 +10:00
Tom Page
9c9fa0b01f Let git handle line endings for us. 2016-09-08 16:27:10 +01:00
Roy Wetherall
9c679b9b54 Introduce Mockito unit tests into Share AMP project
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@91731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-12-04 00:19:46 +00:00
Tuna Aksoy
e5ee20fc7e Fixed critical issues (Empty If Stmt) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89715 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-11-01 18:25:48 +00:00
Tuna Aksoy
2db964e75c Fixed major issues (Simplify Boolean Expression) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89713 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-11-01 18:18:54 +00:00
Tuna Aksoy
ff771da50b Merged BRANCHES/V2.2 to HEAD:
76115: Update version to 2.1.1
   83912: Updated the Alfresco dependency from 4.2.2 to 4.2.3.1 for RM 2.2
   89173: Merged BRANCHES/v2.1.0.x to BRANCHES/v2.2:
        68559: (RECORD ONLY) Change base Alfresco version from 4.2.0-RC4 to 4.2.0
        68568: (RECORD ONLY) Merge from HEAD to BRANCHES/V2.1.0.x
        68569: (RECORD ONLY) Update module version to 2.1.0.1
        76475: (RECORD ONLY) Merge HEAD to BRANCHES/V2.1.0.x:
        76597: (RECORD ONLY) Merge HEAD to BRANCHES/V2.1.0.x:
            74932: RM-1461: CLONE - RM slower then standard repo/sites when rendering document details when folder contains 15k documents
        76598: (RECORD ONLY) Merged HEAD to BRANCHES/V2.1.0.x:
             75102: RM Performance testing
        76599: (RECORD ONLY) Update module version to 2.1.0.2
        76601: (RECORD ONLY) Merged HEAD to BRANCHES/V2.1.0.x:
             75186: RM Performance Improvements
   89251: Merge BRANCHES/V2.1.0.x to BRANCHES/V2.2:
        68559: Change base Alfresco version from 4.2.0-RC4 to 4.2.0
        68568: Merge from HEAD to BRANCHES/V2.1.0.x
        68569: Update module version to 2.1.0.1
        76475: Merge HEAD to BRANCHES/V2.1.0.x:
        76597: Merge HEAD to BRANCHES/V2.1.0.x:
            74932: RM-1461: CLONE - RM slower then standard repo/sites when rendering document details when folder contains 15k documents
        76598: Merged HEAD to BRANCHES/V2.1.0.x:
             75102: RM Performance testing
        76599: Update module version to 2.1.0.2
        76601: Merged HEAD to BRANCHES/V2.1.0.x:
             75186: RM Performance Improvements
        76673: Root container cache to improve unfiled record browse performance
            * relates to RM-1594 and RM-1595
        76850: RM performance enhancements
            * serach improvements
            * in-place record browse improvements
            * saved search via file plan browse improvements
        76851: Additional unit test to check extended security with cache is working as expected.
        76852: Rollback checked in config
        77709: RM-1630: Error on manage references page
            * regression caused by performance improvements
        84337: Update version to 2.1.0.3
        84421: Transaction level cahcing of declarative capability evaluation
        84676: Fix build
        84677: Prevent unnessary repeated creation of QName
        84678: Improvements to extended dynamic authorities
            * requiredFor set
            * direct access to extended permission information, not via service
        84679: Correct requiredFor value
        88087: RM-1661 (Performance on setting permissions at a high category level)
        88092: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
        88144: RM-1661 (Performance on setting permissions at a high category level)
        88182: RM-1724 (Inheritance is not off for root categories, unfiled records, holds and transfers)
        88192: RM-1661 (Performance on setting permissions at a high category level)
             * Added unit tests
        88193: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
        88358: RM-1661 (Performance on setting permissions at a high category level)
             * Added unit tests
        88685: RM-1742 (Locally Set Permissions for moved Record duplicate parent folder Locally Set Permissions)
        88686: RM-1741 (Moved root category doesn't inherit permissions)
        88687: RM-1741 (Moved root category doesn't inherit permissions)
             * Unit test added
        88688: RM-1742 (Locally Set Permissions for moved Record duplicate parent folder Locally Set Permissions)
             * Unit test added
        88691: RM-1745 (RM Admin role can only be added with read permission on the manage permission page)
        88772: RM-1741 (Moved root category doesn't inherit permissions)
        88860: RM-1661 (Performance on setting permissions at a high category level)
        88864: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
        88959: RM-1746 (Moved record/category always have the inheritance on)
        88960: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
        88961: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
        88962: RM-1661 (Performance on setting permissions at a high category level)
             * Fixed failing unit tests
   89252: Added missing test
   89253: Removed warnings
   89348: RM-1751 (Merge performance improvements made for RM 2.1.0.3 onto RM 2.2.1)
   89455: RM-1751 (Merge performance improvements made for RM 2.1.0.3 onto RM 2.2.1)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@89458 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-10-29 22:40:00 +00:00
Tuna Aksoy
8e0b8fad0e Removed warnings
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.2@89253 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-10-27 22:48:39 +00:00
Tuna Aksoy
677ee971ad Merge BRANCHES/V2.1.0.x to BRANCHES/V2.2:
68559: Change base Alfresco version from 4.2.0-RC4 to 4.2.0
   68568: Merge from HEAD to BRANCHES/V2.1.0.x
   68569: Update module version to 2.1.0.1
   76475: Merge HEAD to BRANCHES/V2.1.0.x:
   76597: Merge HEAD to BRANCHES/V2.1.0.x:
       74932: RM-1461: CLONE - RM slower then standard repo/sites when rendering document details when folder contains 15k documents
   76598: Merged HEAD to BRANCHES/V2.1.0.x:
        75102: RM Performance testing
   76599: Update module version to 2.1.0.2
   76601: Merged HEAD to BRANCHES/V2.1.0.x:
        75186: RM Performance Improvements
   76673: Root container cache to improve unfiled record browse performance
       * relates to RM-1594 and RM-1595
   76850: RM performance enhancements
       * serach improvements
       * in-place record browse improvements
       * saved search via file plan browse improvements
   76851: Additional unit test to check extended security with cache is working as expected.
   76852: Rollback checked in config
   77709: RM-1630: Error on manage references page
       * regression caused by performance improvements
   84337: Update version to 2.1.0.3
   84421: Transaction level cahcing of declarative capability evaluation
   84676: Fix build
   84677: Prevent unnessary repeated creation of QName
   84678: Improvements to extended dynamic authorities
       * requiredFor set
       * direct access to extended permission information, not via service
   84679: Correct requiredFor value
   88087: RM-1661 (Performance on setting permissions at a high category level)
   88092: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests
   88144: RM-1661 (Performance on setting permissions at a high category level)
   88182: RM-1724 (Inheritance is not off for root categories, unfiled records, holds and transfers)
   88192: RM-1661 (Performance on setting permissions at a high category level)
        * Added unit tests
   88193: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests
   88358: RM-1661 (Performance on setting permissions at a high category level)
        * Added unit tests
   88685: RM-1742 (Locally Set Permissions for moved Record duplicate parent folder Locally Set Permissions)
   88686: RM-1741 (Moved root category doesn't inherit permissions)
   88687: RM-1741 (Moved root category doesn't inherit permissions)
        * Unit test added
   88688: RM-1742 (Locally Set Permissions for moved Record duplicate parent folder Locally Set Permissions)
        * Unit test added
   88691: RM-1745 (RM Admin role can only be added with read permission on the manage permission page)
   88772: RM-1741 (Moved root category doesn't inherit permissions)
   88860: RM-1661 (Performance on setting permissions at a high category level)
   88864: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests
   88959: RM-1746 (Moved record/category always have the inheritance on)
   88960: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests
   88961: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests
   88962: RM-1661 (Performance on setting permissions at a high category level)
        * Fixed failing unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.2@89251 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-10-27 22:31:55 +00:00
Tuna Aksoy
b4aefce9df RM-1661 (Performance on setting permissions at a high category level)
* Fixed failing unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.1.0.x@88864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-10-21 19:46:55 +00:00
Tuna Aksoy
ea939d8d9d RM-1661 (Performance on setting permissions at a high category level)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.1.0.x@88860 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-10-21 17:23:20 +00:00
Tuna Aksoy
0ccb56194d Removed warnings from rm-server code
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@83477 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-09-05 16:28:08 +00:00
Tuna Aksoy
e40704f7a1 RM-1121 (Move behaviour annotation framework into core)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@83466 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-09-05 16:10:39 +00:00
Tuna Aksoy
9afc198403 Fixed compilation errors (RM 2.3-SNAPSHOT against Alfresco 5.0.b-SNAPSHOT)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@78312 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-07-25 13:19:31 +00:00
Roy Wetherall
6f4804bfa4 RM-1502: on moving a folder to RM: recordSearchDispositionAuthority & recordSearchDispositionInstructions are empty
RM-1521: Failed to Upload New Version if updated rule to Declare as Record is set




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@75191 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-29 07:09:18 +00:00
Tuna Aksoy
ac49d095b7 Fixed minor bugs (Redundant Throws) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@74408 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-22 14:54:13 +00:00
Mark Hibbins
8216078316 RM-1537, rules on root node now not executed on items being added to hold
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@74167 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-18 15:32:48 +00:00
Tuna Aksoy
b8b259acd1 Organize Imports
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@74022 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-17 15:48:28 +00:00
Roy Wetherall
c9223cb510 RM-1440: Edit Non Record Metadata capability is required to file a record
* can now file an electronic record with only CreateRecord capability
  * tidied up some of the policy code as I went
  * integration test
  * non-electronic records to follow



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-17 06:44:19 +00:00
Tuna Aksoy
20f6fee1db Fixed minor bugs (Redundant Throws) reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73861 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-15 12:16:08 +00:00
Mark Hibbins
e0528c803e RM-1070, added rule property substitution for day of month
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-13 09:44:26 +00:00
Tuna Aksoy
a2400a047c RM-1224 (Rmadmin user is not created if auth chain contains not only ALfrescoNTLM)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73546 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-11 08:53:23 +00:00
Roy Wetherall
abcb6e2433 Update copyright date to 2014
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73533 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-06-11 06:06:22 +00:00
Tuna Aksoy
1441c42f45 Fixed major issues ("Signature Declare Throws Exception") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71957 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-05-27 22:00:50 +00:00
Tuna Aksoy
f50e604b7e Fixed minor issues ("Collapsible If Statements") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-05-27 21:09:29 +00:00
Tuna Aksoy
df13731bad Fixed minor issues ("Modifier Order") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71945 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-05-27 20:49:45 +00:00
Mark Hibbins
7006a49d3a RM-1273, Bug where rules applied to root of file plan were applied to transfers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@69691 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-05-06 13:59:43 +00:00
Mark Hibbins
1a1df733d3 RM-1273 - Added check to ensure that rules defined for the root of the file plan are not applied to unfiled, holds or transfers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@68319 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-04-30 11:24:10 +00:00
Mark Hibbins
1f39466252 RM-1430 - Fixed move to holds/unfiled/transfers issues along with associated tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@66928 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-04-07 15:18:55 +00:00
Mark Hibbins
9d66d4f6b2 RM-1198 & RM-1199 - Added functionality for Copy-to and Move-to rule actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@65697 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-03-27 10:53:58 +00:00
Tuna Aksoy
166ece8ebb Fixed critical issues reported by sonar (Performance - Inefficient use of keySet iterator instead of entrySet iterator)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@65396 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-03-22 15:56:17 +00:00
Tuna Aksoy
c4173be84c Fixed minor issues reported by sonar (Redundant Modifier)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-03-19 00:26:17 +00:00
Tuna Aksoy
9847e15dda Fixed major issues reported by sonar (Unused formal parameter)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-03-19 00:02:52 +00:00