sakaiproject/nakamura — pull request #400 by ctweney (2011-11-10 21:09:30+00:00)
Title: KERN-2274 World creation API

Implements the World Creation API. See kern-2274.rb for the data format expected by the API. WorldCreationServlet is the main entry point. Implementation docs are here:

https://confluence.sakaiproject.org/display/KERNDOC/KERN-2274+World+Creation+Service

Commits:

commit 11f7412dc5fc1de2c93f7b2bb822f20bb9297c96
Merge: c4ce437 380ba3b
Author: Chris Tweney
Date: Thu Nov 10 13:06:28 2011 -0800

Merge remote branch 'central/master' into kern-2274

* central/master:
KERN-2336 update unit test to match changed parameter
KERN-2336 change "d" parameter to "url" to match ux
KERN-2332 add unit tests to cover all the rules about how content members are updated
SAKIII-4262: support edit imscp file && export imscp with namespace
NOJIRA Don't hit the full profile service from the ProfileNodeSearchResultProcessor. Use the BasicUserInfoService instead.
KERN-2270 responding to Ray's concerns
Squashed commit of the following:
KERN-2337 cut out some code you didn't end up needing
KERN-2337 add a missing return statement
KERN-2337 rewrite the POST method so it is coherent and precise (and not broken)
KERN-2331 Removed classes that were replaced by lite rewrites. Updated tests to keep coverage. Fixed any breakages in the build.
Create CasProxyServlet

commit c4ce437ce57476e6106fc90f7076839ea332fcc1
Author: Chris Tweney
Date: Thu Nov 10 13:05:01 2011 -0800

KERN-2274 Remove overwrite:true from initial-content directive

commit d33344520f5d705d340ebb55298f34dcd5296950
Author: Chris Tweney
Date: Thu Nov 10 11:07:20 2011 -0800

KERN-2274 Update SendMessageStep to handle the fleshed-out message API data structure

commit 06286b5d2d85ba34092270c01b0b6aac08ba8196
Author: Chris Tweney
Date: Tue Nov 8 14:41:12 2011 -0800

KERN-2274 Convert sakai:roles to an array of JSON Objects

commit 35cd7e6d4fb5c558497d1310ae272b7c354af9bf
Author: Chris Tweney
Date: Tue Nov 8 09:45:06 2011 -0800

KERN-2274 Manager groups aren't visible to the other groups after all

commit 47d2f87008dfb0f0fc1f57eae057cbfa16dbf3ae
Author: Chris Tweney
Date: Mon Nov 7 15:22:07 2011 -0800

KERN-2274 Rough sketch of sending internal and smtp messages on group creation

commit bf249e71f4dfcabef14fe2bcddc9f0533808b74e
Author: Chris Tweney
Date: Mon Nov 7 13:44:58 2011 -0800

KERN-2274 Tidying up TagStep

commit b27625ec79000a751fcc584ef2b0c7a59ae4cb01
Author: Chris Tweney
Date: Mon Nov 7 13:19:36 2011 -0800

KERN-2274 Extract the removal of creator as explicit mgr step into its own class

commit 25ef09f691b50e21ee98f1d05b68f1e8d57d908b
Author: Chris Tweney
Date: Mon Nov 7 11:13:52 2011 -0800

KERN-2274 Tweak requests to agree with UX

commit e7e2ba8cba09fde6096864aa4b66e2cb2139b52e
Merge: 7336b9f 9b8a315
Author: Chris Tweney
Date: Mon Nov 7 08:57:03 2011 -0800

Merge remote branch 'central/master' into kern-2274

* central/master:
KERN-2313 Do not throw NullPointerException on an empty page node
KERN-2327 Deal softly with unrecognized CAS users. Remove obsolete code.
KERN-2281 Fix casauth for latest dependency changes
NOJIRA Fix CAS POM error which slipped by before because of looser dependency scope.
KERN-2196 Sleep 10s whenever config changes, even after teardown, so that the stack can restart and subsequent tests aren't affected
NOJIRA fixed missing dependencies

commit 7336b9fe0ddf3171c33ce54e609633e36f665553
Author: Chris Tweney
Date: Fri Nov 4 15:39:35 2011 -0700

KERN-2274 Sub in the group id in the template

commit a2056bee4f8e216f07afee4ba851325528c5cf1d
Author: Chris Tweney
Date: Fri Nov 4 15:21:44 2011 -0700

KERN-2274 Strip jcr nodes from world template before using it; set structure0 as a string; set template id and category on main group

commit a2cf7c0f2113ad5d79294ce7da3f1de1536dcdaa
Author: Chris Tweney
Date: Fri Nov 4 13:26:57 2011 -0700

KERN-2274 Remove creator as explicit manager of the groups and pooled content

commit 1df2378a09d0d5de633e934e307256cc8843c6e0
Author: Chris Tweney
Date: Fri Nov 4 11:34:51 2011 -0700

KERN-2274 Add the docstructure to the main group

commit 356729b7b70f4ace6125283d995950b2a716ccfa
Author: Chris Tweney
Date: Fri Nov 4 11:08:39 2011 -0700

