/** * Utility method to check that the user owns one of the roles provided in input. * * @param roles the checked roles. * @return true if the user owns one of roles in input, false otherwise. */ protected final boolean hasAny(Roles roles) { if (roles.isEmpty()) { return true; } else { return roleCheckingStrategy.hasAnyRole(roles); } }