org.universAAL.ui.dm.interfaces
Interface IUIPreferencesBuffer

Package class diagram package IUIPreferencesBuffer
All Known Implementing Classes:
UIPreferencesBufferNoUpdate, UIPreferencesBufferPoller, UIPreferencesBufferSubscriptor

public interface IUIPreferencesBuffer

An entry point to the Preffences buffer. To allow different implementations to maintain UIPreferencesSubProfiles up-to-date.

Author:
amedrano

Method Summary
 void addUser(User user)
          Checks if UIPreferencesSubProfile has already been initialized for a given User.
 UIPreferencesSubProfile changeCurrentUIPreferencesSubProfileForUser(User key, UIPreferencesSubProfile uiPrefSubprof)
          Updates the UIPreferencesSubProfile for the user.
 UIPreferencesSubProfile getUIPreferencesSubprofileForUser(User user)
          Get the UIPreferencesSubProfile for the given User.
 void stop()
          Stops the task
 

Method Detail

addUser

void addUser(User user)
Checks if UIPreferencesSubProfile has already been initialized for a given User. If not initialization bill be done.
The User will be previously added in order to get or change its UIPreferencesSubProfile correctly.

Parameters:
user - User the user to be monitored.

getUIPreferencesSubprofileForUser

UIPreferencesSubProfile getUIPreferencesSubprofileForUser(User user)
Get the UIPreferencesSubProfile for the given User.

Returns:
the UIPreferencesSubProfile or null

changeCurrentUIPreferencesSubProfileForUser

UIPreferencesSubProfile changeCurrentUIPreferencesSubProfileForUser(User key,
                                                                    UIPreferencesSubProfile uiPrefSubprof)
Updates the UIPreferencesSubProfile for the user. Associates the specified UIPreferencesSubProfile with the specified User If possible, the old value is replaced by the specified value.

Returns:
the old UIPreferencesSubProfile that was associated with the User or null if there was no mapping

stop

void stop()
Stops the task



Copyright © 2014 universAAL Consortium. All Rights Reserved.