-
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
Showing
14 changed files
with
120 additions
and
22 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
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
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
16 changes: 16 additions & 0 deletions
16
src/org/labkey/snd/security/permissions/SNDEditorPermission.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,16 @@ | ||
package org.labkey.snd.security.permissions; | ||
|
||
import org.labkey.api.security.permissions.AbstractPermission; | ||
|
||
|
||
/** | ||
* Created by thawkins on 8/6/2024. | ||
*/ | ||
public class SNDEditorPermission extends AbstractPermission | ||
{ | ||
public SNDEditorPermission() | ||
{ | ||
super("SNDEditorPermission", "This is the base permission required to Edit SND Data."); | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/org/labkey/snd/security/permissions/SNDViewerPermission.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,16 @@ | ||
package org.labkey.snd.security.permissions; | ||
|
||
import org.labkey.api.security.permissions.AbstractPermission; | ||
|
||
|
||
/** | ||
* Created by thawkins on 8/6/2024. | ||
*/ | ||
public class SNDViewerPermission extends AbstractPermission | ||
{ | ||
public SNDViewerPermission() | ||
{ | ||
super("SNDViewerPermission", "This is the base permission required to view SND Data."); | ||
} | ||
|
||
} |
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,23 @@ | ||
package org.labkey.snd.security.roles; | ||
|
||
import org.labkey.api.security.roles.AbstractModuleScopedRole; | ||
import org.labkey.snd.SNDModule; | ||
import org.labkey.snd.security.permissions.SNDEditorPermission; | ||
import org.labkey.snd.security.permissions.SNDViewerPermission; | ||
|
||
/** | ||
* Created by thawkins on 8/6/2024. | ||
*/ | ||
public class SNDEditorRole extends AbstractModuleScopedRole | ||
{ | ||
public SNDEditorRole() | ||
{ | ||
super("SND Data Editors", "Users with this role are permitted to Edit SND data.", | ||
SNDModule.class, | ||
SNDViewerPermission.class, | ||
SNDEditorPermission.class | ||
); | ||
|
||
|
||
} | ||
} |
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,21 @@ | ||
package org.labkey.snd.security.roles; | ||
|
||
import org.labkey.api.security.roles.AbstractModuleScopedRole; | ||
import org.labkey.snd.SNDModule; | ||
import org.labkey.snd.security.permissions.SNDViewerPermission; | ||
|
||
/** | ||
* Created by thawkins on 8/6/2024. | ||
*/ | ||
public class SNDViewerRole extends AbstractModuleScopedRole | ||
{ | ||
public SNDViewerRole() | ||
{ | ||
super("SND Data Viewers", "Users with this role are permitted to view SND data.", | ||
SNDModule.class, | ||
SNDViewerPermission.class | ||
); | ||
|
||
|
||
} | ||
} |
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