/** * Gets whether any of the given roles applies to the authorizer. * * @param roles * the roles * @return whether any of the given roles applies to the authorizer */ protected final boolean hasAny(Roles roles) { if (roles.isEmpty()) { return true; } else { return roleCheckingStrategy.hasAnyRole(roles); } }
/** * Gets whether any of the given roles applies to the authorizer. * * @param roles * the roles * @return whether any of the given roles applies to the authorizer */ protected final boolean hasAny(Roles roles) { if (roles.isEmpty()) { return true; } else { return roleCheckingStrategy.hasAnyRole(roles); } }