Commit Graph

140 Commits

Author SHA1 Message Date
Roy Wetherall
faeecb6823 RM: Fix unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-09-02 10:40:20 +00:00
Roy Wetherall
90791f72a3 RM: Fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54679 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-30 02:14:22 +00:00
Roy Wetherall
eaadaa0faa RM-853: File Record audit event is absent
* refactored audit events to be spring configurable, registerable beans
  * adjusted how actions are audited
  * added missing action I18N labels
  * adjusted how audit events are stored against the transaction so that more than one is recorded per transaction (previously it was the last event to happen that was recorded)
  * unit test running and share tested



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54678 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-30 00:54:23 +00:00
Roy Wetherall
887b211919 RM-452: RM seurity context will break core Alfresco if Alfresco's public services change
* unit test to show this working
  * added package for issue specific unit tests
  * fix to file plan service so that isFilePlanComponent works for non file plan artifacts



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54460 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-26 09:45:17 +00:00
Roy Wetherall
53e3f9d36b RM-784: Possible to create categories/folders with the same identifier
* started out adding a RM query DOA so canned queries could be added .. turned out this wasn't required, but it's a handy
   bit of framework to have in place for the future so I've left it in with an example query and unit test.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@54102 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-15 06:25:18 +00:00
Tuna Aksoy
9bf629f7ce Fixed failing unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@53956 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-12 17:42:07 +00:00
Roy Wetherall
c9c3812fe5 RM-777: Record name duplication within the in-place container is not allowed.
* records are now renamed when they are created to incorporate the record identifier
  * rejecting a record resotres the origional name



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@53630 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-06 03:36:54 +00:00
Tuna Aksoy
e690b3386b RM-766 (Rule property substitutions missing)
- Extended the test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@53596 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-04 13:07:02 +00:00
Tuna Aksoy
a53f6f6907 RM-766 (Rule property substitutions missing)
- Fixed failing test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@53595 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-08-04 11:41:30 +00:00
Roy Wetherall
21f98c25b4 RM-777: Destruction report generation
* template now correct and matches email notification style
  * record or folder details shown including basic disposition details
  * destroyed records shown if record folder
  * generalised report action
  * other tweaks
 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52685 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-16 05:27:37 +00:00
Roy Wetherall
0b916c241f RM-783: File destruction report action (part one)
* ReportService added ... will be used to consolidate the various reports withing RM (specifically those needed for DOD complicance)
  * Base and declarative implementations of report generators added
  * Destruction report configured with place holder implementation (still need to do name generation, meta-data and final template)
  * Report model added, with destructionReport type defined
  * FileDestructionReport capability added (and capability patch bean updated)
  * Repository action added to file destruction report
  * UI configured to show 'file destruction report' action .. (creates a report and files it as an unfiled record as the destruction report type)
  * fixed up destruction capabilities and actions (capability to destroy record regardless of its current dispostion state did not work)
  * added "AtLeastOne" composite capability condition
  * TODO destruction report template, name and meta-data generation
  * TODO patch to add report template structure to rm data dictionary area
  * TODO start refactor of existing reports including transfer, accession, userRights, filePlan and audit!!



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52562 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-14 09:54:27 +00:00
Roy Wetherall
87bd9abe53 RM: RecordsManagementService refactor
* move candiate methods into FilePlanService
  * deprecation of RMService methods
  * remove all deprecation warnings from code
  * update filePlanService unit tests
  * remove all other spurious warnings from RM code
  * a couple of performance enhancements in the bowls of the capability evaluation code
  * first pass at parametising RecordsManagementAuditService with file plan (so capability evaluation had a tangable reference)
  * fix up unit test failures and other fall out from refactors



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52504 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-12 06:12:46 +00:00
Roy Wetherall
ba197612d1 RM: Admin service refactor
* move admin service and associated classed into 'admin' package
  * move deprecated origionals and move to compatibility structure
  * update references and spring config
  * fix build



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52374 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-10 09:09:02 +00:00
Tuna Aksoy
c8cf1df78c RM-764 (In-Place roles should not appear when managing users and groups)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52221 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-08 10:22:53 +00:00
Tuna Aksoy
89982199e9 RM-764 (In-Place roles should not appear when managing users and groups)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@52207 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-07 08:35:42 +00:00
Roy Wetherall
40db3b7787 RM: Fix up unit test and event web script
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-07-02 06:11:34 +00:00
Tuna Aksoy
679fe536fe RM-752 (RM Dependency upgrade to 4.2):
Fixed failing tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-06-28 15:09:26 +00:00
Tuna Aksoy
e8e60b9a6c RM-752 (RM Dependency upgrade to 4.2):
Disabling tests which are failing after the dependency upgrade. The cause must be fixed in the core (Remote API).

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51857 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-06-28 14:15:06 +00:00
Tuna Aksoy
8b9fe0c387 RM-752 (RM Dependency upgrade to 4.2)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51839 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-06-28 11:00:10 +00:00
Roy Wetherall
586106f26d RM: Fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@51504 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-06-26 05:08:48 +00:00
Roy Wetherall
3e8f85cbda RM Fix Build: Remove failing test as groups are now hidden.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@51081 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-06-14 01:31:02 +00:00
Tuna Aksoy
2f8192d5f7 RM-722 (REST API - Add and remove authorities from roles)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@50355 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-05-24 13:54:33 +00:00
Tuna Aksoy
dfec7aa52f RM-722 (REST API - Add and remove authorities from roles)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@50347 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-05-24 09:17:05 +00:00
Tuna Aksoy
8ea0d5e860 Fixed failing tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@50281 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-05-22 16:47:17 +00:00
Tuna Aksoy
551c7aba24 Activating disabled tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@50279 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-05-22 16:05:32 +00:00
Tuna Aksoy
615afda2ff RM-722 (REST API - Add and remove authorities from roles)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@50274 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-05-22 15:36:44 +00:00
Roy Wetherall
5d69f6aec7 RM-672: Permissions should be maintained when moving a record
* add move behaviour to file plan permission service .. inherited permissions are adjusted, any set directly on the record are kept
  * added missing unit test for file plan permission service
    * test add/remove
    * test record move



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49535 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-24 07:44:51 +00:00
Roy Wetherall
b8bc8bab73 RM: Revert HEAD to 4.2.b dependancy
* remove r49274
  * remove r49264



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49415 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-19 02:19:37 +00:00
Roy Wetherall
9e6e027618 RM: Unit tests
* suites updated and "all" suite added
  * all suite called from build test task .. should improve reliability of tests given a repeatable order
  * fix up failing tests .. block out others for now to get build going



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-18 06:17:03 +00:00
Roy Wetherall
42e0513ade RM: Move workaround into base script and adjust action test suite to work with gradle
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49384 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-18 01:55:39 +00:00
Roy Wetherall
484cbe9331 RM: Modificaiton to unit test to see if issue seen only on Bamboo can be worked around.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-18 01:31:50 +00:00
Roy Wetherall
fa5775452a RM: Modify build scripts to make it possible to run unit tests locally from gradle
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49381 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-18 00:55:20 +00:00
Roy Wetherall
a880ea2e6f RM: Build test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49380 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-18 00:13:10 +00:00
Roy Wetherall
3f36bf396c RM: Simpily build to help detect issue.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49377 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-17 23:54:19 +00:00
Roy Wetherall
5074ddad99 RM: fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49309 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-17 06:28:53 +00:00
Roy Wetherall
0028c25681 RM: Build fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49308 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-17 05:30:26 +00:00
Tuna Aksoy
ae3a4f8b8e RM dependency upgrade (4.2.d)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49264 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-15 20:49:23 +00:00
Roy Wetherall
4654fbacce RM: Edit capability fixes and inplace capability roles
* capability for inplace user no longer defined by dynamic authorities (inheritance was incorrect)
  * default roles added to allow capabilities of reader and writer inplace users
  * record permission inheritance broken .. was on the todo list for a long time, but needed to be done now to ensure the correct inplace permissions where evaluated at the record level
  * unit tests
  * TODO ... patches to migrate to 2.1 for new roles and record permission inheritance change



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-15 09:30:23 +00:00
Roy Wetherall
b9963fa247 RM: Users with write permission on doc that is made record can only edit doc metadata by default.
* relates to RM-600
  * date property handling improvement



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49047 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-10 09:49:44 +00:00
Roy Wetherall
f041d32b21 RM-600: A user with the "EditDocumentMetaData" capability can only edit the properties of the records content.
* record service extended with isPropertyEditable method .. indicates, based on the capabilities of the current user and the nature of the property, whether it can be edited
  * the record service monitors record aspect property updates and throws ModelExceptions if a user tries to update a record or non-record property if they don't have the appropriate capability
  * form filter updated to protect record properties the current user may not be able to edit
  * unit tests

