class PreferenceApiService {

    public Collection<Preference> loadAll() {
        if (authManager.isAdmin()) {
            return preferenceManager.loadAll();
        } else {
            return preferenceManager.loadVisible();
        }
    }

}