|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EZBPermissionManager
Class that is linked to an EasyBeans factory and manages the check of the security.
Method Summary | |
---|---|
boolean |
checkSecurity(EasyBeansInvocationContext invocationContext,
boolean runAsBean)
Checks the security for the given invocation context. |
void |
commit()
Commit the Policy Configuration. |
boolean |
isCallerInRole(java.lang.String ejbName,
java.lang.String roleName,
boolean inRunAs)
Test if the caller has a given role. |
void |
translateMetadata()
3.1.5 Translating EJB Deployment Descriptors A reference to a PolicyConfiguration object must be obtained by calling the getPolicyConfiguration method on the PolicyConfigurationFactory implementation class of the provider configured into the container. |
Method Detail |
---|
boolean checkSecurity(EasyBeansInvocationContext invocationContext, boolean runAsBean)
invocationContext
- the context to check.runAsBean
- if true, the bean is a run-as bean.
boolean isCallerInRole(java.lang.String ejbName, java.lang.String roleName, boolean inRunAs)
ejbName
- The name of the EJB on wich look roleroleName
- The name of the security role. The role must be one of
the security-role-ref that is defined in the deployment
descriptor.inRunAs
- bean calling this method is running in run-as mode or not ?
void translateMetadata() throws PermissionManagerException
PermissionManagerException
- if permissions can't be setvoid commit() throws PermissionManagerException
PermissionManagerException
- if commit can't be done
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |