Commit Graph

2364 Commits

Author SHA1 Message Date
Oana Nechiforescu
1a99c6e26b Merge branch 'feature/RM-3362_FixTheBuild' into 'master'
Feature/rm 3362 fix the build

See merge request !173
2016-05-12 12:35:28 +01:00
Tuna Aksoy
5afce78e5c Merge branch 'feature/RM-2868_Create_Mark_Selection_Widget' into 'master'
Feature/rm 2868 create mark selection widget

See merge request !141
2016-05-10 14:47:23 +01:00
Tuna Aksoy
5013c3f88f Merge branch 'master' into feature/RM-2868_Create_Mark_Selection_Widget 2016-05-09 21:57:03 +01:00
ccesarini
6c9dba3a80 GERMAN: Updated bundle for RM 2.5 based on EN-rev2016-05-04 (some terms have been translated) 2016-05-06 15:57:00 +01:00
ccesarini
38a4fceadb DUTCH: Updated bundle for RM 2.5 based on EN-rev2016-05-04 (Content Management System has been translated) 2016-05-06 15:21:27 +01:00
Kristijan Conkas
4e6b180a04 Fixes for record actions. 2016-05-05 11:56:57 +01:00
Tuna Aksoy
937219b9fb Merge branch 'master' into feature/RM-2868_Create_Mark_Selection_Widget 2016-05-05 11:31:47 +01:00
Tom Page
967a591e24 Merge branch 'xperimental/RM-2812_PublicAPITest' into 'master'
Xperimental/rm 2812 public api test

A unit test to look for compatibility issues within the classes marked public API. The test will fail if it finds any exposed references to Alfresco non-public API classes from those marked as @AlfrescoPublicApi. The test searches within method signatures, fields, constructors, superclasses, inner classes and interfaces of public API classes.

See merge request !158
2016-05-05 08:22:33 +01:00
Tom Page
b599e7d102 RM-2812 Incompatibility in deprecated methods is still a problem.
Remove the checks for deprecation, because deprecated methods/classes may
still be used.
2016-05-04 14:34:18 +01:00
Tuna Aksoy
3ebaff16ec Merge branch 'master' into feature/RM-2868_Create_Mark_Selection_Widget 2016-04-29 17:42:37 +01:00
Tom Page
bf2932dedb Merge master into RM-3345CantChangeOwnClearance. 2016-04-29 17:29:32 +01:00
Tom Page
537b05c53c Merge branch 'feature/UpgradeSeleniumGrid' into 'master'
Feature/upgrade selenium grid

Selenium-grid 1.8 allows the UI tests to run on the Bamboo servers.

See merge request !165
2016-04-29 16:59:48 +01:00
Tom Page
18d27da2f1 Try upgrading to 1.8 this time. 2016-04-29 16:15:54 +01:00
Tom Page
dd4c3eb407 Try upgrading selenium-grid to 1.7 to see if that fixes build. 2016-04-29 15:26:55 +01:00
Tom Page
93143fe5d6 RM-3345 Ensure the current user is not setting their own clearance.
Also add unit tests for admin losing clearance and guest gaining clearance.
2016-04-29 10:07:04 +01:00
Tuna Aksoy
7e15a0304b Merge branch 'master' into feature/RM-2868_Create_Mark_Selection_Widget 2016-04-28 15:39:12 +01:00
Tom Page
37dc4c7b8c Merge branch 'feature/RM-3344_AdminAndGuest' into 'master'
Feature/rm 3344 admin and guest

RM-3344 Ensure that admin can't lose clearance and guest can't gain any clearance.

Rather than use the guest role, as was used previously for classification clearance, we are
explicitly checking the username.

See merge request !160
2016-04-28 10:00:23 +01:00
Tom Page
2a3b419ec1 RM-3344 Ensure we are not downgrading admin or upgrading guest.
This is a first pass at preventing changes to the clearance of admin or guest.
Previously we weren't allowing any changes to their clearance, but when
working with security markings, admin in particular needs to occasionally gain
a new mark when a custom group is created.  Currently that clearing is not
happening, but this change does not prevent it, if needed.

Also remove an unused method from the CaveatMarkingServiceImpl, as the class
is already very full.
2016-04-27 16:12:11 +01:00
Tuna Aksoy
54ad44883c RM-3276 (Edit and Application of Marks to a Single User) 2016-04-27 13:37:18 +01:00
Tom Page
3314b1737c Merge branch 'xperimental/RM-2812_MarkPublicAPIs' into 'master'
Xperimental/rm 2812 Mark Public APIs

First attempt to mark classes that should be part of the public API with \@AlfrescoPublicAPI.

