users@jersey.java.net

Re: [Jersey] how to know the logged user in a method?

From: Moises Lejter <moilejter_at_gmail.com>
Date: Thu, 14 Jan 2010 12:28:45 -0500

Don't you just want to inject a SecurityContext, then get the Principal out
of that?

Moises

2010/1/14 Felipe Gaścho <fgaucho_at_gmail.com>

> I have a method cto create an Atom entry:
>
> @POST
> @Consumes( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON
> })
> @Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON
> })
> @Path("category")
> public EntryType update(EntryType entity) {
> return facade.create(entity);
> }
>
> how do I get the logged user inside this method ? (for linking the
> entry to the author...)
>
>
> --
> ------------------------------------------
> Felipe Gaścho
> 10+ Java Programmer
> CEJUG Senior Advisor
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>