Skip to content

Commit

Permalink
GroupEnum追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisa9006 committed Nov 19, 2024
1 parent 6bb4e00 commit f7b75a4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@
<version>1.0-20241115.035849-1</version>
<scope>provided</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.36</version>
<scope>provided</scope>
</dependency>

</dependencies>

<distributionManagement>
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/dev/felnull/Data/GroupPermENUM.java
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit f7b75a4

Please sign in to comment.