public class UISubprofileInitializator extends Object
UIPreferencesSubprofile
based on stereotype data for
AssistedPerson
or Caregiver
user and connects it with given
User
.
Before that it checks if the User
exists and if not adds it (to the
Profiling server), it also checks if UserProfile
exists for that
UIRequest
and if not it adds it and connects it with given
User
.
In addition same initialization data is also stored in the
UIPreferencesBuffer
(although they are retrieved by periodic task
triggered every predefined amount of time).Constructor and Description |
---|
UISubprofileInitializator(User user) |
Modifier and Type | Method and Description |
---|---|
UIPreferencesSubProfile |
getInitializedUIPreferencesSubprofile() |
static Language |
getLanguageFromIso639(String code) |
UIPreferencesSubProfile |
populateUIPreferencesWithStereotypeDataForAssistedPerson(UIPreferencesSubProfile uiPrefsSubProfile) |
UIPreferencesSubProfile |
populateUIPreferencesWithStereotypeDataForCaregiver(UIPreferencesSubProfile uiPrefsSubProfile) |
public UISubprofileInitializator(User user)
public UIPreferencesSubProfile getInitializedUIPreferencesSubprofile()
public UIPreferencesSubProfile populateUIPreferencesWithStereotypeDataForAssistedPerson(UIPreferencesSubProfile uiPrefsSubProfile)
uiPrefsSubProfile
- UIPreferencesSubprofile
to be filled inUIPreferencesSubprofile
with stereotype data for
AssistedPerson
public UIPreferencesSubProfile populateUIPreferencesWithStereotypeDataForCaregiver(UIPreferencesSubProfile uiPrefsSubProfile)
uiPrefsSubProfile
- UIPreferencesSubprofile
to be filled inUIPreferencesSubprofile
with stereotype data for
Caregiver
Copyright © 2015 universAAL Consortium. All Rights Reserved.