org.universAAL.ui.dm.ui.preferences.caller.helpers
Class UIPreferencesSubprofilePrerequisitesHelper

Package class diagram package UIPreferencesSubprofilePrerequisitesHelper
java.lang.Object
  extended by 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

Field Summary
static ModuleContext mc
           
static String NAMESPACE
           
static String OUTPUT_GETPROFILE
           
static String OUTPUT_USER
           
static String OUTPUT_USERS
           
 DefaultServiceCaller sc
           
 
Constructor Summary
UIPreferencesSubprofilePrerequisitesHelper(ModuleContext mc)
           
 
Method Summary
 boolean addUserProfileToUser(User user, UserProfile userProfile)
           
 boolean addUserSucceeded(User user)
           
 UserProfile getProfileForUser(User user)
           
 String getProfileForUserAsString(User user)
           
 boolean getProfileForUserSucceeded(User user)
           
static Object getReturnValue(List outputs, String expectedOutput)
           
 User getUser(Resource user)
           
 String getUserAsString(Resource user)
           
 User[] getUsers()
           
 boolean getUserSucceeded(Resource user)
           
static void logUsers(User[] users)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

UIPreferencesSubprofilePrerequisitesHelper

public UIPreferencesSubprofilePrerequisitesHelper(ModuleContext mc)
Method Detail

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.