Commit Graph

214 Commits

Author SHA1 Message Date
Glen Johnson
d7f3b7cc7d Added S(hould)s for Rules/Actions REST API first iteration. GET actiondef, GET conditiondef, DELETE Rules, DELETE Rule
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11302 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-10 14:49:10 +00:00
Glen Johnson
7740f5af84 Rules/Actions REST API - First iteration. Still quite a bit of testing is needed, so there are bound to be more updates coming.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11294 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-10 05:38:27 +00:00
Derek Hulley
33082eb631 Merged V2.2 to HEAD
11008: FileFolderService no longer uses Lucene
   11014: Fixed ETWOTWO-569: Regression after ContentStoreCleaner overhaul
   11021: Fixed HibernateSessionHelperTest
   11028: Fixed unit test's expected values
   11035: Made cm:auditable optional and fixed 64K limit on property list sizes
   11038: IncompleteNodeTagger handles aspects that are not in the dictionary
   11039: Added tests to ensure that QName caching is case-insensitive
   11040: Fixed use of mixed-case QNames for aspects
   11044: Allow background AND in-transaction indexing to be disabled at the same time.
   11046: Removed Lucene use from RegistryServiceImpl
   11050: Removal of Lucene usage
          - ML services finding root using XPath moved to path query
          - RepoStore now uses simple path query
          - Remove unused imports on PersonServiceImpl


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-06 15:03:24 +00:00
Kevin Roast
a1a59aee27 Remote AVM Store no longer uses Lucene to find documents by qname path (was unreliable as cannot guarentee that a store snapshot has been performed after every doc operation - such as an FTP session to upload a new component def).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11212 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-06 14:26:34 +00:00
Kevin Roast
cf7a9f6742 Fix for ETHREEOH-221 - Undefined Root Scoped Objects in JavaScript API.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11119 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-01 11:23:59 +00:00
Dave Ward
ccc17402a5 Fix unit test failure. runas test scripts were not visible in classpath of TestWebScriptServer. Moved to webscript framework project.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11104 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-30 16:48:54 +00:00
Dave Ward
270bde697c Added declarative support for running a web script as an alternative effective user via a runas attribute in the description document. Fixes ENH-229
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11072 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-29 14:53:57 +00:00
Dave Ward
660dc69222 - Added a new ‘catch all’ FormatReader that populates a requestbody script variable when no other FormatReaders are configured to handle a given request type. This was added to help the processing of posts from Orbeon XForms.
- Modified AbstractWebScript.execute() so that request-type specific script parameters (e.g. json, feed) are only available to those scripts that declare a type specific suffix, e.g. *.post.json.js, *.put.atomfeed.js. All non request type specific JS scripts will see requestbody (or formData if the request was multipart form data).This is so that scripts relying on requestBody being available at the moment don’t later get broken if we later map their request types to new FormatReaders.
- Moved getExecuteScript from DeclarativeWebScript into AbstractWebScript and made other subclasses use it, therefore using consistent path resolution rules across all web scripts.
- Removed FormatReader.createTemplateParameters() – Dave said this is not needed and the scripts themselves should copy over script parameters that are required by the templates.
- Renamed *.post.js and *.put.js expecting JSON input to *.post.json.js and *.put.json.js
- Extensive manual testing of share
- Added unit tests
  - Ensure requestbody available to *.post.jst and *.put.js for unmapped request types
  - Ensure json variable available to *.json.post.js and *.json.put.js scripts handling application/json requests
  - Ensure entry variable available to *.atom.post.js and *. atom.put.js scripts handling application/atom;type=entry requests
  - Ensure error raised for bogus script with extension corresponding to format with no FormatReader


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11034 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-26 12:01:05 +00:00
David Caruana
631c94c899 Simple cmis client sample: browse repo, folders and view content
- two surf web scripts utilizing remote
- 'atom' helper added for parsing atom responses from server
- moved abdera cmis extension to webscript f/w
- added urlEncodeComponent to ScriptableUtils
- temp. change to RemoteClient which doesn't prefix endpoint, if passed url already starts with endpoint

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11020 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-25 14:06:55 +00:00
Roy Wetherall
540cc69fe2 SLNG-804: Fix for thumbnails caching in the share client
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10979 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-23 09:44:42 +00:00
Kevin Roast
3d5138831c Implementation of pattern based file search for AVMRemoteStore - paves the way to load components remotely for Share. Also allows a future optimization to the findComponents() web-tier API call. Added new calls to Unit test for Remote Store.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10938 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-19 16:08:27 +00:00
Kevin Roast
ddd8290d8d Fix to unclosed search ResultSet objects in webscript RepoStore when retrieving webscript artifacts from a repo store. Also added required ISO9075 encoding to generated Lucene PATH statements.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10927 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-19 10:58:04 +00:00
Glen Johnson
a7076e1fde Various changes to Invite Service
- added functionality to forbid a user from cancelling a pending invite, if he/she is not a Site Manager for the site associated with that invite
- added CancelInviteAction workflow action class, with functionality to clean up disabled invitee account and invitee person node when (upon cancellation) there are no outstanding invites for that invitee.
- added various unit tests to InviteServiceTest for above functionality
- added automatic redeployment of invite process definition in setup(...) method of InviteServiceTest class
- other minor refinements to InviteServiceTest
- some minor refactoring to Invite Service to prevent code duplication amongst various invite web scripts and workflow action classes


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10894 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-15 00:28:21 +00:00
Gavin Cornwell
2f77a9c25e Proper fix for SLNG-1166
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10864 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-09 10:19:26 +00:00
Gavin Cornwell
3559269b35 Fix for SLNG-1166: Incorrect work of editing documents at Document Library page
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-09 08:36:01 +00:00
Mike Hatfield
8daf020d4d Fix for SLNG-1155 - Pending Invite screen (Site Members area) fails on display with error during processing of the template 'get(assocs) failed on instance of org.alfresco.repo.jscript.ScriptNode'
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10846 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-08 11:45:26 +00:00
Mike Hatfield
a451a5c8d2 Fix test clean-up
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10844 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-08 00:32:34 +00:00
Glen Johnson
07f84b3914 Added code so that 'start invite' throws Web Script Exception (http Status 'forbidden') when inviter tries to invite someone to a site that he/she is not the Site Manager of (and added supporting code to Invite Service Unit Tests)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10841 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 16:48:42 +00:00
David Caruana
01a5a7edf4 Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10837 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 13:11:31 +00:00
David Caruana
5c11d55248 Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10836 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 13:10:24 +00:00
David Caruana
228497e076 Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10833 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 13:07:17 +00:00
David Caruana
a42cc8992f Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 13:06:28 +00:00
David Caruana
64bf87af37 Merge from DEV/SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-07 13:04:45 +00:00
Glen Johnson
946789aa4c Made change from running "set invitee's site membership" as "admin" to running as inviter user retrieved off workflow process variables. (have to explicitly do a "runas user" because current user somehow becomes 'null' in workflow execution thread)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 22:42:22 +00:00
Derek Hulley
5bfd353058 Fixed NPE in RepositoryContainer: TenantService usage now removed
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10796 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 16:15:49 +00:00
Derek Hulley
3517f56b71 Fixed for MT Node Interceptor
- When MT is enabled, there is still a problem with the translation of NodeRefs for the UserUsage component


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10795 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 15:58:48 +00:00
Derek Hulley
6bb620a57b Multi-Tenant node interceptor
- Actually less happening here than it would first appear
 - Some MT bean and interface consolidation
 - The unit test has no meat to it, yet... coming soon!


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 13:04:46 +00:00
Glen Johnson
4bfa120a9c Changed validation check within 'start invite' operation (which checks that the task retrieved off the newly started workflow is the 'inviteToSite' task) to no longer look at the task title (which now picks up the title from the invite workflow message properties)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10774 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-05 12:06:14 +00:00
Glen Johnson
12a855d511 1. Added code and config to assign invitee person as assignee on invite workflow
2. Various changes to invite service arising from moving accept and reject logic and operations out of invite web scripts, and into workflow actions on respective "accept" and "reject" transitions of invitePending task
- in web-scripts-application-context removed services no longer needed for invitereponse web script (only needs WorkflowService)
- moved logic and operations for accept and reject invite out of inviteresponse web script and into AcceptInviteAction and RejectInviteAction actions for invitePending task in workflow definition
- refine house keeping work that cleans up invitee person node and disabled account if they are no longer being used (no outstanding pending invites for invitee) when invitee rejects invite
- changed pending invites query to cater for when inviteAccepted and inviteRejected tasks left incomplete in inviter's dashboard "tasklist"
- a few minor code cleanups
- added SiteService to ServiceRegistry for use in accept and reject workflow action classes
 

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10755 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 15:44:56 +00:00
David Caruana
f2512db0f3 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10743 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:30:47 +00:00
David Caruana
22bc716fcc Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10740 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:29:25 +00:00
David Caruana
865ea6668f Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:28:40 +00:00
David Caruana
6ea64c2e0f Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10737 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:27:19 +00:00
David Caruana
40bb33b90e Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10735 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:25:34 +00:00
David Caruana
385ea356c4 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10734 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:24:01 +00:00
David Caruana
d2619d5ea9 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:22:17 +00:00
David Caruana
57c7de2df6 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10732 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:15:27 +00:00
David Caruana
fb231f88bc Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10731 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:09:45 +00:00
David Caruana
3e303a86d5 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10730 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:08:13 +00:00
David Caruana
a6e263078e Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10729 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 11:06:42 +00:00
David Caruana
bf504cba8c Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10728 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:59:40 +00:00
David Caruana
7e0b3f5453 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10727 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:58:29 +00:00
David Caruana
86fa1c011f Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:56:47 +00:00
David Caruana
e22df58ebb Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10725 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:55:16 +00:00
David Caruana
703d1a3564 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10724 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:53:14 +00:00
David Caruana
d4bb800e1d Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10723 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:46:38 +00:00
David Caruana
f51be032bc Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10722 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:44:42 +00:00
David Caruana
617f8e0b2c Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10721 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:43:08 +00:00
David Caruana
f5f2eb4b02 Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10720 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:42:23 +00:00
David Caruana
9bb82eff7f Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10719 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 10:41:04 +00:00