main
Last change
on this file since ae042f4 was ae042f4, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago |
Configured spring security, changed spring version
|
-
Property mode
set to
100644
|
File size:
305 bytes
|
Rev | Line | |
---|
[ae042f4] | 1 | package com.example.autopartz.model;
|
---|
| 2 |
|
---|
| 3 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | public enum Role implements GrantedAuthority {
|
---|
| 7 |
|
---|
| 8 | ROLE_USER,ROLE_CLIENT, ROLE_ADMIN, ROLE_WAREHOUSEMAN, ROLE_DELIVERYMAN;
|
---|
| 9 |
|
---|
| 10 | @Override
|
---|
| 11 | public String getAuthority() {
|
---|
| 12 | return name();
|
---|
| 13 | }
|
---|
| 14 | }
|
---|
| 15 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.