[sakai2-tcc] URL Shortening service for Sakai

John Bush john.bush at rsmart.com
Wed Aug 25 11:52:41 PDT 2010


I'd support this stuff getting into 2.8.  It really stinks having
generally useful stuff like this live in contrib, it just makes
dependencies a pain, and creates situations where people re-invent the
wheel to solve similar problems.  This is pretty straightforward, and
low risk.  My question is does this belong in a new module, or kernel
?

On Wed, Aug 25, 2010 at 5:43 AM, Steve Swinsburg
<steve.swinsburg at gmail.com> wrote:
> Hi all,
> Cast your minds back to 2009 and you may remember the discussions around
> TinyUrlService, a URL shortening service I created for Sakai. If you don't
> remember, read this short blog post:
> http://steve-on-sakai.blogspot.com/2009/12/tinyurlservice-10-released.html
> It turned out that Sakai wasn't ready for such a beast at the time so it was
> shelved. An interesting idea arose out of that discussion though, in that it
> could be a pluggable interface that institutions could configure themselves.
> So, with a few hours up my sleeve, this is exactly what I've done.
> I call it ShortenedUrlService (so as to avoid possible trademark
> infringements). In essence, it is a three method API (two forms of
> shortenUrl and one to resolve it again, if needed) which you can provide
> multiple implementations of.
> I have turned the original TinyUrlService into RandomisedUrlService which
> still has the same logic in it, creating random strings for the URLs. There
> is the default NoOpUrlService and also a BitlyUrlService which calls out to
> the bit.ly API to shorten the given URL.
> I also plan to implement several other URL shortening implementations like
> tr.im, is.gd and tinyurl.com itself. The potential is there for any form of
> URL shortener.
> Configuration is by way of a sakai.property to tell it what implementation
> bean to use:
> shortenedurl.implementation=org.sakaiproject.shortenedurl.api.RandomisedUrlService
> For some implementations you need other properties (e.g API keys). This is
> documented.
> The code is here: https://source.sakaiproject.org/contrib/shortenedurl/
> I'd like to get this into 2.8. It still needs a little work but mainly in
> adding in more implementations.
> By default, it is a no-op, ie it does nothing and simply returns the
> original URL, and no tool or service uses it. It is up to the institution
> then to configure it in sakai.properties, and of course for tools to adopt.
> What do you think?
> cheers,
> Steve
> _______________________________________________
> sakai2-tcc mailing list
> sakai2-tcc at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai2-tcc
>
>



-- 
John Bush
602-490-0470


More information about the sakai2-tcc mailing list