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 String
EJB_VERSION_1_1
static String
EJB_VERSION_2_0
static String
EJB_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 Method
getEjbMethod()
Get the EJB MethodString
getEjbMethodInterface()
Get the EJB Method Interface as a StringRoleGroup
getEjbMethodRoles()
Get the Roles assigned to the EJB methodString
getEjbName()
Get the EJB NameString
getEjbVersion()
Get the version of EJBResourceType
getLayer()
boolean
isEnforceEJBRestrictions()
Specify the EJB1.1 role ref restriction that the rolename has to be present in the DDvoid
setEjbMethod(Method ejbMethod)
Set the EJB Methodvoid
setEjbMethodInterface(String ejbMethodInterface)
Set the EJB Method Interface as a Stringvoid
setEjbMethodRoles(RoleGroup ejbMethodRoles)
Set the roles assigned to the EJB Methodvoid
setEjbName(String ejbName)
Set the EJB Namevoid
setEjbVersion(String version)
Set the version of EJBvoid
setEnforceEJBRestrictions(boolean enforceEJBRestrictions)
String
toString()
-
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:
getLayer
in interfaceResource
- Specified by:
getLayer
in 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
-
-
-