org.onebusaway.users.services
Interface StandardAuthoritiesService


public interface StandardAuthoritiesService


Field Summary
static String ADMINISTRATOR
           
static String ANONYMOUS
           
static List<String> STANDARD_AUTHORITIES
          This should be the only place where the standard authorities for the app are defined
static String USER
           
 
Method Summary
 UserRole getAdministratorRole()
           
 UserRole getAnonymousRole()
           
 org.springframework.security.GrantedAuthority getNameBasedAuthority(String name)
          Get the GrantedAuthority used by Spring Security for the role by name
 UserRole getUserRole()
           
 UserRole getUserRoleForName(String name)
           
 

Field Detail

ANONYMOUS

static final String ANONYMOUS
See Also:
Constant Field Values

USER

static final String USER
See Also:
Constant Field Values

ADMINISTRATOR

static final String ADMINISTRATOR
See Also:
Constant Field Values

STANDARD_AUTHORITIES

static final List<String> STANDARD_AUTHORITIES
This should be the only place where the standard authorities for the app are defined

Method Detail

getNameBasedAuthority

org.springframework.security.GrantedAuthority getNameBasedAuthority(String name)
Get the GrantedAuthority used by Spring Security for the role by name

Parameters:
name - Role name like USER
Returns:
Spring Security authority

getUserRoleForName

UserRole getUserRoleForName(String name)

getAnonymousRole

UserRole getAnonymousRole()

getUserRole

UserRole getUserRole()

getAdministratorRole

UserRole getAdministratorRole()


Copyright © 2011 OneBusAway. All Rights Reserved.