Class EJBResource
- java.lang.Object
-
- org.jboss.security.authorization.resources.JavaEEResource
-
- org.jboss.security.authorization.resources.EJBResource
-
- All Implemented Interfaces:
Resource
public class EJBResource extends JavaEEResource
Represents an EJB Resource- Since:
- Jul 6, 2006
- Version:
- $Revision: 61962 $
- Author:
- Anil Saldhana
-
-
Field Summary
Fields Modifier and Type Field Description static StringEJB_VERSION_1_1static StringEJB_VERSION_2_0static StringEJB_VERSION_3_0-
Fields inherited from class org.jboss.security.authorization.resources.JavaEEResource
callerRunAsIdentity, callerSubject, codeSource, map, policyContextID, principal, securityRoleReferences
-
-
Constructor Summary
Constructors Constructor Description EJBResource(Map<String,Object> map)Create a new EJBResource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodgetEjbMethod()Get the EJB MethodStringgetEjbMethodInterface()Get the EJB Method Interface as a StringRoleGroupgetEjbMethodRoles()Get the Roles assigned to the EJB methodStringgetEjbName()Get the EJB NameStringgetEjbVersion()Get the version of EJBResourceTypegetLayer()booleanisEnforceEJBRestrictions()Specify the EJB1.1 role ref restriction that the rolename has to be present in the DDvoidsetEjbMethod(Method ejbMethod)Set the EJB MethodvoidsetEjbMethodInterface(String ejbMethodInterface)Set the EJB Method Interface as a StringvoidsetEjbMethodRoles(RoleGroup ejbMethodRoles)Set the roles assigned to the EJB MethodvoidsetEjbName(String ejbName)Set the EJB NamevoidsetEjbVersion(String version)Set the version of EJBvoidsetEnforceEJBRestrictions(boolean enforceEJBRestrictions)StringtoString()-
Methods inherited from class org.jboss.security.authorization.resources.JavaEEResource
add, getCallerRunAsIdentity, getCallerSubject, getCodeSource, getMap, getPolicyContextID, getPrincipal, getSecurityRoleReferences, setCallerRunAsIdentity, setCallerSubject, setCodeSource, setPolicyContextID, setPrincipal, setSecurityRoleReferences
-
-
-
-
Field Detail
-
EJB_VERSION_1_1
public static final String EJB_VERSION_1_1
- See Also:
- Constant Field Values
-
EJB_VERSION_2_0
public static final String EJB_VERSION_2_0
- See Also:
- Constant Field Values
-
EJB_VERSION_3_0
public static final String EJB_VERSION_3_0
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLayer
public ResourceType getLayer()
- Specified by:
getLayerin interfaceResource- Specified by:
getLayerin classJavaEEResource- See Also:
Resource.getLayer()
-
getEjbName
public String getEjbName()
Get the EJB Name- Returns:
-
setEjbName
public void setEjbName(String ejbName)
Set the EJB Name- Parameters:
ejbName-
-
getEjbMethod
public Method getEjbMethod()
Get the EJB Method- Returns:
-
setEjbMethod
public void setEjbMethod(Method ejbMethod)
Set the EJB Method- Parameters:
ejbMethod-
-
getEjbMethodInterface
public String getEjbMethodInterface()
Get the EJB Method Interface as a String- Returns:
-
setEjbMethodInterface
public void setEjbMethodInterface(String ejbMethodInterface)
Set the EJB Method Interface as a String- Parameters:
ejbMethodInterface-
-
getEjbMethodRoles
public RoleGroup getEjbMethodRoles()
Get the Roles assigned to the EJB method- Returns:
-
setEjbMethodRoles
public void setEjbMethodRoles(RoleGroup ejbMethodRoles)
Set the roles assigned to the EJB Method- Parameters:
ejbMethodRoles-
-
isEnforceEJBRestrictions
public boolean isEnforceEJBRestrictions()
Specify the EJB1.1 role ref restriction that the rolename has to be present in the DD- Returns:
- true if enforcement is needed
-
setEnforceEJBRestrictions
public void setEnforceEJBRestrictions(boolean enforceEJBRestrictions)
- Parameters:
enforceEJBRestrictions-- See Also:
isEnforceEJBRestrictions()
-
getEjbVersion
public String getEjbVersion()
Get the version of EJB- Returns:
-
setEjbVersion
public void setEjbVersion(String version)
Set the version of EJB- Parameters:
version-
-
-