Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...