[Building Sakai] Communication between ResourcesAction and custom service

Steve Swinsburg steve.swinsburg at gmail.com
Thu Jul 7 01:40:28 PDT 2011


Hi Paul, 
Your best solution would be to create a service that the resources tool can call to perform your custom logic. Then make the modifications you need to the resources tool  Having it the other way around will be difficult as David mentioned. 

cheers
S

Sent from my iPhone

On 07/07/2011, at 17:17, Paul Marais <paul at psybergate.co.za> wrote:

> Hi David,
> 
>  
> 
> thanks for the reply.
> 
> We actually don't require the Resource filter anymore.
> 
> However, we still want to place a filter on the Sites tool and the Worksite Setup tool.
> 
> This filter must only show sites that meet certain criteria. This criteria is stored in a our own database table.
> 
> It looks like the code that handles which sites are shown is AdminSitesAction.java and SiteAction.java and respectively.
> 
> Thus we want to call our service from here to figure out which sites to show/hide.
> 
>  
> 
> Cheers
> 
> Paul
> 
>  
> 
> From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-bounces at collab.sakaiproject.org] On Behalf Of David Horwitz
> Sent: 06 July 2011 09:59 AM
> To: sakai-dev at collab.sakaiproject.org
> Subject: Re: [Building Sakai] Communication between ResourcesAction and custom service
> 
>  
> 
> Hi 
> 
> Your case sounds a bit odd - your suggesting calling tool level code from a service layer. This would be difficult and bad practice. You sure you want ResourceAction not ContentHostingService?
> 
> Regards
> 
> David
> 
> On 07/06/2011 09:38 AM, Paul Marais wrote:
> 
> Hi,
> 
>  
> 
> I have a non-visual Sakai tool consisting of a SiteAdvisor and Quartz Scheduler.
> 
> For this tool I've written a API and Implementation layer for my custom services.
> 
> We want to do some custom filtering in the ResourcesAction.java (sakai-content-tool) class by calling the custom services.
> 
> What's the best way to do this?
> 
>  
> 
> Thank you very much
> 
> Paul
> 
>  
>  
> _______________________________________________
> 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"
> _______________________________________________
> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110707/66f05405/attachment.html 


More information about the sakai-dev mailing list