KERN-2274 Don't remove creator as manager until later in the creation process

commit f83a055f6737645d6fda3fd0dec7341538f93a61
Author: Chris Tweney
Date: Fri Nov 4 10:59:28 2011 -0700

KERN-2274 Move steps into their own package

commit 53a4037115fa6e7dfd1b7f0fd67d221fdfe5aa81
Author: Chris Tweney
Date: Fri Nov 4 10:49:01 2011 -0700

KERN-2274 Set ACLs for managers and members of the world

commit a9d5064b4bd503ea04bb1caf1437b25e939e9ac4
Author: Chris Tweney
Date: Fri Nov 4 10:22:30 2011 -0700

KERN-2274 Set ACLs for everyone and anonymous

commit 07d01b2e61cb678e05098b16cbb6ec5e7a8e7b96
Author: Chris Tweney
Date: Thu Nov 3 16:12:44 2011 -0700

KERN-2274 Creating even more world templates

commit 3cf486b2ce9b3d60d901717700977ffaba26ab6d
Author: Chris Tweney
Date: Thu Nov 3 16:03:48 2011 -0700

KERN-2274 Rearrange worlds templates directory; add math-course template

commit d8f1b056ff121c3a14e36049a195f416ab0e4d7f
Author: Chris Tweney
Date: Thu Nov 3 14:47:09 2011 -0700

KERN-2274 Include 'created' indicator in json response from WorldCreationServlet

commit 14551f0a2ee60e7ffff3fde56bde78e8c69353a2
Author: Chris Tweney
Date: Thu Nov 3 14:40:52 2011 -0700

KERN-2274 Test for existence of pooled content; make SubRequest a little less chatty by default

commit 1ec6752106f1af560fadd358e8c8199b42bad8d4
Author: Chris Tweney
Date: Thu Nov 3 14:19:09 2011 -0700

KERN-2274 Don't use .resource when posting to pooled content

commit 6b9b7728bd3ff1bf82e4447cff9d408e5f4656f3
Author: Chris Tweney
Date: Thu Nov 3 13:53:11 2011 -0700

KERN-2274 Fill in pooled content's data

commit c1583c508f3e5b7e5568f2ac7f7d7f14b3f6bcc5
Author: Chris Tweney
Date: Thu Nov 3 13:30:10 2011 -0700

KERN-2274 Actually create the pooled content

commit 6e4628332f274c1f4908be1de17901855cacd5ba
Author: Chris Tweney
Date: Thu Nov 3 11:02:29 2011 -0700

KERN-2274 Introduce DocStep stub, with crude substitution of refid in world template

commit c3111dd135b1a3b7f1c62be395df3e7c54db0f76
Author: Chris Tweney
Date: Wed Nov 2 13:32:36 2011 -0700

KERN-2274 Remove the creator of a group as an explicit manager

commit d02c4df74e8081e236f9941bee3c28f06a0d21b6
Author: Chris Tweney
Date: Wed Nov 2 13:10:19 2011 -0700

KERN-2274 Take visible and joinable attributes and set ACLs based on them

commit fd6eff60960355491bb9b0fdbd41eacd40d2a668
Author: Chris Tweney
Date: Wed Nov 2 11:05:17 2011 -0700

KERN-2274 Attach tags to main group's authprofile, and test for it

commit a404cd3f4b1063e6fcb71b755630e37e66cc06be
Author: Chris Tweney
Date: Wed Nov 2 10:46:06 2011 -0700

KERN-2274 Create memberships based on the usersToAdd param

commit 6e093fd943b21b2e4a2b89701b55736880512455
Author: Chris Tweney
Date: Wed Nov 2 09:59:39 2011 -0700

KERN-2274 Managerial roles are visible to the other subgroups

commit 1f78d3d7aff172f48444b69b756471d9e058d0b7
Author: Chris Tweney
Date: Wed Nov 2 09:48:30 2011 -0700

KERN-2274 Add subgroups to main group as its members and viewers, and test for this

commit c83207554189d703a357a5c62de5b2bafa3ee628
Author: Chris Tweney
Date: Wed Nov 2 09:26:29 2011 -0700

KERN-2274 Update main group with list of managing groups

commit 703367a2c84c4d9a224b372bf8126b4bb56455b4
Author: Chris Tweney
Date: Wed Nov 2 08:59:22 2011 -0700

KERN-2274 Create the :manager property on subgroups based on the manages property of world template

commit 461ec59fe129864581219acc78678fda5b9639fe
Author: Chris Tweney
Date: Wed Nov 2 08:00:41 2011 -0700

KERN-2274 Actually create subgroups; tweak log levels

commit 7c39377f257f79c7cddce672b719d385515ba247
Author: Chris Tweney
Date: Tue Nov 1 16:35:32 2011 -0700

KERN-2274 Introduce the RoleStep (still just a stub)

commit 1114b0d71099e24d8556cd6cd9d06136d32003d5
Author: Chris Tweney
Date: Tue Nov 1 16:17:44 2011 -0700

KERN-2274 Factor the various steps of world creation out into separate classes

