Commit Graph

5481 Commits

Author SHA1 Message Date
Michael Uzqu
b82201a6bb Post-merge cleanup for Web Studio
- Added "chrome" element to Slingshot so that it renders properly in Web Framework
- Web Studio now calls out to WCM Services and works really nicely
- Removed remote api placeholder services

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11840 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-11 00:22:42 +00:00
Michael Uzqu
ce8299f126 Merge from WCM-CUOMO2 to HEAD - Remote API
- Revisions 11077, 11081, 11107, 11155, 11452, 11537, 11568, 11571, 11767, 11804, 11808
- Adjustments to the AVM Remote Store to fully allow it to interact with any AVM store based on store id and web application id.  The latter is provided to allow WCM Web Project stores to play nicely with non-WCM stores (like sitestore).
- Additional arguments to AVM Remote Store can be passed in as request parameters or as tokenized strings (/s/<store>/w/<webapp>) which allows for URL addressability using a remotestore prefix.
- Additional remote API's for web framework to allow for AVM metadata query and some redirection
- Best effort to merge stuff without breaking any of Mark or Jan's code.  Will work at manual integration of REST API bits tomorrow.  Expect good things.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11811 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-10 08:06:36 +00:00
Saravanan Sellathurai
0d14bd4dd6 Minor changes in the getclassdetail webscript and changes in unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11739 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-06 22:37:43 +00:00
Saravanan Sellathurai
48c32a2f51 Changes to classdetail webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11726 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-06 12:45:08 +00:00
Saravanan Sellathurai
2b78da7c38 Updates GetClassDetail using classfilter and namespaceprefix for the webscript
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11712 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-05 23:35:56 +00:00
Saravanan Sellathurai
7c282a6eff Changes in unit test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11660 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-03 23:03:23 +00:00
Saravanan Sellathurai
9569a075e1 Changes to templates to display qname's in human readable formats with namespaceprefix:name
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11659 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-03 22:54:44 +00:00
Saravanan Sellathurai
1e8bde2a4c Bean configuration to have Dictionary service- missed out in my previous check-in
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11657 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-03 16:30:32 +00:00
Saravanan Sellathurai
236db9d157 First iteration of Dictionaryservice REST API - readonly webscripts for dictionaryservice
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11656 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-03 16:21:55 +00:00
Mark Rogers
74f53da78a Re-instated listWebProject test.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11644 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-11-03 11:44:43 +00:00
Mark Rogers
b99a26c188 Temp commit - comment out listWebSite test (once we get a clean build then we can attent to this)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11597 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-28 18:36:51 +00:00
Kevin Roast
4666d936fc Open Office integration office webscripts - contributed by Juergen Schmidt from Sun Microsystems
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11578 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-28 10:22:10 +00:00
Mark Rogers
7d286457fd Merge WCM-SERVICES to HEAD
Changes 11272-11536

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11562 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-27 17:02:00 +00:00
Glen Johnson
f784bfc7f8 Rules/Actions REST API drop after current phase of testing
- various minor fixes from current testing phase
- various code improvements, mostly in Rules Helper JSON to object translation methods for rules, actions and conditions
- some improvements to test data creation in unit test class helper methods
- updates to delete, get, post rule unit tests
- put rule unit test
- finer grained per property JSON exception handling in rules helper methods
- added more assertions to various unit tests
- added more comments to web scripts and rules helper methods
- added more comments to unit tests
- added more error checking across various web scripts


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11483 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-22 17:52:25 +00:00
David Caruana
a2ea16b286 Fix for handling null mimetypes in CMIS responses
- proper fix for Mike's demo scenario

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11409 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-20 11:29:19 +00:00
Glen Johnson
389a6a26e6 Rules/Actions REST API - Latest cut with updates to Web Scripts and Unit Tests since last drop
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11382 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-16 15:42:38 +00:00
David Caruana
4dc4c0888c Fix rendering of CMIS atom entry for 'no content' items.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-15 14:30:31 +00:00
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
Kevin Roast
3fabf8782b Fix for exception thrown when clicking Details of a file/folder Link object.
Fix to query so that OpenSearch People search finds some useful results and doesn't potentially throw exception when certain characters are passed to the query - ETWONINE-7.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-08 12:10:30 +00:00
Mike Hatfield
932829abec ETHREEOH-244 - Doc Library: Select multiple items allows you to perform inappropriate task
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11238 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-07 14:02:45 +00:00
Kevin Roast
d14bc2affa Fix to images.get.json.ftl when resolving name of item that is missing a title attribute.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11232 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-07 10:30:18 +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
Mike Hatfield
26e9314155 2nd attempt at ETHREEOH-229 - doclib delete actions regression
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-03 16:54:47 +00:00
Mike Hatfield
d49f953bf9 ETHREEOH-4 - Error message appears when trying to copy document from DocLib to Wiki using Repository
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11169 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-03 16:50:00 +00:00
Mike Hatfield
470d54c3e8 ETHREEOH-229 - doclib delete actions regression
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11162 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-03 12:40:29 +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
Mike Hatfield
c1cb0add66 Improvements to image picker for wiki editor. Fixes so it works in IE too.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11117 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-10-01 10:50:25 +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
Mike Hatfield
3b8e67330f My Activities now My Sites' Activities. Added missing Activities feed templates. Refixed all documents filter.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11096 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-30 10:52:41 +00:00
Mike Hatfield
a5454b44cb Activities refactor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11095 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-30 10:05:52 +00:00
Mike Hatfield
6557960f43 All documents filter now wasn't hiding thumbnails or comments
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11090 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-30 10:02:16 +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
Kevin Roast
e14aedffcb - Explicit handling of some more common remote connection exception cases in RemoteClient - custom error codes to indicate problems back to Connector framework.
- Added mechanism to HttpConnector to ignore future requests for N milliseconds after a connection failed attempt to a remote server.
  - this means that multiple requests to a remote server won't simply sit in a queue waiting to time out (signficantly slowing down the start of the Share app if the remote Alfresco server is not available)
