org.jboss.security.authorization.resources
Class EJBResource

java.lang.Object
  extended by org.jboss.security.authorization.resources.JavaEEResource
      extended by org.jboss.security.authorization.resources.EJBResource
All Implemented Interfaces:
org.jboss.security.authorization.Resource

public class EJBResource
extends JavaEEResource

Represents an EJB Resource

Since:
Jul 6, 2006
Version:
$Revision: 61962 $
Author:
Anil Saldhana

Field Summary
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
EJBResource(Map<String,Object> map)
          Create a new EJBResource.
 
Method Summary
 Method getEjbMethod()
          Get the EJB Method
 String getEjbMethodInterface()
          Get the EJB Method Interface as a String
 org.jboss.security.identity.RoleGroup getEjbMethodRoles()
          Get the Roles assigned to the EJB method
 String getEjbName()
          Get the EJB Name
 String getEjbVersion()
          Get the version of EJB
 org.jboss.security.authorization.ResourceType getLayer()
           
 boolean isEnforceEJBRestrictions()
          Specify the EJB1.1 role ref restriction that the rolename has to be present in the DD
 void setEjbMethod(Method ejbMethod)
          Set the EJB Method
 void setEjbMethodInterface(String ejbMethodInterface)
          Set the EJB Method Interface as a String
 void setEjbMethodRoles(org.jboss.security.identity.RoleGroup ejbMethodRoles)
          Set the roles assigned to the EJB Method
 void setEjbName(String ejbName)
          Set the EJB Name
 void setEjbVersion(String version)
          Set the version of EJB
 void setEnforceEJBRestrictions(boolean enforceEJBRestrictions)
           
 String toString()
           
 
Methods inherited from class org.jboss.security.authorization.resources.JavaEEResource
getCallerRunAsIdentity, getCallerSubject, getCodeSource, getMap, getPolicyContextID, getPrincipal, getSecurityRoleReferences, setCallerRunAsIdentity, setCallerSubject, setCodeSource, setPolicyContextID, setPrincipal, setSecurityRoleReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
Constructor Detail

EJBResource

public EJBResource(Map<String,Object> map)
Create a new EJBResource.

Parameters:
map -
Method Detail

getLayer

public org.jboss.security.authorization.ResourceType getLayer()
Specified by:
getLayer in interface org.jboss.security.authorization.Resource
Specified by:
getLayer in class JavaEEResource
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 org.jboss.security.identity.RoleGroup getEjbMethodRoles()
Get the Roles assigned to the EJB method

Returns:

setEjbMethodRoles

public void setEjbMethodRoles(org.jboss.security.identity.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 -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 JBoss Inc.. All Rights Reserved.