Created
May 23, 2013 09:43
-
-
Save edewit/5634975 to your computer and use it in GitHub Desktop.
Annotate service methods to indicate that the user needs access rights
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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