Class EJBViewMethodSecurityAttributesService
java.lang.Object
org.jboss.as.ejb3.security.service.EJBViewMethodSecurityAttributesService
- All Implemented Interfaces:
org.jboss.msc.Service,org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>,org.jboss.msc.value.Value<EJBViewMethodSecurityAttributesService>
public class EJBViewMethodSecurityAttributesService
extends Object
implements org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>
A
Service which can be used by other components like WS to get the security metadata associated with methods on a Jakarta Enterprise Beans view.- Author:
- Jaikiran Pai
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jboss.msc.service.Service
NULL -
Constructor Summary
ConstructorsConstructorDescriptionEJBViewMethodSecurityAttributesService(Map<Method, EJBMethodSecurityAttribute> securityAttributes) -
Method Summary
Modifier and TypeMethodDescriptiongetSecurityAttributes(Method viewMethod) Returns theEJBMethodSecurityAttributeassociated with the passed view method.static org.jboss.msc.service.ServiceNamegetServiceName(String appName, String moduleName, String beanName, String viewClassName) Returns aServiceNamefor theEJBViewMethodSecurityAttributesServicegetValue()voidstart(org.jboss.msc.service.StartContext startContext) voidstop(org.jboss.msc.service.StopContext stopContext)
-
Constructor Details
-
EJBViewMethodSecurityAttributesService
public EJBViewMethodSecurityAttributesService(Map<Method, EJBMethodSecurityAttribute> securityAttributes)
-
-
Method Details
-
start
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException - Specified by:
startin interfaceorg.jboss.msc.Service- Throws:
org.jboss.msc.service.StartException
-
stop
public void stop(org.jboss.msc.service.StopContext stopContext) - Specified by:
stopin interfaceorg.jboss.msc.Service
-
getValue
public EJBViewMethodSecurityAttributesService getValue() throws IllegalStateException, IllegalArgumentException- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<EJBViewMethodSecurityAttributesService>- Throws:
IllegalStateExceptionIllegalArgumentException
-
getSecurityAttributes
Returns theEJBMethodSecurityAttributeassociated with the passed view method. This method returns null if no security attribute is applicable for the passed method- Parameters:
viewMethod-- Returns:
-
getServiceName
public static org.jboss.msc.service.ServiceName getServiceName(String appName, String moduleName, String beanName, String viewClassName) Returns aServiceNamefor theEJBViewMethodSecurityAttributesService- Parameters:
appName- The application name to which the bean belongs. Can be null if the bean is not deployed in a .earmoduleName- The module name to which the bean belongsbeanName- The bean nameviewClassName- The fully qualified class name of the EJB view- Returns:
-