use of org.alfresco.web.config.ClientConfigElement in project acs-community-packaging by Alfresco.
the class RecentSpacesBean method getMaxRecentSpaces.
// ------------------------------------------------------------------------------
// Helper methods
/**
* @return the max number of recent spaces to show, retrieved from client config
*/
private int getMaxRecentSpaces() {
if (maxRecentSpaces == null) {
ClientConfigElement config = Application.getClientConfig(FacesContext.getCurrentInstance());
maxRecentSpaces = Integer.valueOf(config.getRecentSpacesItems());
}
return maxRecentSpaces.intValue();
}
Aggregations