public class UIPreferencesSubprofileHelper extends Object
UIPreferencesSubProfile
data.Constructor and Description |
---|
UIPreferencesSubprofileHelper(ModuleContext mcontext) |
Modifier and Type | Method and Description |
---|---|
String |
addSubprofileToUser(User profilable,
SubProfile subProfile)
Adds given
SubProfile to a Profiling Server and connects it with
given User . |
boolean |
addSubprofileToUserProfile(UserProfile userProfile,
SubProfile subProfile)
Adds given
SubProfile to a Profiling Server and connects it with
given UserProfile . |
String |
changeSubProfile(SubProfile subProfile)
Updates given
SubProfile . |
UIPreferencesSubProfile |
getUIPreferencesSubProfileForUser(User user)
Retrieves
UIPreferencesSubProfile that belongs to a given
User from a Profiling Server (makes a service call). |
public UIPreferencesSubprofileHelper(ModuleContext mcontext)
public String addSubprofileToUser(User profilable, SubProfile subProfile)
SubProfile
to a Profiling Server and connects it with
given User
.profilable
- User
subProfile
- SubProfile
String
public String changeSubProfile(SubProfile subProfile)
SubProfile
.subProfile
- SubProfile
String
public UIPreferencesSubProfile getUIPreferencesSubProfileForUser(User user)
UIPreferencesSubProfile
that belongs to a given
User
from a Profiling Server (makes a service call). Note
User
and UserProfile
should exist and be connected with
UIPreferencesSubProfile
before obtainmentuser
- User
UIPreferencesSubProfile
that belongs to a given
User
or null in all other cases.public boolean addSubprofileToUserProfile(UserProfile userProfile, SubProfile subProfile)
SubProfile
to a Profiling Server and connects it with
given UserProfile
.userProfile
- UserProfile
subProfile
- SubProfile
Copyright © 2015 universAAL Consortium. All Rights Reserved.