You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Alejandro Rivero (JIRA)" <ji...@apache.org> on 2008/06/01 19:29:45 UTC

[jira] Updated: (SHINDIG-325) examples of Person, Activities and Data services

     [ https://issues.apache.org/jira/browse/SHINDIG-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alejandro Rivero updated SHINDIG-325:
-------------------------------------

    Attachment: XmlFileFetcher.java

RemoteHttpContainer/XmlFileFetcher.java is auxiliar (but needed) http client used bu the People and Activities services.

> examples of Person, Activities and Data services
> ------------------------------------------------
>
>                 Key: SHINDIG-325
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-325
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Common Components (Java), Sample container & Examples
>            Reporter: Alejandro Rivero
>            Priority: Trivial
>         Attachments: BasicActivitiesService.java, BasicPeopleService.java, XmlFileFetcher.java
>
>
> It has been suggested that a JIRA Issue could be a valid way to upload examples of implementations beyond the Sample Container.
> Here attached is our example, for revision 660156, of an interface to an external BOINC database, yet read only.
> The example is just an extended version of the samplecontainer. It can be of some interest to novice people (as ourselves) because we use heavily xpath and the apache MultiThreadedHttpConnectionManager; so it somehow extends the samplecontainer example.
> Of course, it is of no real use without the database side, which creates the xml. But xpath simplifies the customization process. Our code in that side is python, but it is not useful except if you are planning to use shindig in a BOINC database.
> It is injected in the SocialApiGuiceModule.java as follows from the patch here. Note that we violate the naming conventions so we are easy
> to detect and remove :-)
> Index: java/org/apache/shindig/social/SocialApiGuiceModule.java
> ===================================================================
> --- java/org/apache/shindig/social/SocialApiGuiceModule.java
> (revision 660156)
> +++ java/org/apache/shindig/social/SocialApiGuiceModule.java    (working copy)
> @@ -22,9 +22,9 @@
>  import org.apache.shindig.social.opensocial.DataService;
>  import org.apache.shindig.social.opensocial.OpenSocialDataHandler;
>  import org.apache.shindig.social.opensocial.PeopleService;
> -import org.apache.shindig.social.samplecontainer.BasicActivitiesService;
> +import org.apache.shindig.social.RemoteHttpContainer.BasicActivitiesService;
>  import org.apache.shindig.social.samplecontainer.BasicDataService;
> -import org.apache.shindig.social.samplecontainer.BasicPeopleService;
> +import org.apache.shindig.social.RemoteHttpContainer.BasicPeopleService;
>  import org.apache.shindig.social.samplecontainer.StateFileDataHandler;
>  import com.google.inject.AbstractModule;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.