BrightSide Workbench Full Report + Source Code
org.turro.alliance.client.model.PreferencesVM Class Reference

Public Member Functions

void save ()
 
List< PreferencesAdaptergetModel ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file PreferencesVM.java.

Member Function Documentation

◆ getModel()

List<PreferencesAdapter> org.turro.alliance.client.model.PreferencesVM.getModel ( )

Definition at line 44 of file PreferencesVM.java.

44  {
45  if(model == null) {
46  model = new ArrayList<>();
47  Servers.getServers(AxServer.SERVER_SERVICE).forEach(server -> {
48  PreferencesAdapter spa = new PreferencesAdapter(server);
49  if(spa.getPreferences() != null) model.add(spa);
50  });
51  }
52  return model;
53  }
Here is the call graph for this function:

◆ save()

void org.turro.alliance.client.model.PreferencesVM.save ( )

Definition at line 36 of file PreferencesVM.java.

36  {
37  model.forEach(preferences -> preferences.save());
38  }

The documentation for this class was generated from the following file: