mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-04-03 11:13:14 +00:00
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package fns.datura.perms;
|
|
|
|
import fns.patchwork.security.Node;
|
|
import fns.patchwork.security.NodeType;
|
|
|
|
public class DefaultNodes
|
|
{
|
|
public static final Node OP = new PermissionNodeBuilder()
|
|
.key("freedom.master_key")
|
|
.value(true)
|
|
.type(NodeType.PERMISSION)
|
|
.negated(false)
|
|
.wildcard(true)
|
|
.build();
|
|
public static final Node NON_OP = new PermissionNodeBuilder()
|
|
.key("freedom.default")
|
|
.value(true)
|
|
.type(NodeType.PERMISSION)
|
|
.negated(false)
|
|
.wildcard(false)
|
|
.build();
|
|
public static final Node ALL = new PermissionNodeBuilder()
|
|
.key("*")
|
|
.value(true)
|
|
.type(NodeType.PERMISSION)
|
|
.negated(false)
|
|
.wildcard(true)
|
|
.build();
|
|
public static final Node NONE = new PermissionNodeBuilder()
|
|
.key("freedom.none")
|
|
.value(true)
|
|
.type(NodeType.PERMISSION)
|
|
.negated(false)
|
|
.wildcard(false)
|
|
.build();
|
|
|
|
private DefaultNodes()
|
|
{
|
|
throw new AssertionError();
|
|
}
|
|
}
|