[Building Sakai] Announcement Entitybroker and ReferenceParseable

Aaron Zeckoski azeckoski at unicon.net
Thu Apr 7 09:55:41 PDT 2011


I recommend you use the custom actions instead for this. It
essentially allows you to parse the URL any way you like and is the
way to handle non-compliant URLs. There are examples in the included
set of providers.

-AZ


On Thu, Apr 7, 2011 at 12:47 PM, Matthew Buckett
<matthew.buckett at oucs.ox.ac.uk> wrote:
> I'm just looking at adding support for getting an announcement through
> the entity broker /direct URLs and to get an announcement message you
> need to know the context (normally site ID) now I was thinking I'd
> just put the context in the URL so I'd have URLs like:
>
> /direct/announcement/{siteId}/{announcementId}
>
> but the standard parsing of references doesn't seem to support this
> model. After reading JavaDocs I find
>
> org.sakaiproject.entitybroker.entityprovider.capabilities.ReferenceParseable
>
> which says if I implement that I can parse my own references. However
> implementing that interface and attempting
> to request a announcement never shows the method:
>
> org.sakaiproject.entitybroker.entityprovider.capabilities.ReferenceParseable.getParsedExemplar()
>
> as getting called. In the JavaDoc for this method it also mentions
> ParseSpecParseable but I can't find that in the source code anywhere.
>
> Has anyone got this working?
>
> --
>   Matthew Buckett
>   VLE Developer, LTG, Oxford University Computing Services
> _______________________________________________
> 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"
>



-- 
Aaron Zeckoski - Software Architect - http://tinyurl.com/azprofile


More information about the sakai-dev mailing list