Skip to content

Instantly share code, notes, and snippets.

@edewit
Created May 23, 2013 09:43
Show Gist options
  • Save edewit/5634975 to your computer and use it in GitHub Desktop.
Save edewit/5634975 to your computer and use it in GitHub Desktop.
Annotate service methods to indicate that the user needs access rights
@Remote
public interface MessageService {
@RequireAuthentication
String hello();
@RequireRoles("admin")
String ping();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment