Last change
on this file was fc7ec52, checked in by darkopopovski <darkopopovski39@…>, 2 years ago |
all files
|
-
Property mode
set to
100644
|
File size:
276 bytes
|
Line | |
---|
1 | package com.example.demo.model;
|
---|
2 |
|
---|
3 | import org.springframework.security.core.GrantedAuthority;
|
---|
4 |
|
---|
5 | public enum Role implements GrantedAuthority {
|
---|
6 |
|
---|
7 |
|
---|
8 | Client,
|
---|
9 | ROLE_CLIENT
|
---|
10 | , ROLE_EMPLOYEE;
|
---|
11 |
|
---|
12 | @Override
|
---|
13 | public String getAuthority() {
|
---|
14 | return name();
|
---|
15 | }
|
---|
16 |
|
---|
17 |
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.