public class EJBViewMethodSecurityAttributesService extends Object implements org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>
Service
which can be used by other components like WS to get the security metadata associated with methods on an EJB view.for more details.
Modifier and Type | Class and Description |
---|---|
static class |
EJBViewMethodSecurityAttributesService.Builder |
Constructor and Description |
---|
EJBViewMethodSecurityAttributesService(String viewClassName,
Map<Method,EJBMethodSecurityAttribute> securityAttributes) |
Modifier and Type | Method and Description |
---|---|
EJBMethodSecurityAttribute |
getSecurityAttributes(Method viewMethod)
Returns the
EJBMethodSecurityAttribute associated with the passed view method. |
static org.jboss.msc.service.ServiceName |
getServiceName(String appName,
String moduleName,
String beanName,
String viewClassName)
Returns a
ServiceName for the EJBViewMethodSecurityAttributesService |
EJBViewMethodSecurityAttributesService |
getValue() |
void |
start(org.jboss.msc.service.StartContext startContext) |
void |
stop(org.jboss.msc.service.StopContext stopContext) |
public EJBViewMethodSecurityAttributesService(String viewClassName, Map<Method,EJBMethodSecurityAttribute> securityAttributes)
public void start(org.jboss.msc.service.StartContext startContext) throws org.jboss.msc.service.StartException
start
in interface org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>
org.jboss.msc.service.StartException
public void stop(org.jboss.msc.service.StopContext stopContext)
stop
in interface org.jboss.msc.service.Service<EJBViewMethodSecurityAttributesService>
public EJBViewMethodSecurityAttributesService getValue() throws IllegalStateException, IllegalArgumentException
getValue
in interface org.jboss.msc.value.Value<EJBViewMethodSecurityAttributesService>
IllegalStateException
IllegalArgumentException
public EJBMethodSecurityAttribute getSecurityAttributes(Method viewMethod)
EJBMethodSecurityAttribute
associated with the passed view method. This method returns null if no security attribute is applicable for the passed methodviewMethod
- public static org.jboss.msc.service.ServiceName getServiceName(String appName, String moduleName, String beanName, String viewClassName)
ServiceName
for the EJBViewMethodSecurityAttributesService
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 viewCopyright © 2014 JBoss by Red Hat. All rights reserved.