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>
AServicewhich can be used by other components like WS to get the security metadata associated with methods on an Jakarta Enterprise Beans view.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEJBViewMethodSecurityAttributesService.Builder
-
Constructor Summary
Constructors Constructor Description EJBViewMethodSecurityAttributesService(Map<Method,EJBMethodSecurityAttribute> securityAttributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EJBMethodSecurityAttributegetSecurityAttributes(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 theEJBViewMethodSecurityAttributesServiceEJBViewMethodSecurityAttributesServicegetValue()voidstart(org.jboss.msc.service.StartContext startContext)voidstop(org.jboss.msc.service.StopContext stopContext)
-
-
-
Constructor Detail
-
EJBViewMethodSecurityAttributesService
public EJBViewMethodSecurityAttributesService(Map<Method,EJBMethodSecurityAttribute> securityAttributes)
-
-
Method Detail
-
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
public EJBMethodSecurityAttribute getSecurityAttributes(Method viewMethod)
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:
-
-