Commit Graph

808 Commits

Author SHA1 Message Date
Neil McErlean
4a9eb2c75d Applying code review comment. I added an 'mr' prefix to the spring beans, which we hope will make our lives easier if this Metadata Referral stuff ever makes it into core.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111855 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-10 13:03:45 +00:00
Neil McErlean
aeafa9fbbd Addressing review comment - don't have assoc types in the service API - have aspect names instead.
I agree with this comment. I think assoc types are an implementation detail of this service.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111779 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-09 10:42:29 +00:00
Neil McErlean
3efb64f11b Slight refactor. ReferredMetadataService uses the registry to look up Referrals rather than the AdminService. Seems neater.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111772 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-09 09:26:02 +00:00
Neil McErlean
1e84916582 This is the RM-specific parts of the refactor for classified renditions - see RM-2549.
This builds on the separate MetadataReferral services to link renditions to classified source nodes via a new classifiedRendition aspect which defines a new classifiedRendition assoc. The spring bean 'classifiedRenditionAssoc' defines that only the clf:classified aspect and its metadata will be linked.




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111643 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-08 15:32:10 +00:00
Neil McErlean
7ec55f4830 Massive renaming. Delegate/Delegation becomes Referrer, Referent and things *do* make a little more sense.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111633 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-08 14:29:30 +00:00
Neil McErlean
9e4ccdd053 This checkin provides the non-RM-specific parts of metadata delegation, which are required for the refactor of classified renditions needed for RM-2549.
We essentially have two new services, MetadataDelegationService and MetadataDelegationAdminService, along with some spring configuration and content model configuration (this will come in the subsequent RM-specific checkin.)

metadata-delegation-context.xml defines the spring beans that form the Metadata Delegation services.

The DelegationAdminService is used to attach/detach nodes in pairs such that one node can ‘inherit’ some aspect metadata from another node - the ‘delegate’.

The Delegation class is the definition of a type of link - it’s defined by the aspects that it handles and the type of peer association that it uses to link pairs of nodes.

Delegations must be defined as spring beans in the system to be available for use and they are exposed to Java code via the DelegationRegistry class.

Note that chains of delegations (node A -> node B -> node C) are not supported. Any attempt to attach nodes in a way that would lead to a delegation chain is detected and prevented.

The DelegationService is not about the creation and destruction of links, but is about accessing the metadata on a delegate node.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/classified_renditions@111292 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-09-02 12:03:38 +00:00
Alexandru Balan
ef714a911d Merged BRANCHES/V2.3 to HEAD:
111065: Merged BRANCHES/V2.2 to BRANCHES/V2.3:
      111064: RM-2391 - also check for the access audit capability on each node from the report

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@111067 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-28 06:23:49 +00:00
Alexandru Balan
01f60528a0 Merged BRANCHES/V2.2 to BRANCHES/V2.3:
111064: RM-2391 - also check for the access audit capability on each node from the report

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@111065 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-28 06:12:58 +00:00
Roy Wetherall
a2b1bb0577 RM-2567
The trashcan should not display the deleted documents that have been destroyed by the Data Cleanser

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@111062 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-28 00:26:12 +00:00
Gloria Broadbent
eee581c814 SIMPLIFIED CHINESE: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110678 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:48:21 +00:00
Gloria Broadbent
c8269c2399 BRAZILIAN PORTUGUESE: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110677 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:47:25 +00:00
Gloria Broadbent
0e9331e86a RUSSIAN: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:46:36 +00:00
Gloria Broadbent
30ada3331e DUTCH: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110675 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:45:27 +00:00
Gloria Broadbent
0da3194443 NORWEGIAN (Bokmal): Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110674 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:44:43 +00:00
Gloria Broadbent
ab410a2a01 JAPANESE: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110673 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:43:54 +00:00
Gloria Broadbent
73ee80bb39 ITALIAN: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:43:05 +00:00
Gloria Broadbent
222230e93f FRENCH: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110671 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:41:50 +00:00
Gloria Broadbent
8e8ca04cc7 SPANISH: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110670 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:41:14 +00:00
Gloria Broadbent
0e19d573b7 GERMAN: Updated RM 3.0 bundle based on EN-RM-rev110155 and fix for RM-2523
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110669 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-24 10:40:31 +00:00
Roy Wetherall
95d7013517 Merged DEV/ROYTEST to HEAD:
109931: Classification enforcement refactor
   110013: Classification enforecment refactor
       * rename veto as permission pre-processor
       * add support for permission post-processors
       * add transaction cache to classification enforcement
       * add records management permission post processor to remove code from extended permission service
   110191: Extended permission service unit test
   110301: Classification permission pre-processor unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110507 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-20 02:51:23 +00:00
