| org.mockejb.test.SampleService
SampleService | public interface SampleService extends EJBObject(Code) | | Business interface of the sample bean.
You can also use local interface with mockejb.
|
getPrincipal | Principal getPrincipal()(Code) | | Returns the principal provided by the "getCallerPrincipal" method of
the EJBContext for this bean.
current principal |
hasRole | boolean hasRole(String role)(Code) | | Returns the result of the EJBContext.isCallerInRole check.
Parameters: name - role name true if the current user has the given role |
|
|