main
Last change
on this file since 7d43957 was 7d43957, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago |
Added functionalities
|
-
Property mode
set to
100644
|
File size:
357 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 |
|
---|
[7d43957] | 8 | ROLE_USER,ROLE_CLIENT, ROLE_ADMIN, ROLE_WAREHOUSEMAN, ROLE_DELIVERYMAN, ROLE_PENDING_WAREHOUSEMAN,ROLE_PENDING_DELIVERYMAN;
|
---|
[ae042f4] | 9 |
|
---|
| 10 | @Override
|
---|
| 11 | public String getAuthority() {
|
---|
| 12 | return name();
|
---|
| 13 | }
|
---|
| 14 | }
|
---|
| 15 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.