org.universAAL.ui.dm.ui.preferences.caller.helpers
Class UIPreferencesSubprofilePrerequisitesHelper
java.lang.Object
org.universAAL.ui.dm.ui.preferences.caller.helpers.UIPreferencesSubprofilePrerequisitesHelper
public class UIPreferencesSubprofilePrerequisitesHelper
- extends Object
Communicates with Profiling Server and acts as a helper when initializing
UIPreferencesSubprofile
for a User
- Author:
- eandgrg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mc
public static ModuleContext mc
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
OUTPUT_USERS
public static final String OUTPUT_USERS
- See Also:
- Constant Field Values
OUTPUT_USER
public static final String OUTPUT_USER
- See Also:
- Constant Field Values
OUTPUT_GETPROFILE
public static final String OUTPUT_GETPROFILE
- See Also:
- Constant Field Values
sc
public DefaultServiceCaller sc
UIPreferencesSubprofilePrerequisitesHelper
public UIPreferencesSubprofilePrerequisitesHelper(ModuleContext mc)
getUserSucceeded
public boolean getUserSucceeded(Resource user)
- Parameters:
user
- User
- Returns:
- if the
User
existed and was obtained from the Profiling
Server return true, false otherwise
getUserAsString
public String getUserAsString(Resource user)
- Parameters:
user
- User
- Returns:
getUser
public User getUser(Resource user)
- Parameters:
user
- User
- Returns:
User
obtained from Profiling server or null otherwise
addUserSucceeded
public boolean addUserSucceeded(User user)
- Parameters:
user
- User
- Returns:
- if the
User
was successfully added in Profiling Server
return true, false otherwise
getProfileForUserAsString
public String getProfileForUserAsString(User user)
- Parameters:
user
- User
- Returns:
UserProfile
for given User
as String
getProfileForUser
public UserProfile getProfileForUser(User user)
- Parameters:
user
- User
- Returns:
UserProfile
for given User
getProfileForUserSucceeded
public boolean getProfileForUserSucceeded(User user)
- Parameters:
user
- User
- Returns:
- true if
UserProfile
for given User
was obtained,
false otherwise
addUserProfileToUser
public boolean addUserProfileToUser(User user,
UserProfile userProfile)
- Parameters:
user
- User
userProfile
- UserProfile
- Returns:
- true if
UserProfile
for given User
was added to
Profiling Server, false otherwise
getReturnValue
public static final Object getReturnValue(List outputs,
String expectedOutput)
- Parameters:
outputs
- expectedOutput
-
- Returns:
- value as an Object
getUsers
public User[] getUsers()
logUsers
public static void logUsers(User[] users)
Copyright © 2014 universAAL Consortium. All Rights Reserved.