Class HelloBean
java.lang.Object
org.jboss.as.test.integration.security.common.ejb3.HelloBean
- All Implemented Interfaces:
Hello
@DeclareRoles("TestRole")
@RolesAllowed("TestRole")
public class HelloBean
extends Object
implements Hello
A simple implementation of
Hello interface. It's annotated as a Stateless bean with Hello as a
remote interface. Access to the methods is protected and only "TestRole" role has access.- Author:
- Josef Cacek
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsayHello()Returns greeting with name retrieved fromEJBContext.getCallerPrincipal().Returns "Hello world!".
-
Field Details
-
ROLE_ALLOWED
- See Also:
-
HELLO_WORLD
- See Also:
-
-
Constructor Details
-
HelloBean
public HelloBean()
-
-
Method Details
-
sayHelloWorld
Returns "Hello world!".- Specified by:
sayHelloWorldin interfaceHello- Returns:
- See Also:
-
sayHello
Returns greeting with name retrieved fromEJBContext.getCallerPrincipal().
-