[Building Sakai] Unsubscribe
Benny Mangwane
benny.mangwane at gmail.com
Sun May 20 13:26:41 PDT 2012
On May 20, 2012 9:00 PM, <sakai-dev-request at collab.sakaiproject.org> wrote:
> Send sakai-dev mailing list submissions to
> sakai-dev at collab.sakaiproject.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> or, via email, send a message with subject or body 'help' to
> sakai-dev-request at collab.sakaiproject.org
>
> You can reach the person managing the list at
> sakai-dev-owner at collab.sakaiproject.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of sakai-dev digest..."
>
>
> Today's Topics:
>
> 1. Build path problem. (gayan sukumal wiharagoda)
> 2. Use of GradebookService as a web service (Shoji Kajita)
> 3. Re: Use of GradebookService as a web service (Matthew Jones)
> 4. Re: Build path problem. (gayan sukumal wiharagoda)
> 5. Re: Use of GradebookService as a web service (Charles Severance)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 20 May 2012 05:30:37 +0530
> From: gayan sukumal wiharagoda <gayanwiharagoda at gmail.com>
> Subject: [Building Sakai] Build path problem.
> To: "sakai-dev at collab.sakaiproject.org sakai-dev"
> <sakai-dev at collab.sakaiproject.org>
> Message-ID:
> <CAB_7Qe7C5pcXNWCJEB1FagZUu2sYmKO_8R=9sDgLAA4QweWjkg at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
> I got the following error. What is the library that I want to import. Can
> some one help me.
>
> Cannot find the class file for
> org.sakaiproject.content.api.ContentHostingService. Fix the build path then
> try building this project
>
> regards,
> Gayan.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120520/8db0fbc2/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Sun, 20 May 2012 11:13:57 +0900
> From: Shoji Kajita <kajita at nagoya-u.jp>
> Subject: [Building Sakai] Use of GradebookService as a web service
> To: "sakai-dev at collab.sakaiproject.org"
> <sakai-dev at collab.sakaiproject.org>
> Message-ID: <m2ipfr8uqi.wl%kajita.shoji.5z at kyoto-u.ac.jp>
> Content-Type: text/plain; charset=US-ASCII
>
> Dear Sakai Developers,
>
> I'm trying to develop a new web service for getting information from
> Gradebook, but I have been struggling from using GradebookService.
>
> For example, I can call
>
> gradebookService.isGradebookDefined
>
> successfully when I use
>
> gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
>
> as seen in the following simple code. But, it is failed when I use
>
> gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
>
> in line 31. I'm probably misunderstanding something.
>
> I really appreciate if someone gives me any pointer to address this.
>
> Best regards,
> Shoji Kajita
> Kyoto University
> ----
> 01: import org.apache.axis.AxisFault;
> 02: import org.apache.commons.logging.Log;
> 03: import org.apache.commons.logging.LogFactory;
> 04: import org.sakaiproject.service.gradebook.shared.GradebookService;
> 05: import org.sakaiproject.tool.api.Session;
> 06: import org.sakaiproject.tool.api.SessionManager;
> 07: import org.sakaiproject.component.cover.ComponentManager;
> 08:
> 09: public class CourseGradebook {
> 10:
> 11: private GradebookService gradebookService;
> 12: private SessionManager sessionManager;
> 13:
> 14: private static Log LOG = LogFactory.getLog(CourseGradebook.class);
> 15:
> 16: private Session establishSession(String sessionId) throws AxisFault
> 17: {
> 18: Session s = sessionManager.getSession(sessionId);
> 19:
> 20: if (s == null)
> 21: {
> 22: throw new AxisFault("Session \""+sessionId+"\" is
> not active");
> 23: }
> 24: s.setActive();
> 25: sessionManager.setCurrentSession(s);
> 26: return s;
> 27: }
> 28:
> 29: public CourseGradebook() {
> 30: // gradebookService = (GradebookService)
> ComponentManager.get(GradebookService.class.getName());
> 31: gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
> 32: // gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
> 33: sessionManager = (SessionManager)
> ComponentManager.get(SessionManager.class.getName());
> 34: }
> 35:
> 36: public String getCompletedDate(String sessionId, String siteId)
> throws AxisFault {
> 37:
> 38: Session session = establishSession(sessionId);
> 39:
> 40: String gbID = siteId;
> 41: if (!gradebookService.isGradebookDefined(gbID)) {
> 42: System.out.println("Debug: Not found.");
> 43: return "No gradebook found for this site.";
> 44: }
> 45: return "Gradebook found for this site.";
> 46: }
> 47:
> 48: }
> -----
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 19 May 2012 23:50:30 -0400
> From: Matthew Jones <matthew at longsight.com>
> Subject: Re: [Building Sakai] Use of GradebookService as a web service
> To: Shoji Kajita <kajita at nagoya-u.jp>
> Cc: "sakai-dev at collab.sakaiproject.org"
> <sakai-dev at collab.sakaiproject.org>
> Message-ID:
> <CACz7-HQvUkpotPv7-fz5U3bD_pdxEs0ekBjwGWE1yFJ6M8sk+g at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Shoji!
>
> This probably just looks like a confusing special case. You have to use
> component manager to get the beans from the spring components, then cast it
> to the interfaces (apis) that are in shared.
>
> For gradebook, they're probably just named differently, for whatever
> reason.
>
> Look at this webservice for some example gradebook code for getting
> gradebooks and grades. Hopefully you can use this for whatever you need.
>
> https://source.sakaiproject.org/svn/msub/longsight.com/webservices/webservices-1.0.x/axis/src/webapp/WSLongsight.jws
>
>
> And I think this one on confluence still works too?
>
> https://confluence.sakaiproject.org/display/~steve.swinsburg/Additional+web+services+for+Sakai#AdditionalwebservicesforSakai-SakaiGradebook
>
> -Matthew
>
> On Sat, May 19, 2012 at 10:13 PM, Shoji Kajita <kajita at nagoya-u.jp> wrote:
>
> > Dear Sakai Developers,
> >
> > I'm trying to develop a new web service for getting information from
> > Gradebook, but I have been struggling from using GradebookService.
> >
> > For example, I can call
> >
> > gradebookService.isGradebookDefined
> >
> > successfully when I use
> >
> > gradebookService = (GradebookService)
> >
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
> >
> > as seen in the following simple code. But, it is failed when I use
> >
> > gradebookService = (GradebookService)
> >
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
> >
> > in line 31. I'm probably misunderstanding something.
> >
> > I really appreciate if someone gives me any pointer to address this.
> >
> > Best regards,
> > Shoji Kajita
> > Kyoto University
> > ----
> > 01: import org.apache.axis.AxisFault;
> > 02: import org.apache.commons.logging.Log;
> > 03: import org.apache.commons.logging.LogFactory;
> > 04: import org.sakaiproject.service.gradebook.shared.GradebookService;
> > 05: import org.sakaiproject.tool.api.Session;
> > 06: import org.sakaiproject.tool.api.SessionManager;
> > 07: import org.sakaiproject.component.cover.ComponentManager;
> > 08:
> > 09: public class CourseGradebook {
> > 10:
> > 11: private GradebookService gradebookService;
> > 12: private SessionManager sessionManager;
> > 13:
> > 14: private static Log LOG =
> LogFactory.getLog(CourseGradebook.class);
> > 15:
> > 16: private Session establishSession(String sessionId) throws
> AxisFault
> > 17: {
> > 18: Session s = sessionManager.getSession(sessionId);
> > 19:
> > 20: if (s == null)
> > 21: {
> > 22: throw new AxisFault("Session \""+sessionId+"\" is
> > not active");
> > 23: }
> > 24: s.setActive();
> > 25: sessionManager.setCurrentSession(s);
> > 26: return s;
> > 27: }
> > 28:
> > 29: public CourseGradebook() {
> > 30: // gradebookService = (GradebookService)
> > ComponentManager.get(GradebookService.class.getName());
> > 31: gradebookService = (GradebookService)
> >
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
> > 32: // gradebookService = (GradebookService)
> >
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
> > 33: sessionManager = (SessionManager)
> > ComponentManager.get(SessionManager.class.getName());
> > 34: }
> > 35:
> > 36: public String getCompletedDate(String sessionId, String siteId)
> > throws AxisFault {
> > 37:
> > 38: Session session = establishSession(sessionId);
> > 39:
> > 40: String gbID = siteId;
> > 41: if (!gradebookService.isGradebookDefined(gbID)) {
> > 42: System.out.println("Debug: Not found.");
> > 43: return "No gradebook found for this site.";
> > 44: }
> > 45: return "Gradebook found for this site.";
> > 46: }
> > 47:
> > 48: }
> > -----
> > _______________________________________________
> > 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/20120519/a05c3d89/attachment-0001.html
>
> ------------------------------
>
> Message: 4
> Date: Sun, 20 May 2012 16:52:16 +0530
> From: gayan sukumal wiharagoda <gayanwiharagoda at gmail.com>
> Subject: Re: [Building Sakai] Build path problem.
> To: "sakai-dev at collab.sakaiproject.org sakai-dev"
> <sakai-dev at collab.sakaiproject.org>
> Message-ID:
> <CAB_7Qe7c_LYeh4N3j9Q2v36g=Li4-WGwF3t8bzP_VoP0R_x8+Q at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> This is the only erro now remian(I am using Sakai 2.9, maven 2,). Error is
> come when import the content package.
> The import org.sakaiproject.component cannot be resolved
>
> regards,
> Gayan.
>
> On Sun, May 20, 2012 at 5:30 AM, gayan sukumal wiharagoda <
> gayanwiharagoda at gmail.com> wrote:
>
> > Hi
> > I got the following error. What is the library that I want to import. Can
> > some one help me.
> >
> > Cannot find the class file for
> > org.sakaiproject.content.api.ContentHostingService. Fix the build path
> then
> > try building this project
> >
> > regards,
> > Gayan.
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120520/96ea5fe9/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Sun, 20 May 2012 12:59:33 -0400
> From: Charles Severance <csev at umich.edu>
> Subject: Re: [Building Sakai] Use of GradebookService as a web service
> To: Shoji Kajita <kajita at nagoya-u.jp>
> Cc: "sakai-dev at collab.sakaiproject.org"
> <sakai-dev at collab.sakaiproject.org>
> Message-ID: <12DE4E00-13A1-4D78-B567-BE8426208751 at umich.edu>
> Content-Type: text/plain; charset="us-ascii"
>
> Shoji,
>
> If you look here
>
>
> https://source.sakaiproject.org/svn//basiclti/trunk/basiclti-blis/src/java/org/sakaiproject/blti/ServiceServlet.java
>
> You will find some simple calls to the gradebook service to set grades.
>
> Here
>
>
> https://source.sakaiproject.org/svn//basiclti/trunk/basiclti-portlet/src/java/org/sakaiproject/portlets/IMSBLTIPortlet.java
>
> It makes gradebook items.
>
> I borrowed the code from the Assignments tool/
>
> /Chuck
>
>
> On May 19, 2012, at 10:13 PM, Shoji Kajita wrote:
>
> > Dear Sakai Developers,
> >
> > I'm trying to develop a new web service for getting information from
> > Gradebook, but I have been struggling from using GradebookService.
> >
> > For example, I can call
> >
> > gradebookService.isGradebookDefined
> >
> > successfully when I use
> >
> > gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
> >
> > as seen in the following simple code. But, it is failed when I use
> >
> > gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
> >
> > in line 31. I'm probably misunderstanding something.
> >
> > I really appreciate if someone gives me any pointer to address this.
> >
> > Best regards,
> > Shoji Kajita
> > Kyoto University
> > ----
> > 01: import org.apache.axis.AxisFault;
> > 02: import org.apache.commons.logging.Log;
> > 03: import org.apache.commons.logging.LogFactory;
> > 04: import org.sakaiproject.service.gradebook.shared.GradebookService;
> > 05: import org.sakaiproject.tool.api.Session;
> > 06: import org.sakaiproject.tool.api.SessionManager;
> > 07: import org.sakaiproject.component.cover.ComponentManager;
> > 08:
> > 09: public class CourseGradebook {
> > 10:
> > 11: private GradebookService gradebookService;
> > 12: private SessionManager sessionManager;
> > 13:
> > 14: private static Log LOG = LogFactory.getLog(CourseGradebook.class);
> > 15:
> > 16: private Session establishSession(String sessionId) throws AxisFault
> > 17: {
> > 18: Session s = sessionManager.getSession(sessionId);
> > 19:
> > 20: if (s == null)
> > 21: {
> > 22: throw new AxisFault("Session \""+sessionId+"\" is
> not active");
> > 23: }
> > 24: s.setActive();
> > 25: sessionManager.setCurrentSession(s);
> > 26: return s;
> > 27: }
> > 28:
> > 29: public CourseGradebook() {
> > 30: // gradebookService = (GradebookService)
> ComponentManager.get(GradebookService.class.getName());
> > 31: gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.shared.GradebookService");
> > 32: // gradebookService = (GradebookService)
> ComponentManager.get("org.sakaiproject.service.gradebook.GradebookService");
> > 33: sessionManager = (SessionManager)
> ComponentManager.get(SessionManager.class.getName());
> > 34: }
> > 35:
> > 36: public String getCompletedDate(String sessionId, String siteId)
> throws AxisFault {
> > 37:
> > 38: Session session = establishSession(sessionId);
> > 39:
> > 40: String gbID = siteId;
> > 41: if (!gradebookService.isGradebookDefined(gbID)) {
> > 42: System.out.println("Debug: Not found.");
> > 43: return "No gradebook found for this site.";
> > 44: }
> > 45: return "Gradebook found for this site.";
> > 46: }
> > 47:
> > 48: }
> > -----
> > _______________________________________________
> > 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/20120520/e166d1c1/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>
> End of sakai-dev Digest, Vol 39, Issue 20
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20120520/526edbb2/attachment.html
More information about the sakai-dev
mailing list