I have also added a couple of \@deprecated annotations to classes where I thought it made sense, and
added comments to classes that I wanted to add to the public API but couldn't (due to their contract
being dependent on non-public API classes).

See merge request !138
2016-04-27 09:23:58 +01:00
Tom Page
0fcc2dd1af Public API consistency tests.
Check that the classes we've declared as AlfrescoPublicApi do not require
use of non-public API Alfresco classes.
2016-04-27 09:18:08 +01:00
Tom Page
c28264c8c0 RM-2812 Finalisation of first pass of classes to annotate. 2016-04-27 09:15:37 +01:00
Tom Page
6629b10b8a Merge branch 'feature/RM-3144_PatchForClearanceLevel' into 'master'
Feature/rm 3144 patch for clearance level

Create a patch to migrate all users' clearance levels from the old classification model to
the new security marks model.

This merge request depends on getting !130 merged first.

See merge request !133
2016-04-27 08:27:12 +01:00
Tom Page
2417ba5288 Merge release/V2.4 into master.
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
2016-04-25 16:22:07 +01:00
Jean-Pierre
c97c3881a0 [maven-release-plugin] prepare for next development iteration 2016-04-22 14:32:22 +01:00
Jean-Pierre
859f00831e [maven-release-plugin] prepare release V2.4 ags-2.4 2016-04-22 14:32:19 +01:00
Jean-Pierre
5cb1477b4c [maven-release-plugin] prepare for next development iteration 2016-04-22 14:27:19 +01:00
Jean-Pierre
bcdbc312c7 [maven-release-plugin] prepare release V2.4.b ags-2.4.b 2016-04-22 14:27:16 +01:00
Tom Page
9ead3bd771 RM-2812 Add audit service and dependencies.
Having thought about this more, I don't think there's any problem adding
a deprecated class to the public API, as long as it's clearly marked as
such. It's deprecated at the moment because we think people might be using
it, but we want them to migrate to something else. Declaring this as part of
the public API formalises this process.

The RecordsManagementAuditService has the following dependencies:

RecordsManagementAuditQueryParameters <- RecordsManagementAuditService
RecordsManagementAuditEntry <- RecordsManagementAuditService
AuditEvent <- RecordsManagementAuditService
2016-04-20 16:24:44 +01:00
Tom Page
9c0b13133b RM-2812 Update following review comments.
The class dependency used to determine the classes to include based on the initial services is:

Depth 0: Service interfaces.

Depth 1:
ClearanceLevel <- SecurityClearanceService
RecordsManagementActionCondition <- RecordsManagementActionService
ClassificationAspectProperties <- ContentClassificationService
Version <- RecordableVersionConfigService, RecordableVersionService
Role <- FilePlanRoleService
CaveatGroupType <- CaveatSchemeService
RecordsManagementEvent <- RecordsManagementEventService
Group <- CapabilityService
RelationshipDisplayName <- RelationshipService
RecordsManagementActionResult <- RecordsManagementActionService
RecordsManagementAction <- RecordsManagementActionService
Relationship <- RelationshipService
ProtectedModelArtifact <- ModelSecurityService
ReportGenerator <- ReportService
RecordsManagementSearchParameters <- RecordsManagementSearchService
SecurityClearance <- SecurityClearanceService
SortDirection <- CaveatSchemeService
RecordsManagementEventType <- RecordsManagementEventService
Report <- ReportService
UserQueryParams <- SecurityClearanceService
CaveatMarkSortField <- CaveatSchemeService
ProtectedProperty <- ModelSecurityService
RelationshipDefinition <- RelationshipService
Capability <- FilePlanRoleService, CapabilityService
ExemptionCategory <- ClassificationSchemeService
CaveatGroup <- CaveatMarkingService, CaveatSchemeService
ClassificationReason <- ClassificationSchemeService
ProtectedAspect <- ModelSecurityService
MetadataReferral <- ReferralAdminService, ReferredMetadataService
CaveatMark <- CaveatClearanceService, CaveatMarkingService, ContentClassificationService, CaveatSchemeService, ClassificationSchemeService
SavedSearchDetails <- RecordsManagementSearchService
IdentifierGenerator <- IdentifierService

Depth 2:
RecordsManagementActionConditionDefinition <- RecordsManagementActionCondition
ReferralRegistry <- MetadataReferral
ClassificationSchemeEntity <- ExemptionCategory, ClassificationReason
RecordsManagementActionDefinition <- RecordsManagementAction
ReportDetails <- SavedSearchDetails
SortItem <- RecordsManagementSearchParameters
SavedSearchDetailsCompatibility <- SavedSearchDetails

Depth 3:
RecordsManagementModel <- SavedSearchDetailsCompatibility