Alexandru Balan
05db2733f7 Merged BRANCHES/V2.3 to HEAD:
Merged BRANCHES/V2.2 to BRANCHES/V2.3:
      109406: RM-2271 - added the job lock refresh mechanism so that for long running jobs that exceed the locks TTL the lock will be refreshed.
      109401: RM-2391 - Added capability checking to the AuditLog Get REST API. Added a unit test. Minor changes on the Share side to forward the forbidden status.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110465 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-19 14:17:10 +00:00
Alexandru Balan
cb81b00beb Merged BRANCHES/V2.2 to BRANCHES/V2.3:
109406: RM-2271 - added the job lock refresh mechanism so that for long running jobs that exceed the locks TTL the lock will be refreshed.
   109401: RM-2391 - Added capability checking to the AuditLog Get REST API. Added a unit test. Minor changes on the Share side to forward the forbidden status.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.3@110464 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-19 14:08:27 +00:00
Neil McErlean
1d216cba00 Speculative fix for RM-2530. This commit explicitly checks the FreezeService to ensure that, on classification, the node in question is not in a hold.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110335 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-18 12:31:42 +00:00
Tom Page
2e0c28fe1b RM-2502 Create new constraint for initial classification.
Previously we were restricting the initial classification to be a level
that the current user could access, but this is not always the case for
downgraded content.

Also add new integration test for initial classification constraint.

I tried adding a test that extended our BaseRMTestCase, but the
transactions all happened as system (or admin maybe?), and so the level 2
user is always allowed to reclassify level 1 content (by the constraint).
Consequently I ended up creating a stand-alone test for this.

+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110144 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-14 13:34:56 +00:00
Neil McErlean
9355bddfe8 Implementation and unit tests for RM-2481, RM-2482, RM-2483 and RM-2489.
This checkin adds behaviours for ensuring that classification aspect/properties are correclty copied between nodes and their renditions on the creation of new renditions, on the classification or reclassification of nodes with existing renditions.

To do this I needed what should be, in my opinion, a common Alfresco utility method - the ability to copy an aspect from one node to another (aspect meaning property group i.e. no assocs).
I've created that method and put it in CoreServicesExtras. It should really be moved to core.

+ review RM


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@110069 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-13 16:29:38 +00:00
Roy Wetherall
1613bba6e1 Classification enforecment refactor
* rename veto as permission pre-processor
  * add support for permission post-processors
  * add transaction cache to classification enforcement
  * add records management permission post processor to remove code from extended permission service 



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/ROYTEST@110013 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-13 03:46:43 +00:00
Roy Wetherall
a239935668 Classification enforcement refactor
* added permission veto registry
 * extend permission service to check vetos before permission evaluation
 * register classification veto
 * unit and integration tests run
 * UI tests run



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/ROYTEST@109931 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-12 04:57:37 +00:00
Roy Wetherall
eace8ef026 RM-2509: The destruction of electronic records is not possible as it gets ghosted before destruction.
* unit test added to reproduce issue



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109872 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-11 04:18:12 +00:00
Roy Wetherall
8f2f5258d1 Acceptance Criteria Automation for RM-1997: Content store data cleansing
* added @AlfrescoTest annotation dependency to help track AC's back to JIRA
 * feedback from previous review
 * see RM-2460, RM-2461, RM-2462, RM-2505, RM-2506, RM-2507

+review RM 



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-07 02:04:51 +00:00
Neil McErlean
39142b119b Addition of numerous i18n properties as part of the classified-content model.
These had been missing and were pointed out in a code review of RM-2431 and RM-2432.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109413 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-03 09:46:08 +00:00
Alexandru Balan
8a3717bef4 RM-2391 - Added capability checking to the AuditLog Get REST API. Added a unit test. Minor changes on the Share side to forward the forbidden status.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.2@109401 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-08-03 08:43:40 +00:00
Tuna Aksoy
d895833b56 RM-2448 (Extend classified document properties view)
RM-2449 (Extend classified record properties view)

