You can secure methods on a per-role basis in security.xml. This file is merged into your WEB-INF directory from AppFuse's common-web project. However, you can override it by copying it into your own project's src/main/webapp/WEB-INF directory. Here is the current code you'll need to modify to security more beans:
The easiest way to copy the security.xml file into your project is:
- Run mvn package.
- Copy target/yourproject-version/WEB-INF/security.xml to src/main/webapp/WEB-INF.