[Building Sakai] EntityBroker. Spaces in custom action entity ids

Adrian Fish a.fish at lancaster.ac.uk
Mon Aug 2 13:35:37 PDT 2010


Thanks for all the suggestions. Really helpful and very much 
appreciated. I think I'll have a crack at Sam's approach first and see 
where that gets me.

Thanks again,

Adrian.

Jim Eng wrote:
> Adrian,
>
> We wrote another entity provider to deal with existing Sakai id's that do not meet the EntityBroker's very narrow definition of valid id's.  Implementing the RequestInterceptor interface [1] allowed us to encode the incoming request with the actual entity id escaped to make it fit into the EntityBroker world.  IIRC, we also needed to deal with some issues after each request so the response would not end in an error condition.  This seems like an unnecessarily difficult process, but it allowed the Sakai EB to deal with actual Sakai entities.  I wonder if that approach might work for you?
>
> Jim
>  
>
> [1] http://www.opendocs.net/javadoc/sakai/2.5.2/index.html?org/sakaiproject/entitybroker/entityprovider/capabilities/RequestInterceptor.html
>
> On Aug 2, 2010, at 4:19 PM, Adrian Fish wrote:
>
>   
>> Nice idea. I like it. Did it work?
>>
>> Sam Ottenhoff wrote:
>>     
>>>> Does anybody have experience of changing site ids programmatically, without breaking everything?     
>>>>         
>>> Yes, I've done this by doing a database dump, running perl regular expressions over the database dump, and re-importing the database.
>>>
>>> --Sam
>>> _______________________________________________
>>> sakai-dev mailing list
>>> sakai-dev at collab.sakaiproject.org
>>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>>
>>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>>
>>>  
>>>       
>> -- 
>> ==================================
>> Adrian Fish
>> Software Engineer
>> Centre for e-Science
>> Bowland Tower South C Floor
>> Lancaster University
>> Lancaster
>> LA1 4YW
>> email: a.fish at lancaster.ac.uk
>>
>> http://confluence.sakaiproject.org/display/YAFT/Yaft
>> http://confluence.sakaiproject.org/display/CLOG/Home
>> http://confluence.sakaiproject.org/display/BBB/Home
>>
>> <a_fish.vcf>_______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>>     
>
>
>   

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home

-------------- next part --------------
A non-text attachment was scrubbed...
Name: a_fish.vcf
Type: text/x-vcard
Size: 289 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100802/a349c9f6/attachment.vcf 


More information about the sakai-dev mailing list