Commit Graph

144 Commits

Author SHA1 Message Date
Glen Johnson
da322f33ca Various fixes to "start" operation in Invite Web Script
- Fixed bug where "start invite" web script operation was always generating a new disabled invitee account, even if an account for a user with the given invitee email address already existed.
- Make sure that invitee ONLY receives account details in invitation email if a disabled invitee account has just been created for invitee prior to sending out the email (i.e. if there was no pre-existing account for the invitee and thus a disabled invitee account had to be created)
- Breaking out the long "start invite" web script method into various helper methods
- Throw web script exception if "start invite" web script operation hasn't been able to generate a unique user name for the given invitee email address after 10 attempts.
- If "start invite" web script operation detects that a person already exists in the repository with the given invitee email address, then use that existing person as the invitee (instead of always creating a new person node for the given invitee email address)  
- Throw Web Script exception if "start invite" web script operation detects that given invitee is already a member of the given site
- Added more comments to the code

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-18 16:38:38 +00:00
Michael Ru
b2418a1eac - permissions for blog and forum components
- cleanup of taglibrary code

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-18 15:50:09 +00:00
Roy Wetherall
6cd48e1cbf Fixed up blog service test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-18 13:31:36 +00:00
Roy Wetherall
9d2fa4ce44 Tagging Service: tag scope refresh added. Async action execution policy added.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10288 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-07 10:25:05 +00:00
Roy Wetherall
d230c72045 Change file modified date on returned content from web script of type 'ContentStream', fix for SLNG- 894, change relating to SLNG-989, assertNotNull added to JS unit test API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10223 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-04 12:06:19 +00:00
Glen Johnson
0a6cccc428 Fixed check for missing user name parameter, and added checks for missing first name and missing last name parameters, to Person Service REST API method POST People.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10215 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-04 02:32:28 +00:00
Glen Johnson
57668a2647 Various improvements to InviteServiceTest in setup(), tearDown(), and startInvite() helper method
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10213 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-02 19:35:02 +00:00
Roy Wetherall
84270f27b6 Fix up test so failing async thumbnail creation does not cause test to wait indefinately
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10195 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-01 09:09:51 +00:00
Michael Ru
b381747731 - stress test for failing tag tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10193 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-01 09:07:19 +00:00
Michael Ru
18db58a702 - disabled tagging related blog post unit tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10186 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-31 17:04:49 +00:00
Glen Johnson
6079c6fdfb Fix for inviteresponse web script - when an invitation is either accepted or rejected, the respective tasks in the invite workflow are now getting ended properly, thus ending the workflow
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10105 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-29 15:50:42 +00:00
Roy Wetherall
ef3a04948d Fix-up unit test to allow build to commence
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10060 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-28 10:32:14 +00:00
Glen Johnson
90905a5ae1 Various minor fixes for REST Invite Service (mostly to starting the invitation process, building the invitation email and sending out the email)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-28 06:11:43 +00:00
Roy Wetherall
abc95e42d1 Added support for pagesize on site collections for preview
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10035 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-25 15:14:53 +00:00
Roy Wetherall
5f6cb30310 Sites collection added to person rest API, check point of tagging rest API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10025 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-25 12:21:03 +00:00
Kevin Roast
2e2642cb7d User Profile enhancements:
- Upload of Avatar image - added as a child node via preferences aspect to the cm:person node for the current user
 - Ajax update of image in profile read/edit views
 - Auto generated thumbnail used for avatar immediately after upload
Tweak of file-upload component to allow override of destination URL for POST of content
Added new flag to thumbnail GET call to force thumbnail creation synchronously without waiting
Fix to Person PUT API (Unit Test now executes correctly)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10008 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-24 14:44:45 +00:00
Michael Ru
0af3358015 - inserted new blog icons
- fixes for top search bar, but icons still not correctly layed out
- fixed blog/discussion REST API unit tests
- fix for broken external blog config dialog
- documentlibrary activity now produces correct download url for files (filename at the end of the url was missing)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10001 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-24 09:45:06 +00:00
Glen Johnson
bedc406bf4 Java-backed person.put (person update) Web Script for the Person Service REST API
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9947 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-18 22:19:31 +00:00
Roy Wetherall
51fdc5743a Fix up test to fix build
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9943 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-18 15:34:44 +00:00
Kevin Roast
773b9e811e Enhanced User properties available ready for User Profile component - added new properties to content model definition, ContentModel constants file and Slingshot User objects.
Added AlfrescoUser object, to be responsible for persisting changes to User Profile.
Added concept of ThreadLocalRequestContext - similar to FacesContext in that it has a static accessor method to retrieve the "current" instance.
Removal of 'alfresco-system' endpoint from web-framework and replaced usage with 'alfresco' endpoint:
 - removes the need for admin user detailed to be stored in web-framework config files (!) and being constantly transmitted between tiers
 - refactored appropriate webscripts to accept non-admin authentication but added code checks to ensure non-admin users can only bring back meta-data about themselves
 - refactored AVMRemoteStore and RemoteStore client to use authenticated endpoint rather than system admin authentication driven endpoint
 - this also reduces the the traffic between tiers and vastly reduces the number of login tickets requested
