Search in sources :

Example 1 with PermissionDefinitions

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;
}
Also used : PermissionInfo(org.osgi.service.permissionadmin.PermissionInfo) SimpleGraph(org.apache.clerezza.commons.rdf.impl.utils.simple.SimpleGraph) PermissionDefinitions(org.apache.stanbol.commons.security.PermissionDefinitions) ImmutableGraph(org.apache.clerezza.commons.rdf.ImmutableGraph)

Aggregations

ImmutableGraph (org.apache.clerezza.commons.rdf.ImmutableGraph)1 SimpleGraph (org.apache.clerezza.commons.rdf.impl.utils.simple.SimpleGraph)1 PermissionDefinitions (org.apache.stanbol.commons.security.PermissionDefinitions)1 PermissionInfo (org.osgi.service.permissionadmin.PermissionInfo)1