3073 Commits

Author SHA1 Message Date
Gavin Cornwell
cbd452fd7d ALF-3102 & FORM-36: Allow the starting point to be defined for the association control also required to implement ALF-4070: F20 Selectable resources are limited to the current site (if appropriate)
The association control now accepts a 'startLocation' parameter, this can be set to any of the following:

{companyhome}
{userhome}
{siteshome}
{doclib}
{self}
{parent}
A NodeRef
An XPath

The NodeRef and XPath options can also be used for the category form control to start the category picker in a particular category.

The XPath option is already used by the replication job UI and an example of {doclib} is in the FDK.

Example config would be as follows:

<form>
   ....
   <appearance>
      <field id="fdk:images">
         <control>
            <control-param name="startLocation">{doclib}</control-param>
         </control>
      </field>
      <field id="fdk:reviews">
         <control>
            <control-param name="startLocation">/app:company_home/app:dictionary/app:transfers/app:transfer_groups/cm:default</control-param>
         </control>
      </field>
   </appearance>
</form>

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21992 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:37:43 +00:00
Nick Burch
e7439974f2 Mark out which bits need to be changed to support ALF-4476
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21991 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 13:36:31 +00:00
Derek Hulley
a82a04c9a6 Possible fix for ALF-4409: Locale-independent properties can be given different locales
- 3.4 de-Hibernate problem
 - The DAO was not *ever* persisting '.default' so could give back different IDs for getOrCreateDefaultLocale().
 - Obviously, the NodeService (and all other clients) would expect the same ID for the default locale.
 - No need to change the NodeService property code - it's behaving correctly.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21985 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-25 08:41:22 +00:00
Mark Rogers
4d5229bccd ALF-4351 - alien invasion - copy behaviour.
implementation copy alien + unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21968 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 13:42:59 +00:00
Derek Hulley
39e25da30c Fixed ALF-2854: User Usage Queries use read-write methods on QNameDAO
- Was fixed on 3.3, but problem crept into de-Hibernate porting again for 3.4


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21959 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-24 10:17:49 +00:00
Derek Hulley
26eb271ff9 Fixed ALF-4117: NodeDAO: Allow cm:auditable to be set
- Prevents regression of ALF-2565: Allow cm:auditable values to be set programmatically
 - Prevents regression of ALF-3569: Alfresco repository CIFS driver not setting timestamps


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21939 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 14:55:07 +00:00
Derek Hulley
88317ea7ab Merged BRANCHES/DEV/V3.3-BUG-FIX to HEAD:
21761: Latest SpringSurf libs: Fix for IE6 XSS issue ALF-4307
   21832: Fix ALF-3569: Alfresco repository CIFS driver not setting timestamps


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 14:53:16 +00:00
Andrew Hind
b4aa44c2f7 ALF-3142: patch.updateDmPermissions takes too long to complete
- first upgrade test 100k set permissions/20 minutes (worst case each node has an ACL)
- single threaded

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21934 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 13:26:16 +00:00
Derek Hulley
1745a5a116 Unit test attempting to reproduce ALF-4409: Locale-independent properties can be given different locales
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21933 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 12:49:01 +00:00
David Caruana
94520df08a ALF-4346: Scheduled Persistent Actions CRUD
- complete tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21929 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 11:36:22 +00:00
Gavin Cornwell
7ba57ef649 Fixed issue in TaskFormProcessor where transitioning a task would not persist the comment (or any other property change) supplied along with the transition.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 11:27:24 +00:00
Gavin Cornwell
96b61bae8c Added task update protection to the task form processor and changed the check in TaskInstancePut to use the new isTaskEditable method on the WorkflowService.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-23 07:24:12 +00:00
David Caruana
4cad8ab1fd ALF-4346: Scheduled Persistent Actions CRUD
- implement persistence of scheduled actions
- tests
- TODO: further tests e.g. various updates of associated action

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21916 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 17:51:56 +00:00
Mark Rogers
dd65fccd7b ALF-4351 - copy behaviour for transferred nodes.
part1: the trx:transferred aspect is removed on copy.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21913 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 16:30:07 +00:00
Gavin Cornwell
c9edde9a84 Fixed potential NPE in WorkflowService when the user that initiated a workflow has been deleted from the system.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21912 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 16:13:40 +00:00
Derek Hulley
a22fdceccd Upgrade overhaul: Retiring ancient patches and fixing de-Hibernate problems
- Moved setting of txn isolation level to ControlDAO
 - Retired patches where target schema is < 100
  - Removed unreferenced patch implementations
  - Removed unreferenced DB scripts
 - Moved patch-specific queries (ACL upgrade counts) into patch-common-SqlMap.xml
 - Fixed count query result processing (max of nothing is NULL) leading to unboxing NPEs
 - All DM-modifying patches depend on DmPermissionsPatch i.e. it will normally run immediately after SQL scripts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21908 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 14:45:18 +00:00