Added open HTTP endpoint - for use by RSS feed components etc. that point to any website feed - configured as 'unsecure' endpoint so purposely cannot be accessed via proxy URLs.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9920 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-17 14:38:55 +00:00
Roy Wetherall
5f5937479b Site Service: refactor container API (Java & JS) to have separate create method, fix-up UI fallout, expose node details on site details (Java/JS/REST), fixup web scripts with correct permission levels
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9918 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-17 14:17:16 +00:00
Glen Johnson
3c7c03052b DELETE Person REST API method for Person Service & Unit Test
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9894 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-16 20:02:36 +00:00
Glen Johnson
ee8cc00023 Person Service REST API call PUT /people/{userName} to update a person's details, including supporting fix for POST /people/ (create person Web Script) using "jobTitle" property on person ScriptNode instead of all lower case "jobtitle"
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9886 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-15 20:30:07 +00:00
Michael Ru
8d931598ce - new aspect cm:contentupdated used for forum/blog to mark updated posts
- aspect blg:released is used to mark a internally published post
- added missing I18N file for blog rss
- some ui enhancements, e.g. blog drafts won't show add comment box anymore

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9881 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-15 17:33:33 +00:00
Jan Vonka
1063408a4b Activity Service - for template store, move "path" arg to be URL extension (SLNG-777)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9832 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-14 08:59:30 +00:00
Glen Johnson
9db77075db Added invitee first name and last name parameters to the "/api/invite/start" web script call for the Invite Service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9831 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-14 07:25:39 +00:00
Glen Johnson
a3412c899e Fixes to Invite Service to expose internal invite workflow instance ID externally as invite ID for all Invite Web Scripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9822 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-11 17:10:46 +00:00
Glen Johnson
022f0bed8f Invite REST API Service with (1) additional Unit Tests (2) latest round of fixes so all unit tests for "invite", "inviteresponse" and "invites" (pending invites) Java-backed Web Scripts pass (3) moving superseded invite.get.js and inviteresponse.get.js out of the way and "turning on" Java-backed Web Scripts
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9818 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-11 14:45:02 +00:00
Michael Ru
735e6f3961 - added activities for blog posts
- added tagging support for blog

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9809 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-11 10:12:53 +00:00
Kevin Roast
3dfa87174e Implemented Delete Document API for remote AVM store (repo-tier) and remote store client (web-tier).
Fixed and added APIs to bind and unbind components in web-tier object model - mirrored API methods for "sitedata" JS API.
 - this completes the working APIs needed to add/remove pages and add/remove/modify component bindings to facilitate user dashboard configuration and site page configuration.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9716 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-10 11:17:30 +00:00
