category8Name,
package8Name,
AssetFormats.DRL );
roleBasedPermissionResolver.setEnableRoleBasedAuthorization(true);
roleBasedPermissionStore.addRoleBasedPermissionForTesting(USER_NAME, new RoleBasedPermission(USER_NAME,
RoleType.PACKAGE_READONLY.getName(),
package7Name,
null));
roleBasedPermissionStore.addRoleBasedPermissionForTesting(USER_NAME, new RoleBasedPermission( USER_NAME,
RoleType.ANALYST.getName(),
null,
category7Name ) );
roleBasedPermissionStore.addRoleBasedPermissionForTesting(USER_NAME, new RoleBasedPermission( USER_NAME,
RoleType.ANALYST.getName(),
null,
category8Name ) );
roleBasedPermissionManager.create(); // HACK flushes the permission cache