Skip to content

Commit c31b10d

Browse files
KubaKuba
authored andcommitted
Role enum added
1 parent fba2be7 commit c31b10d

File tree

1 file changed

+25
-0
lines changed
  • my-maps-datalayer/src/main/java/cz/muni/fi/pv243/mymaps/entities

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* To change this template, choose Tools | Templates
3+
* and open the template in the editor.
4+
*/
5+
package cz.muni.fi.pv243.mymaps.entities;
6+
7+
/**
8+
*
9+
* @author Kuba
10+
*/
11+
public enum Role {
12+
13+
User("User"),
14+
Admin("Admin");
15+
16+
private final String label;
17+
18+
private Role(String label) {
19+
this.label = label;
20+
}
21+
22+
public String getLabel() {
23+
return this.label;
24+
}
25+
}

0 commit comments

Comments
 (0)