- Remote component loading config now off by default - added loading of alfresco/config/custom-slingshot-application-context.xml custom app context file - will provide sample app context to enable remote component loading.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11067 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-29 13:40:10 +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
Kevin Roast
4dd3fca557 Fix up calendar .js scripts after namespace change in r11006 CHK-4686.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11009 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-24 15:15:16 +00:00
Erik Winlof
3eb87fa484 SLNG-1252
Earlier the the repo webscripts for wiki, blog, forum/discussions and comments stripped the userinput (content field) from un-safe html tags such as scripts. Only white listed tags was allowed (specified in StringUtils.safeTags). Now <strong> and <em> has been added to the list but the method to strip away the tags, StringUtils.stripUnsafeHTML() is no longer used from these scripts.

Instead the share webtier is doing the cleaning of these tags when they are rendered using a html.ftl file. (this is the case for the wiki)
If they are requested from the client directly through an ajax proxy call the result is stripped using the Alfresco.util.stripUnsafeHTML in alfresco.js. (this is the case for blog, forum/discussions and comments).

base.css has been updated to display "rich content", in other words user input that has been formatted, correctly.

A new mimetype for installing air applications has also been added to the list of mime types.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@11003 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-24 13:29:07 +00:00
Michael Ru
228170f2a6 - replaced cm:contentupdated and blg:released aspects by a single cm:syndication aspect that provides cm:published and cm:updated date properties
- fixed two i18n messages in the editpost component

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10988 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-23 11:23:48 +00:00
David Caruana
0d85e4c9f7 Fix IN/OUT logging of Apache CXF web services messages.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10980 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-23 09:50:24 +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
Erik Winlof
da06b44a41 Document versions panel
- New styling

Revert version
- GUI
- repo web script

My Site:
- fixed some function debug names 

alfresco.js
- forms runtime handles radiobuttons corerctly
- autmatic reload of page if ajax call returns 401

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10895 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-15 14:13:08 +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
Mike Hatfield
7d25050a1e Fix for SLNG-1085 - Doclist data webscripts with sites starting with numbers
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10889 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-11 20:37:59 +00:00
Mike Hatfield
8378d1a2bf First updates from visual sweep with UI Design Team
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10882 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-10 16:27:29 +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