public final class UIContextService extends Object implements Serializable
Registered beans will also be informed of changes in location, for example when the current space changes or when the user has changed area i.e. from company home to my home.
Modifier and Type | Method and Description |
---|---|
void |
areaChanged()
Call to notify all register beans that the area i.e.
|
static UIContextService |
getInstance(FacesContext fc)
Returns a Session local instance of the UIContextService
|
IContextListener |
getRegisteredBean(String className)
Returns a registered bean or null
|
void |
notifyBeans()
Call to notify all register beans that the UI context has changed and they should
refresh themselves as appropriate.
|
void |
registerBean(IContextListener bean)
Register a bean to be informed of context events
|
void |
spaceChanged()
Call to notify all register beans that the current space has changed and they should
refresh themselves as appropriate.
|
void |
unregisterBean(IContextListener bean)
Remove a bean reference from those notified of changes
|
public static UIContextService getInstance(FacesContext fc)
public void registerBean(IContextListener bean)
bean
- Conforming to the IContextListener interfacepublic void unregisterBean(IContextListener bean)
bean
- Conforming to the IContextListener interfacepublic IContextListener getRegisteredBean(String className)
className
- (fully qualified name)public void notifyBeans()
public void spaceChanged()
public void areaChanged()
Copyright © 2005–2017 Alfresco Software. All rights reserved.