use of org.apache.stanbol.commons.security.PermissionDefinitions in project stanbol by apache.
the class PermissionDefinitionsTest method setUp.
@Before
public void setUp() {
final ImmutableGraph graph = Parser.getInstance().parse(getClass().getResourceAsStream("systemgraph.nt"), "text/rdf+n3");
this.permissionDefinitions = new PermissionDefinitions(new SimpleGraph(graph.iterator()));
this.allPermissions = new PermissionInfo[] { new PermissionInfo("(java.io.FilePermission \"file:///home/foo/-\" \"read,write,delete\")"), new PermissionInfo("(java.io.FilePermission \"file:///home/foo/*\" \"read,write\")"), new PermissionInfo("(java.io.FilePermission \"file:///home/*\" \"read,write\")") };
this.nullPermission = null;
}
Aggregations