Example usage for org.springframework.security.access.method MethodSecurityMetadataSource getAllConfigAttributes

List of usage examples for org.springframework.security.access.method MethodSecurityMetadataSource getAllConfigAttributes

Introduction

In this page you can find the example usage for org.springframework.security.access.method MethodSecurityMetadataSource getAllConfigAttributes.

Prototype

Collection<ConfigAttribute> getAllConfigAttributes();

Source Link

Document

If available, returns all of the ConfigAttribute s defined by the implementing class.

Usage

From source file:org.codehaus.groovy.grails.plugins.springsecurity.acl.ProxyAwareDelegatingMethodSecurityMetadataSource.java

/**
 * {@inheritDoc}/* w  w w.  j a v a  2 s . c o m*/
 * @see org.springframework.security.access.SecurityMetadataSource#getAllConfigAttributes()
 */
public Collection<ConfigAttribute> getAllConfigAttributes() {
    Set<ConfigAttribute> set = new HashSet<ConfigAttribute>();
    for (MethodSecurityMetadataSource s : _methodSecurityMetadataSources) {
        Collection<ConfigAttribute> attrs = s.getAllConfigAttributes();
        if (attrs != null) {
            set.addAll(attrs);
        }
    }
    return set;
}

From source file:grails.plugin.springsecurity.acl.access.method.ProxyAwareDelegatingMethodSecurityMetadataSource.java

/**
 * {@inheritDoc}//from  w  ww.  j a  va  2s .  co  m
 * @see org.springframework.security.access.SecurityMetadataSource#getAllConfigAttributes()
 */
public Collection<ConfigAttribute> getAllConfigAttributes() {
    Set<ConfigAttribute> set = new HashSet<ConfigAttribute>();
    for (MethodSecurityMetadataSource s : methodSecurityMetadataSources) {
        Collection<ConfigAttribute> attrs = s.getAllConfigAttributes();
        if (attrs != null) {
            set.addAll(attrs);
        }
    }
    return set;
}