Help

Controls

PermLinkWikiLink

Built with Seam

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.

Forum: Seam Users Forum ListTopic List
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.

4 Replies:
26. Mar 2008, 17:12 CET | Link

Maybe by extending Identity class and overriding hasPermission() method ?

26. Mar 2008, 17:25 CET | Link

look at the blog example in your seam installation

27. Mar 2008, 05:16 CET | Link

I would look at the seamspace example, it has plenty of examples of controlling who has access to perform various actions.

27. Mar 2008, 08:14 CET | Link

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