public class UIPreferencesBufferSubscriptor extends ContextSubscriber implements IUIPreferencesBuffer
UIPreferencesSubProfile
is though the Context bus,
when an update is needed outside the UI.DM just publish an event whith the UIPreferencesSubProfile
as object.busResourceURI, owner, theBus
Constructor and Description |
---|
UIPreferencesBufferSubscriptor(ModuleContext context) |
Modifier and Type | Method and Description |
---|---|
void |
addUser(User user) |
UIPreferencesSubProfile |
changeCurrentUIPreferencesSubProfileForUser(User key,
UIPreferencesSubProfile uiPrefSubprof) |
void |
communicationChannelBroken() |
UIPreferencesSubProfile |
getUIPreferencesSubprofileForUser(User user) |
void |
handleContextEvent(ContextEvent event) |
void |
stop() |
addNewRegParams, busDyingOut, getAllProvisions, getMyID, handleEvent, removeMatchingRegParams
close, getComment, getLabel, getType, getURI, setComment, setLabel
public UIPreferencesBufferSubscriptor(ModuleContext context)
public void addUser(User user)
addUser
in interface IUIPreferencesBuffer
user
- User
the user to be monitored.public UIPreferencesSubProfile getUIPreferencesSubprofileForUser(User user)
getUIPreferencesSubprofileForUser
in interface IUIPreferencesBuffer
UIPreferencesSubProfile
or nullpublic UIPreferencesSubProfile changeCurrentUIPreferencesSubProfileForUser(User key, UIPreferencesSubProfile uiPrefSubprof)
changeCurrentUIPreferencesSubProfileForUser
in interface IUIPreferencesBuffer
UIPreferencesSubProfile
that was associated with
the User
or null if there was no mappingpublic void stop()
stop
in interface IUIPreferencesBuffer
public void communicationChannelBroken()
communicationChannelBroken
in class ContextSubscriber
public void handleContextEvent(ContextEvent event)
handleContextEvent
in class ContextSubscriber
event
- The Context Event that matched the registered PatternsCopyright © 2015 universAAL Consortium. All Rights Reserved.