newPermissions=EnumSet.noneOf(UserRole.Permission.class);
+ deserializeEnumSet(newPermissions, UserRole.Permission.class, Base64.getDecoder().decode((String) le.extra().get("newPermissions")));
+ for(UserRole.Permission permission:oldPermissions){
+ if(!newPermissions.contains(permission)){
+ sb.append("- ");
+ sb.append(l.get(permission.getLangKey()));
+ sb.append("
");
+ }
+ }
+ for(UserRole.Permission permission:newPermissions){
+ if(!oldPermissions.contains(permission)){
+ sb.append("+ ");
+ sb.append(l.get(permission.getLangKey()));
+ sb.append("
");
+ }
+ }
+ }
+ sb.append("