THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
@Stateless @DeclareRoles({"committer"}) public class OpenSourceProjectBean implements Project { @RolesAllowed({"committer"}) public String svnCommit(String s) { return s; } public String svnCheckout(String s) { return s; } } - |
- Allow
...
- only
...
- logged
...
- in
...
- users
...
- in
...
- the
...
- "committer"
...
- role
...
- to
...
- invoke
...
- 'svnCommit'.
...
- Allow
...
- anyone
...
- logged
...
- in
...
- or
...
- not
...
- to
...
- invoke
...
- 'svnCheckout'.
...
DeclaredRoles
You need to update the @DeclaredRoles when referencing more roles in your annotations.
...