+review RM-137

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109139 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-29 10:25:32 +00:00
Roy Wetherall
24b6655eeb Data destruction and cleansing
* added content destruction component which ensures all records and classified content are immediately destroyed and optionally cleansed
 * extension to eager content cleaner to allow cleansing to take place just before the content is deleted from the content store
 * base content cleanser
 * simple implementation of DoD 5220-22M cleansing algoritm
 * data cleansing enabled global configuration
 * data cleansing bean configuration
 * unit tests
 * see RM-2463 and RM-2464

+review RM 



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109121 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-29 01:26:49 +00:00
Tom Page
6d4df8571c Fix a couple of unrelated minor code review comments.
Fix copy/paste error to change "document" to "record".

Remove TODO from classifiedContentModel.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@109004 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-27 08:52:25 +00:00
Neil McErlean
7322da8f66 Addressing review comments from RM-132. Original issues were RM-2431 and RM-2432.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108993 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-25 07:24:34 +00:00
Tuna Aksoy
992a3be30e RM-2421 (Add PUT method to classify content REST API)
+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108911 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-23 21:15:31 +00:00
Tuna Aksoy
c6f5d7d718 RM-2420 (Add edit classification to ClassifyService Java API)
+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108910 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-23 21:14:25 +00:00
Tuna Aksoy
671fbfcaa1 RM-2422 (Reuse existing classify file dialog for edit classification)
+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108909 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-23 21:13:05 +00:00
Neil McErlean
ebc34f9209 Work that's part of RM-2431 and RM-2432.
Added to the classified-content-model - various properties as described in RM-2431 along with a constraint on Reclassification Action.
Addition to the ClassificationSchemeService of methods and types associated with Reclassification. (Upgrade, Downgrade, Declassify). See RM-2432.
Behaviour bean that will automatically set lastReclassificationAction and lastReclassifyBy in response to any change to currentClassificationLevel.
Also some util methods in RMCollections.
Fixed some spelling mistakes in classification-related properties.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108878 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-23 16:13:43 +00:00
Tom Page
3b159f2ba9 RM-2400 Add classification schedule properties to model.
Refactor constraints, and create new constraints for exemption categories
and classification reasons.

+review RM

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108859 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-23 13:06:48 +00:00
Roy Wetherall
9a9560fa6c Fixes to classification enforcement:
* only process services that start with an upper case character.  We were being over zealous in our checking which was causing problems, we only care about public services.
 * add enable/disable/isenabled methods to pre-processor
 * switch off pre-processing when post-processing
 * remove method black list
 * unit tests, integration tests and UI tests run locally

+review RM @taksoy



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108613 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-21 05:30:53 +00:00
Tuna Aksoy
6a8eeda795 RM-2388 (User without any clearance should not see the classify action)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108131 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-10 15:50:55 +00:00
Tuna Aksoy
a6ab82152d RM-2129 (Check classification before method execution)
+review RM-117

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107676 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-03 14:41:53 +00:00
Tuna Aksoy
e6fe911fcf RM-2129 (Check classification before method execution)
+review RM @rwetherall

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107649 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-02 18:05:18 +00:00
Gloria Broadbent
f3f7fbf7e4 BRAZILIAN Portuguese: Updated RM 3.0 bundle based on EN-RM-rev107474 and fix for RM-2219 and localisation for RM-2333
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107585 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-07-02 10:45:46 +00:00
Neil McErlean
fa3f1230a4 RM-2333, RM-2341, RM-2342, RM-2343, RM-2344, RM-2346.
Changed Classification Agency to optional throughtout the stack and added a new mandatory property Classified By throughout the stack.
Addressing the fallout in the existing tests due to these changes.
Also enhanced some existing tests to validate the classified by value persistence.

Still to do: need to initialise the Classified By field in the Classify dialog to the current user's full name (not as easy as I'd thought) and add additional AC tests.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107433 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-30 15:32:47 +00:00
Gloria Broadbent
1303566099 SIMP CHINESE: Updated RM 3.0 bundle based on EN-RM-rev107117
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107419 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-30 13:02:56 +00:00
Gloria Broadbent
7bf4c39fb0 BRAZILIAN Portuguese: Updated RM 3.0 bundle based on EN-RM-rev107117
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107418 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-30 13:00:58 +00:00
Gloria Broadbent
f8af543786 RUSSIAN: Updated RM 3.0 bundle based on EN-RM-rev107117
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107417 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-30 12:59:15 +00:00
Gloria Broadbent
b90e21761d DUTCH: Updated RM 3.0 bundle based on EN-RM-rev107117
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@107416 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2015-06-30 12:58:09 +00:00