Created
February 7, 2014 09:24
-
-
Save jeanouii/8859635 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @View(basePath = "/", extension = "xhtml", navigation = View.NavigationMode.REDIRECT) | |
| public interface Navigation extends ViewConfig { | |
| @View | |
| class Index implements Navigation {} | |
| @View | |
| class Login implements Navigation {} | |
| @View(basePath = "/post/") | |
| interface PostsNavigation extends Navigation {} | |
| @View | |
| class Post implements PostsNavigation {} | |
| @Secured(LoggedInUserVoter.class) | |
| interface SecuredPostsNavigation extends PostsNavigation {} | |
| @View(name = "create-post") | |
| class CreatePost implements SecuredPostsNavigation {} | |
| @View(name = "edit-post") | |
| class EditPost implements SecuredPostsNavigation {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment