Example usage for org.springframework.security.access.vote AffirmativeBased afterPropertiesSet

List of usage examples for org.springframework.security.access.vote AffirmativeBased afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.security.access.vote AffirmativeBased afterPropertiesSet.

Prototype

public void afterPropertiesSet() throws Exception 

Source Link

Usage

From source file:nu.localhost.tapestry5.springsecurity.services.SecurityModule.java

@Marker(SpringSecurityServices.class)
public final AccessDecisionManager buildAccessDecisionManager(final List<AccessDecisionVoter> voters)
        throws Exception {
    final AffirmativeBased manager = new AffirmativeBased(voters);
    manager.afterPropertiesSet();
    return manager;
}

From source file:ch.astina.hesperid.web.services.SecurityModule.java

/**
 * Decides uppon access to an object. It passes the object to a list of <code>RoleVoter</code>s.
 * Based on the AccessDecisionManager's implementation, access is granted or denied.
 *//*from  w  ww.j a v  a 2s . c om*/
@Marker(SpringSecurityServices.class)
public final AccessDecisionManager buildAccessDecisionManager(final List<AccessDecisionVoter> voters)
        throws Exception {
    AffirmativeBased manager = new AffirmativeBased();
    manager.setDecisionVoters(voters);
    manager.afterPropertiesSet();
    return manager;
}