use of ddf.security.permission.impl.KeyValuePermissionImpl in project ddf by codice.
the class DefaultContextAttributeMappingTest method setup.
@Before
public void setup() {
List<KeyValuePermission> userPerms = new ArrayList<KeyValuePermission>();
userPerms.add(new KeyValuePermissionImpl("role", Arrays.asList("admin")));
userPerms.add(new KeyValuePermissionImpl("controls", Arrays.asList("Foo", "Bar")));
userPerms.add(new KeyValuePermissionImpl("control", Arrays.asList("Foo")));
userPermissions = new KeyValueCollectionPermissionImpl("context", userPerms);
roleMapping = new DefaultContextAttributeMapping("context", "role", "admin");
roleMapping2 = new DefaultContextAttributeMapping("context", "role", "charlie");
controlsMapping = new DefaultContextAttributeMapping("context", "controls", "Foo");
controlMapping = new DefaultContextAttributeMapping("context", "control", "Bar");
}
Aggregations