Glen Johnson
f8d631f9f1 Latest fixes for Java-backed Invite REST API Web Scripts - but invites.get (pending invites) still failing on Unit Tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9714 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-10 10:10:03 +00:00
Glen Johnson
f0b7fc0569 Fix to GET invites web script API - invites now directly addressable by invite ID, see invites.get.desc.xml for API description
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9706 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-09 18:03:09 +00:00
Glen Johnson
595fd3f854 Latest round of Invites (pending invites) Java-backed Web Script fixes/modifications
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9704 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-09 15:37:07 +00:00
Michael Ru
0d2114d4e0 - new webscript for my forum topics
- proper pagination component
- cleanup of topic list page js code
- tag support for blog REST API (still disabled though)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9702 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-09 15:20:48 +00:00
Glen Johnson
63bf4b1355 Latest drop of Java-backed version of Invite Web Scripts for (invite.get [start, cancel], inviteresponse.get [accept, reject], invites.get [pending])
- to take over from JavaScript version of these web scripts to allow secure running under admin authority

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9697 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-09 11:21:17 +00:00
Michael Ru
61815aa9d1 - some unit tests for the discussion service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9666 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-07 14:28:28 +00:00
Michael Ru
9a7cc0f21f - Some unit tests for the blog web scripts
- Added proper permission handling for blog post drafts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9665 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-07 13:05:25 +00:00
Glen Johnson
739b875bd4 Various fixes to REST Person Service and Web Script Unit Test
- Delete people and authentications for users created in setUp()
- Modify person.lib.ftl so that it copes with firstName and lastName being undefined
- Modify people.post.js to use var.properties["propKey"]=value when adding person properties so that it copes with setting properties that don't already exist 

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9619 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-02 07:34:41 +00:00
Glen Johnson
e3afa83704 Latest cut of Invite Service/Workflow containing last bunch of fixes/modifications needed to get Web Script Unit Tests to pass
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9597 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-30 14:53:26 +00:00
Jan Vonka
7bb7d8f36b Fix URLs in FeedControlTest
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9584 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-27 16:55:15 +00:00
Jan Vonka
3276be3d62 Activity Service:
- fix user feed controls
- add support for Derby dialect, including sample config
- add derby.jar (10.4.1.3)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9572 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-25 15:51:16 +00:00
Glen Johnson
57f8a813c1 Person Service - now all Web Script Unit Tests pass
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9558 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-24 23:20:13 +00:00
Roy Wetherall
1f3e2a47c1 Preference Service
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9538 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-23 09:48:22 +00:00
Kevin Roast
84891a3f01 Remote AVM Store REST API now supports "list" and "listall" to retrieve lists and recursive lists of document paths.
Much improved JUnit test for RemoteStore - on web-tier end.
 - various issues fixed in existing API as highlighted by JUnit tests
Separated out RemoteStore test from the RemoteClient JUnit test into own file.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9530 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-20 13:27:43 +00:00
Glen Johnson
9674ca28c7 Person Service Web Scripts Tests
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9528 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-20 10:51:38 +00:00
Kevin Roast
af0f04335d Fix to a couple of objects that were NPE in the JavaScript debugger due to dodgy toString() methods.
JavaScript debugger windows now have different titles in the repo/web-tier so they can be distinguished easier if both are open on the same desktop.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9511 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-19 09:49:23 +00:00
Jan Vonka
bd6c9f3a75 Activity Service - fix site feed to avoid stacktrace if siteId does not exist
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9484 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-16 13:57:52 +00:00
Kevin Roast
54b809411d Refactored RemoteStore client (i.e. on web-tier) to use Connector framework for remote operations.
Remote AVM store now expects 'admin' auth level for all operations, and fixed to handle AuthenticationDenied exceptions.
Added example config to use remote AVM store as primary lookup location (with fall back to web-app classpath) for model XML files - NOT on by default - as still need to add the avm sitestore to bootstrap/patch.
Improvements to web-framework model object caching - use of "sentinel" pattern to cache missing values.
Model object persister ordering now maintained as per Spring config order.
ModelObjectManager now more aggressively throws out exceptions when errors occur loading model objects.
Fix to RendererFactory to be thread safe (!)
Other small fixes, clean up and productisation in web-framework.
Useful toString() methods added to various classes for debugging.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9471 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-13 13:52:01 +00:00
Roy Wetherall
132c0af749 Thumbnail Service: removed unessesary code to store transformation options on node, added GET for thumbnail collection resource, created thumbnails are kept in sync with the master file asynchronously
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9452 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-11 15:27:03 +00:00
Michael Uzqu
3c254e6850 Web Framework loads model files from Stores
- first pass implementation
- all model files are loaded from Stores
- added configuration file (web-framework-model-context.xml) which maintains three stores (classpath, local and remote)
- remove model file system from request context
- updated caching so that it wraps Store objects
- added a simple LocalFileSystemStore that mounts against a provided local path (i.e. d:/web-framework)
- updated Store interface and implementations (RepoStore, ClassPathStore, RemoteStore, LocalFileSystemStore) to include removeDocument method


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9441 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-11 04:56:42 +00:00