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