ejb3/src/main/java/org/jboss/as/ejb3/component/EJBComponentDescription.java
public boolean hasBeanLevelSecurityMetadata() {
     // if an explicit security-domain is present, then we consider it the bean to be processed by security interceptors
        if (securityDomain != null) {
            return true;
        }
        // if a run-as is present, then we consider it the bean to be processed by security interceptors
        if (runAsRole != null) {
            return true;
        }
        // if a run-as-principal is present, then we consider it the bean to be processed by security interceptors
        if (runAsPrincipal != null) {
            return true;
        }
        // if security roles are configured then we consider the bean to be processed by security interceptors
        if (securityRoles != null && !securityRoles.isEmpty()) {
            return true;
        }
        // if security role links are configured then we consider the bean to be processed by security interceptors
        if (securityRoleLinks != null && !securityRoleLinks.isEmpty()) {
            return true;
        }
        // if declared roles are configured then we consider the bean to be processed by security interceptors
        if (declaredRoles != null && !declaredRoles.isEmpty()) {
            return true;
        }
        // no security metadata at bean level
        return false;
    }
public boolean hasBeanLevelSecurityMetadata() {
     // if an explicit security-domain is present, then we consider it the bean to be processed by security interceptors
        if (securityDomain != null) {
            return true;
        }
        // if a run-as is present, then we consider it the bean to be processed by security interceptors
        if (runAsRole != null) {
            return true;
        }
        // if a run-as-principal is present, then we consider it the bean to be processed by security interceptors
        if (runAsPrincipal != null) {
            return true;
        }
        // if security roles are configured then we consider the bean to be processed by security interceptors
        if (securityRoles != null && !securityRoles.isEmpty()) {
            return true;
        }
        // if security role links are configured then we consider the bean to be processed by security interceptors
        if (securityRoleLinks != null && !securityRoleLinks.isEmpty()) {
            return true;
        }
        // if declared roles are configured then we consider the bean to be processed by security interceptors
        if (declaredRoles != null && !declaredRoles.isEmpty()) {
            return true;
        }
        // no security metadata at bean level
        return false;
    }
public boolean hasBeanLevelSecurityMetadata ( ) { // if an explicit security-domain is present, then we consider it the bean to be processed by security interceptors if ( securityDomain != null ) { return true ; } // if a run-as is present, then we consider it the bean to be processed by security interceptors if ( runAsRole != null ) { return true ; } // if a run-as-principal is present, then we consider it the bean to be processed by security interceptors if ( runAsPrincipal != null ) { return true ; } // if security roles are configured then we consider the bean to be processed by security interceptors if ( securityRoles != null && ! securityRoles . isEmpty ( ) ) { return true ; } // if security role links are configured then we consider the bean to be processed by security interceptors if ( securityRoleLinks != null && ! securityRoleLinks . isEmpty ( ) ) { return true ; } // if declared roles are configured then we consider the bean to be processed by security interceptors if ( declaredRoles != null && ! declaredRoles . isEmpty ( ) ) { return true ; } // no security metadata at bean level return false ; }
Returns true if this component description has any security metadata configured at the EJB level.
Else returns false. Note that this method does *not* consider method level security metadata.

@return
Returns true if this component description has any security metadata configured at the EJB level . Else returns false . Note that this method does * not * consider method level security metadata .