-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e11b75
commit 750b7f5
Showing
14 changed files
with
146 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/org/radarbase/appserver/config/AuthEntities.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.radarbase.appserver.config; | ||
|
||
public enum AuthEntities { | ||
MEASUREMENT(Constants.MEASUREMENT), | ||
PROJECT(Constants.PROJECT), | ||
SUBJECT(Constants.SUBJECT), | ||
SOURCE(Constants.SOURCE); | ||
|
||
AuthEntities(String entityValue) { | ||
} | ||
|
||
public static class Constants { | ||
public static final String MEASUREMENT = "MEASUREMENT"; | ||
public static final String PROJECT = "PROJECT"; | ||
public static final String SUBJECT = "SUBJECT"; | ||
public static final String SOURCE = "SOURCE"; | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/org/radarbase/appserver/config/AuthPermission.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.radarbase.appserver.config; | ||
|
||
public enum AuthPermission { | ||
READ(Constants.READ), | ||
CREATE(Constants.CREATE), | ||
UPDATE(Constants.UPDATE), | ||
UPLOAD(Constants.UPLOAD); | ||
|
||
AuthPermission(String permissionValue) { | ||
} | ||
|
||
public static class Constants { | ||
public static final String READ = "READ"; | ||
public static final String CREATE = "CREATE"; | ||
public static final String UPDATE = "UPDATE"; | ||
public static final String UPLOAD = "UPLOAD"; | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
src/main/java/org/radarbase/appserver/config/PreAuthPermissionEvaluator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.