permissions.put(TaskPermissions.ACTION_DELETE, deletePermissions);
return new TaskPermissions(permissions);
}
public static SimpleAuthProvider getMeASimpleAuthProvider() {
UserRoles user1 = new UserRoles("test/user1", new String[] { "test/role1", "test/role2" });
UserRoles user2 = new UserRoles("test/user2", new String[] { "test/role2", "test/role3" });
UserRoles user3 = new UserRoles("test/user3", new String[] { "test/role4", "test/role5" });
UserRoles systemUser = new UserRoles("test/system-user", new String[] { "test/role1", "test/role2","test/role3", "examples/employee", "*/*"});
SimpleAuthProvider authProvider = new SimpleAuthProvider();
authProvider.addUserToken("token1", user1);
authProvider.addUserToken("token2", user2);
authProvider.addUserToken("token3", user3);