Derek Hulley
bda714b422 Check for null Long to prevent vague unboxing NPE
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21898 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 11:55:28 +00:00
Derek Hulley
a11e5505ca Prevent server startup if rollbacks cause patch entry recording to fail
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 11:39:41 +00:00
Derek Hulley
a0e426f85c More NodeService.getChildAssocsByPropertyValue (incl. PostgreSQL fix)
- Boolean *must* be passed as a parameter (PostgreSQL only accepts 'TRUE' or 'FALSE')
 - Moved code next to ChildAssoc-related code
 - Tested on MySQL and PostgreSQL


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:51:52 +00:00
Derek Hulley
1fb2270a24 Moved variable declarations, statics and setters
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21892 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:44:10 +00:00
Gavin Cornwell
93a7f84624 - Added isTaskEditable, isTaskReassignable, isTaskClaimable and isTaskReleasable to WorkflowService
- Added isEditable, isReassignable, isClaimable and isReleasable flags to task model in REST API
- Added outcome property to task model in REST API (label instead of raw value)
- Change "definitionTypeTitle" property to "type" and fixed up fallout
- Changed UI to use the isXXX flags above rather than copious amount of repeated checks
- Updated workflow details page to use outcome label, isEditable flag and some changes following discussion with Linton
- Added tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21890 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-20 09:07:02 +00:00
Mark Rogers
127100a4a1 Unit test for NodeService.getChildAssocsByPropertyValue
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 17:10:20 +00:00
David Caruana
2d6fd30803 Replication - record target transfer report in replication definition
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21880 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-19 16:18:53 +00:00
Mark Rogers
68ba2c044a ALF-4352 : F99 alien invasion - node service call for selecting children where a property = value
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21855 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-18 15:39:05 +00:00
Nick Burch
f4d3f870f5 Scheduled action executor - Unit tests for most execution cases, persistance still TODO (ALF-4346)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 16:53:57 +00:00
Nick Burch
177d2f46da Allow Context Aware quartz jobs, and start to implement scheduled persisted actions using this (ALF-4346)
Also update ScheduledPersistedActionService to fetch the persisted folder in a cleaner way, and start on tests


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21844 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 15:13:56 +00:00
Mark Rogers
e0372702d3 ALF-4127 - F86 Provide target log to source repository
implemented with unit test.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:16:54 +00:00
Nick Burch
f3ce6ac130 Have the scheduled actions persister startup at the correct point, and start to make use of the new Quartz triggers (for ALF-4346)
Also update the documentation at the top of bootstrap-context.xml to reflect using AbstractLifecycleBean, rather than the raw spring interfaces


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21835 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-17 12:02:17 +00:00
Derek Hulley
637495973d Removed repo-based 'init-method' from scheduled job (stops repo startup if patch hasn't been run)
- Init methods are for parameter checking; use an AbstractLifecycleBean-derived bean in bootstrap-context.xml.
 - Reformatted ScheduledPersistedActionServiceImpl.java; dev-env has Eclipse settings that can be imported


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21816 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 18:56:42 +00:00
Derek Hulley
b55d27f553 Fixed ALF-4190: fixNameCrcValues-2 fails on 3.4
- Finished implementation: Missing bean injection, update parameters wrong way around, etc
 - Improved performance (negative name crc values can be left as is)
 - Tested 


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21814 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 18:28:34 +00:00
Nick Burch
103c17d160 ALF-4346 - Start on the scheduled persisted actions service implementation
Tests are only stubbed out for now


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21813 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 16:37:41 +00:00
David Caruana
261cb71aea ALF-4344: F72/73 Scheduling Service Data Model
- model for persistent action schedules
- bootstrap / patch for 'Scheduled Actions' data dictionary folder

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 14:37:45 +00:00
Nick Burch
fdc64e923d ALF-4346 - scheduling of persisted actions - tweak impl and service packages
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21807 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-16 11:16:52 +00:00
Derek Hulley
6f8af6485f ALF-4106 (ALF-4103): AuditService REST API
- Full start/stop/status using WebScripts
 - AuditService API additions to support
 - .ftl to generate json response
 - Some javadoc and debug additions


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21802 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-14 20:42:26 +00:00
Nick Burch
370e88e732 ALF-4346 - Initial service interface for scheduled persisted actions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21792 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 13:50:35 +00:00
Nick Burch
6cf0b47522 First cut of a replication javascript API. Covers the basics, but not tests yet
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21788 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-13 11:54:51 +00:00
Nick Burch
295e83b953 Tweak replication action executor exceptions
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21762 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-12 15:09:03 +00:00
Nick Burch
3b0bbb487a Basic action tracking service javascript interface
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21756 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-12 12:09:35 +00:00
Andrew Hind
c024e74e08 Fix for ALF-4309: Alfresco FTS does not support content.mimetype etc
- fixed extended types
- enabled lots of commented out tests after dev merge from read permission evaluation

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-12 10:14:25 +00:00
N Smith
00f75050f7 Cleaned up some unused methods in Form Processors.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21751 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-12 09:54:34 +00:00
Mark Rogers
15cd367be5 ALF-4128 : transfer service.
alien nodes : restore and move implementation and unit test

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21744 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 17:42:44 +00:00
Jan Vonka
a25f44cdc1 AVM tests - only run explicit queries on basic tree (not implicitly for every setup)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21742 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 15:16:52 +00:00
Jan Vonka
d1a354c7ad DB2: testLargeStrings
- workaround fix for ALF-4240 pending ALF-4300

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-11 12:31:21 +00:00
Jan Vonka
e7fed5279a AVMTestSuite - build/tests (PostgreSQL)
- investigating ALF-4291 - temporarily comment-out AVMCrawlTestP/AVMStressTestP/AVMScaleTestP/SimulataneousLoadTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 16:57:03 +00:00
Andrew Hind
8824f5b770 ALF-4261:SOLR 013 New PATH Query - not fully tested
- mostly working for PATH, QNAME, ASSOCTYPEQNAME and PRIMARYASSOCTYPEQNAME

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21718 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 15:22:42 +00:00
Nick Burch
b3406e7da0 ALF-4284 - allow cluster-wide visibility of pending actions, as well as running ones
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21707 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 13:38:56 +00:00
Gavin Cornwell
89dc4b3061 Made the new 'packageitems' form control the default control for the 'packageItems' transient field.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21705 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 13:36:19 +00:00
Jan Vonka
0faafb1b8e AVM - re-introduce AVMTestSuite
- for tracking PostgreSQL build/tests - ALF-3773 & ALF-4291
- temporarily comment-out AVMCrawlTestP/AVMStressTestP


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21703 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 11:45:19 +00:00
Jan Vonka
f487d6b4ba ALF-4229 - fix TransactionServiceImplTest.testReadOnlyTxn
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21700 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-10 10:34:57 +00:00
Dave Ward
420caeac25 Merged V3.3-BUG-FIX to HEAD
21634: Fix ALF-3822: Storing of datetime does not work
   21646: ALF-3752: Getting Parent on a specific version throws exception
   21655: Fix ALF-4006: Incorrect search result after renaming a folder
   21659: Workaround for ALF-4230: use of flash technology to upload documents into a share site makes the use of (some) external authentication methods difficult (or impossible)
      - The Flash uploader can be disabled via share-config: DocumentLibary / file-upload / adobe-flash-enabled
   21675: AVM - build/test fix (testSubmitUpdatedItemWithLF)
   21687: Merged V3.3 to V3.3-BUG-FIX
      21650: Fix for ALF-4239: Cannot open any folder that contains a node that is neither folder nor content in Share repo browser
      21658: Merged HEAD to BRANCHES/V3.3:
         21557: Fix ALF-4141: Cannot create relationship via OpenCMIS
      21673: ALF-1905: Corrected LDAP connection validation to allow synchronization connection to use anonymous bind
      21686: Merged PATCHES/V3.3.1 to V3.3
         21684: ALF-4039: Use ISO 9705-style encoding to ensure that compound WCM store names do not collide when user names contain illegal characters
            - Previously, characters that were illegal were just replaced with _ so there could be collisions in store names
            - Also, the sequence -- in a user name or user names "preview" and "workflow" would have been problematic.
         21535: (RECORD ONLY) Merged V3.3 to PATCHES/V3.3.1
            20778: Added revision to version label.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21689 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2010-08-09 15:28:11 +00:00