commit 864d4edea569a72859fe1c7b1748309fcb0987a2
Author: Chris Tweney
Date: Tue Nov 1 15:56:41 2011 -0700

KERN-2274 Load the world template from JCR repository

commit e9b657c6c17727a1209b6457b9d7db5553df0e99
Author: Chris Tweney
Date: Tue Nov 1 14:07:21 2011 -0700

KERN-2274 Add simple-group as a server-side template

commit 95772feee8b12563f469ba0942d96a763a325a5b
Author: Chris Tweney
Date: Tue Nov 1 13:37:54 2011 -0700

KERN-2274 Check that tags got created successfully

commit 252a8528d3af914feb625c42e11f216fc987c731
Author: Chris Tweney
Date: Tue Nov 1 13:18:57 2011 -0700

KERN-2274 Rework world servlet so it supports newer API; subgroups disabled for now

commit 0eb4835b5e0cf3325b5455b78ae868f913822295
Author: Chris Tweney
Date: Tue Nov 1 11:04:40 2011 -0700

KERN-2274 Handle first part of tag creation

commit 26044aa4f0c5dd87dea6f0553ea039c066514eea
Author: Chris Tweney
Date: Mon Oct 31 16:16:23 2011 -0700

KERN-2274 Fix subgroup JSON syntax, and add -manager subgroup insert to test

commit 164f8fb593a5a2a5a9e21be6ba45f4b9b1d0bec2
Merge: b191e6d e91625c
Author: Chris Tweney
Date: Mon Oct 31 15:03:47 2011 -0700

Merge branch 'master' of git://github.com/sakaiproject/nakamura into kern-2274

* 'master' of git://github.com/sakaiproject/nakamura:
KERN-2323 fix bundle category
KERN-2281 Upgraded managed dependencies and plugins. Updated code to fix build and reduce usage of deprecated methods/classes. Cleaned up some files for easier reading, reduce cruft. Added README.txt to server and tika bundle to note what is needed to upgrade those bundles. Added new tika-config.xml to reflect tika upgrade changes. Corrected code and unit test associated to getting pooled content.
KERN-2281 Upgraded bundles in list.xml to match the latest list.xml from Sling.
KERN-2317 Adding sakai:group-joinable to group properties in BasicUserInfoService.
KERN-2305 Modified /var/search/pool/manager-viewer.json to honour the 'mimetype' parameter.

commit b191e6df4dcdf77f15bcb4af1cce04bf9c02e001
Author: Chris Tweney
Date: Mon Oct 31 15:03:18 2011 -0700

KERN-2274 Handle subgroups

commit a421cc83b5167b05d32cc302b5731e9960ae3d80
Author: Chris Tweney
Date: Mon Oct 31 14:17:52 2011 -0700

KERN-2274 Rename world param to data

commit 007af38ccfc32d003099f2ccb3f720f29e912987
Author: Chris Tweney
Date: Mon Oct 31 10:02:24 2011 -0700

KERN-2274 Strengthen dupe-check test so it looks at the response json for the proper error message

commit f6bc838c3b98b25b5c78a7afcd180a0b68d52aa9
Merge: 9d6adb8 723db6b
Author: Chris Tweney
Date: Mon Oct 31 09:24:13 2011 -0700

Merge remote branch 'central/master' into kern-2274

* central/master:
KERN-2267 list the SakaiStickyPolicy within the load balancer Listener

commit 9d6adb862c2696548f2c27f4f7d3c55710915e79
Merge: 9aea377 cf9f400
Author: Chris Tweney
Date: Fri Oct 28 16:41:49 2011 -0700

Merge branch 'master' of git://github.com/sakaiproject/nakamura into kern-2274

* 'master' of git://github.com/sakaiproject/nakamura:
KERN-2267 add load balancer stickiness policy
KERN-2267 create initial CloudFormation template for an OAE cluster
KERN-2316 add rubygems as a dependency for runalltests.rb

commit 9aea3776e5a817bca53d2b7fa855efde5e2a94e7
Author: Chris Tweney
Date: Fri Oct 28 16:38:03 2011 -0700

KERN-2274 Prevent duplicate group creation

commit 966c516fc67bd08cb2d817cdebf9cd891c460e96
Author: Chris Tweney
Date: Fri Oct 28 15:48:20 2011 -0700

KERN-2274 Test for 404 before group creation and 200 afterwards

commit edff0c1c31781df3ac53cb26cff2ccde935f86b7
Author: Chris Tweney
Date: Fri Oct 28 15:37:31 2011 -0700

KERN-2274 Extract the CreationStep class to encapsulate the forwarding and requestinfo data collection

commit 2c20a6b081cb9ab049b5116cfa0267e8d584ee1a
Author: Chris Tweney
Date: Fri Oct 28 15:07:07 2011 -0700

KERN-2274 WorldCreationServlet now forwards to Group creation to make the main group

commit 90e97d790e7676fc6db7ae2acfefb7653c13fd49
Author: Chris Tweney
Date: Fri Oct 28 13:28:08 2011 -0700

KERN-2274 Delete old unused world servlets; create skeletal new WorldCreationServlet and its integration test