diff --git a/pom.xml b/pom.xml index 629b11a..5441b32 100644 --- a/pom.xml +++ b/pom.xml @@ -83,6 +83,14 @@ 1.0-20241115.035849-1 provided + + + org.projectlombok + lombok + 1.18.36 + provided + + diff --git a/src/main/java/dev/felnull/Data/GroupPermENUM.java b/src/main/java/dev/felnull/Data/GroupPermENUM.java new file mode 100644 index 0000000..585c3e2 --- /dev/null +++ b/src/main/java/dev/felnull/Data/GroupPermENUM.java @@ -0,0 +1,28 @@ +package dev.felnull.Data; + + +public enum GroupPermENUM { + + OWNER("owner"), + MANAGER("manager"), + MEMBER("member"); + + private final String permName; + + GroupPermENUM(String permName) { + this.permName = permName; + } + + public String getPermName() { + return permName; + } + + public String fromPermName(String perm) { + for (GroupPermENUM groupPermENUM : GroupPermENUM.values()){ + if(groupPermENUM.getPermName().equalsIgnoreCase(perm)){ + return groupPermENUM.getPermName(); + } + } + return null; + } +}