Depth 4:
RecordsManagementCustomModel <- RecordsManagementModel
2016-04-20 16:14:07 +01:00
Ana Bozianu
be070b20e5 Merge release/V2.4 into master 2016-04-20 18:04:27 +03:00
Ana Bozianu
32bb544bfc RM-3310 - added null check 2016-04-20 14:27:07 +03:00
Tom Page
0659402f13 RM-2812 Mark public API methods with @AlfrescoPublicAPI. 2016-04-19 16:24:46 +01:00
Tuna Aksoy
715d4f81a9 Merge branch 'feature/RM-3150_Errors_When_Generating_Javadoc' into 'master'
Feature/rm 3150 errors when generating javadoc

See merge request !135
2016-04-18 16:44:51 +01:00
Tuna Aksoy
7b705e005e RM-3150 (Errors when generating Javadoc for RM using Java 8) 2016-04-18 16:19:06 +01:00
Tuna Aksoy
9bdc38785c Revert "RM-3150 (Errors when generating Javadoc for RM using Java 8)"
This reverts commit a1cc7a6b05.
2016-04-18 16:12:00 +01:00
Tuna Aksoy
a1cc7a6b05 RM-3150 (Errors when generating Javadoc for RM using Java 8) 2016-04-18 16:01:02 +01:00
Tom Page
14b32e92f3 RM-3144 Create a patch to migrate clearance level.
Previously the clearance level was stored in its own aspect in the
classified content model, but it has now been moved to the security marks
model.
2016-04-18 11:44:32 +01:00
Roxana Lucanu
594d146c8e Merge release/V2.4 into master 2016-04-15 16:16:45 +03:00
Roxana Lucana-Ghetu
5b01cbaf43 Merge branch 'feature-2.4/RM-3285' into 'release/V2.4'
Feature 2.4/rm 3285

Added check not to be able to put null in cache, for nodes that are not records and don't have a filePlan.
Added unit test for it.

See merge request !128
2016-04-15 13:44:57 +01:00
Roxana Lucanu
6cbfab08e1 Changed class not to extend anymore BaseUnitTest class 2016-04-15 15:38:09 +03:00
Roxana Lucanu
f3ed3f9197 RM-3285 - added null check for adding in cache 2016-04-15 13:34:30 +03:00
Kristijan Conkas
7e1b112b59 Merge branch 'feature/RM-3284_UI_tests_are_failing' into 'master'
Feature/rm 3284 ui tests are failing

This change addresses the failing builds both on master and on latest Aikau build plan. It also bumps up the Aikau version to 1.0.63 (further to @dwebster's confirmation this one is good to use).

See merge request !125
2016-04-15 11:06:34 +01:00
Silviu Dinuta
e2c9524a07 Merged release/V2.4 into master 2016-04-15 11:32:34 +03:00
Silviu Dinuta
a5c1b69690 Merge branch 'feature-2.4/RM-3233_NonElectronicRecordsCanNotHavePropertiesChangedThroughRulesInUnfiledRecords' into 'release/V2.4'
Feature 2.4/rm 3233 non electronic records can not have properties changed through rules in unfiled records

When setting a foreground rule to change one properties for files that enter to a folder from Unfiled Records, when trying to create a nonElectronic record sometimes because it was very hard to reproduce this issue, SetPropertyValueActionExecuter is executed before adding the Record aspect from RecordsManagementContainerType.onCreateChildAssociation() and that's why it fails when checking UpdateProperties capability.

When creating "rma:nonElectronicDocument" document formprocessor is used and at some point updateNode from node service is used to update the properties. Therefore I made sure that each time when udating "rma:nonElectronicDocument" node the Record aspect is added if not present.

See merge request !124
2016-04-15 09:23:29 +01:00
Tuna Aksoy
fbe8527b69 Merge branch 'release/V2.4' 2016-04-15 09:22:25 +01:00
Roxana Lucana-Ghetu
88ce7f91ca Merge branch 'feature-2.4/RM-2925_noOptionToDeleteDestroyedRecordFolder' into 'release/V2.4'
Feature 2.4/rm 2925 no option to delete destroyed record folder

RM-2925 - No option to delete destroyed record folder (which maintain record metadata after destroy)

Made Delete action available for destroyed record folder, added unit test class.

See merge request !92
2016-04-15 09:18:39 +01:00
Silviu Dinuta
5eaf78dc8e Changed NonElectronicRecortTypeUnitTest 2016-04-15 11:09:32 +03:00
Silviu Dinuta
eca36c48b2 Changed NonElectronicRecordTypeUnitTest 2016-04-15 10:41:53 +03:00
Ana Bozianu
34b7db52aa Merge release/V2.4 into master 2016-04-14 19:40:25 +03:00