You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 23 Members of 4546 |
| Forum: Seam Users |
26. Mar 2008, 17:05 CET | Link |
Hi all.
I'm writing a mini blog plateforme. I've got display page (blog) and edit page (modify a post).
How can i manage access control on edit page. Only the post owner can access this page.
Thanks.
Maybe by extending Identity class and overriding hasPermission() method ?
look at the blog example in your seam installation
I would look at the seamspace example, it has plenty of examples of controlling who has access to perform various actions.
Thanks all.
I manage to do what i need by extending the seam Identity class using
@Name("org.jboss.seam.security.identity")Then i could override the hasRole and hasPermission moethod to perform my authorisation stuff by injecting entityManager