Package org.onebusaway.users.services
Interface StandardAuthoritiesService
-
public interface StandardAuthoritiesService
-
-
Field Summary
Fields Modifier and Type Field Description static StringADMINISTRATORstatic StringANONYMOUSstatic List<String>MANAGED_AUTHORITIESstatic StringOPERATORstatic StringREPORTINGstatic List<String>STANDARD_AUTHORITIESThis should be the only place where the standard authorities for the app are definedstatic StringSUPPORTstatic StringUSER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserRolegetAdministratorRole()UserRolegetAnonymousRole()org.springframework.security.core.GrantedAuthoritygetNameBasedAuthority(String name)Get the GrantedAuthority used by Spring Security for the role by nameUserRolegetReportingRole()UserRolegetUserRole()UserRolegetUserRoleForName(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
-
OPERATOR
static final String OPERATOR
- See Also:
- Constant Field Values
-
SUPPORT
static final String SUPPORT
- See Also:
- Constant Field Values
-
REPORTING
static final String REPORTING
- 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.core.GrantedAuthority getNameBasedAuthority(String name)
Get the GrantedAuthority used by Spring Security for the role by name- Parameters:
name- Role name likeUSER- Returns:
- Spring Security authority
-
getAnonymousRole
UserRole getAnonymousRole()
-
getUserRole
UserRole getUserRole()
-
getAdministratorRole
UserRole getAdministratorRole()
-
getReportingRole
UserRole getReportingRole()
-
-