So what does this all mean?  

It means we can control the write permissions of individual properties on a record based on capabilities.  In this case we slice the capability to edit a record in two .. you can either edit the content properties (ie the normal meta-data) or the record properties .. or both of course!



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@49041 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-10 07:26:45 +00:00
Roy Wetherall
f03059d9fe RM: Policy refactor
* moved policy implementations out of RMEntryVoter and into separate classes
 * rather than being a hard coded list, policies are now registered via spring allowing others to be easily added
 * re-arrange some of the support implementation
 * RMEntryVoter is now significantly smaller and most of the logic that was once encapsulated in here is spread over supporting classes and services
 * TODO .. need to review policies and determine which are appropraite .. much easier to do now!



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-04 00:09:06 +00:00
Roy Wetherall
13d4f3f576 RM: Capability configuration refactor
* consolidate the groups capabilities are within (rename and try to simpify)
 * 'deprecate' classification related capabilities into the dod specific package .. these capabilities didn't do anything so will be removed until such a time comes when we consider classified records.
 * remove legacy unit test .. becomming too difficult to maintain and is covered by newer tests



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48750 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-04-03 04:34:11 +00:00
Roy Wetherall
5084af61e5 RM: Unit test fixes
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48661 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-28 06:14:16 +00:00
Roy Wetherall
d777c295fe RM-639: A developer can define a custom RM specific condition implementation.
RM-642: A records manager can create a rule with a "Is Declared" condition
RM-641: A records manager can create a rule with a "Is Filled" condition
RM-638: A records admin can choose from a specialised list of RM relevant conditions when defining a records rule




git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48587 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-26 04:29:31 +00:00
Roy Wetherall
cef10a210c RM: Fix unit test
* ensure file plan param is provided to create record action
  * deal with some of the depreaction warnings from recent changes



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-21 07:37:20 +00:00
Roy Wetherall
096c74aaa9 RM: Fix failing unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48440 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-21 06:27:19 +00:00
Roy Wetherall
5943d7ad46 RM-634: A records admin can access the users and groups within a RM role (or all the roles) via a web script API.
* add additional user/group management methods to FilePlanRoleService java API
  * add file plan retrieval methods to FilePlanService .. including retrieving file plan node reference from RM site id
  * deprecate file plan retrieval methods on RecordsManagementService
  * add FilePlanService unit tests
  * refactor role web service API implementations to allow the file plan (or rm site) to be specified
  * GET roles can optionally include information about the assigned users and groups



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@48438 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-21 05:28:57 +00:00
David Ward
e3ba4546b0 RM-626: Unit test fallout
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/BRANCHES/V2.0@47891 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-11 17:40:28 +00:00
Roy Wetherall
c6d07fbdcc RM: Fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@47845 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-11 08:57:17 +00:00
Tuna Aksoy
5bbb3757e1 Unit tests for RM-592 and RM-595
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@47478 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2013-03-03 15:09:55 +00:00