[jboss-jira] [JBoss JIRA] (WFLY-3837) Add tests for @RolesAllowed use if bean class has superclasses
Chao Wang (JIRA)
issues at jboss.org
Wed Sep 10 05:24:19 EDT 2014
Chao Wang created WFLY-3837:
-------------------------------
Summary: Add tests for @RolesAllowed use if bean class has superclasses
Key: WFLY-3837
URL: https://issues.jboss.org/browse/WFLY-3837
Project: WildFly
Issue Type: Task
Components: EJB, Test Suite
Affects Versions: 8.1.0.Final
Reporter: Chao Wang
Assignee: Chao Wang
The scenario in https://issues.jboss.org/browse/WFLY-2988 (https://bugzilla.redhat.com/show_bug.cgi?id=1072638) is rejected by engineer as it's considered current behaviour is correct.
Adding tests to cover @RolesAllowed use if the bean class has superclasses.
Example in EJB 3.1 spec 17.3.2.1:
{noformat}
Example:
@RolesAllowed(“admin”)
public class SomeClass {
public void aMethod () {...}
public void bMethod () {...}
...
}
@Stateless public class MyBean extends SomeClass implements A {
@RolesAllowed(“HR”)
public void aMethod () {...}
}
public void cMethod () {...}
...
Assuming aMethod, bMethod, cMethod are methods of business interface A, the method permis-
sions values of methods aMethod and bMethod are RolesAllowed(“HR”) and RolesAl-
lowed(“admin”) respectively
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list