org.alfresco.web.bean.spaces
Class RecentSpacesBean

java.lang.Object
  extended by org.alfresco.web.bean.spaces.RecentSpacesBean
All Implemented Interfaces:
java.io.Serializable, IContextListener

public class RecentSpacesBean
extends java.lang.Object
implements IContextListener

This bean manages the real-time updated list of Recent Spaces in the Shelf component.

Registers itself as a UI Context Listener so it is informed as to when the current Node ID has changed in the NavigationBeans. This is used to keep the list of spaces up-to-date.

See Also:
Serialized Form

Field Summary
protected  BrowseBean browseBean
          The BrowseBean reference
protected  NavigationBean navigator
          The NavigationBean reference
 
Constructor Summary
RecentSpacesBean()
          Default Constructor
 
Method Summary
 void areaChanged()
          Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e.
 void contextUpdated()
          Method called by UIContextService.notifyBeans() to inform all registered beans that all UI Beans should refresh dump all cached data and settings.
 java.util.List getRecentSpaces()
           
 void navigate(javax.faces.event.ActionEvent event)
          Action handler bound to the recent spaces Shelf component called when a Space is clicked
 void setBrowseBean(BrowseBean browseBean)
           
 void setNavigator(NavigationBean navigator)
           
 void setRecentSpaces(java.util.List spaces)
           
 void spaceChanged()
          Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

navigator

protected NavigationBean navigator
The NavigationBean reference


browseBean

protected BrowseBean browseBean
The BrowseBean reference

Constructor Detail

RecentSpacesBean

public RecentSpacesBean()
Default Constructor

Method Detail

setNavigator

public void setNavigator(NavigationBean navigator)
Parameters:
navigator - The NavigationBean to set.

setBrowseBean

public void setBrowseBean(BrowseBean browseBean)
Parameters:
browseBean - The BrowseBean to set.

getRecentSpaces

public java.util.List getRecentSpaces()
Returns:
the List of recent spaces

setRecentSpaces

public void setRecentSpaces(java.util.List spaces)
Parameters:
spaces - List of Nodes

navigate

public void navigate(javax.faces.event.ActionEvent event)
Action handler bound to the recent spaces Shelf component called when a Space is clicked


contextUpdated

public void contextUpdated()
Description copied from interface: IContextListener
Method called by UIContextService.notifyBeans() to inform all registered beans that all UI Beans should refresh dump all cached data and settings.

Specified by:
contextUpdated in interface IContextListener
See Also:
IContextListener.contextUpdated()

areaChanged

public void areaChanged()
Description copied from interface: IContextListener
Method called by UIContextService.areaChanged() to inform all registered beans that the user has changed area i.e. from company home to my home.

Specified by:
areaChanged in interface IContextListener
See Also:
IContextListener.areaChanged()

spaceChanged

public void spaceChanged()
Description copied from interface: IContextListener
Method called by UIContextService.spaceChanged() to inform all registered beans that the current space has changed.

Specified by:
spaceChanged in interface IContextListener
See Also:
IContextListener.spaceChanged()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.