mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
First phase of client configuration re-org
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2289 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,7 +23,6 @@ import java.util.List;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.event.ActionEvent;
|
||||
|
||||
import org.alfresco.config.ConfigService;
|
||||
import org.alfresco.service.cmr.repository.InvalidNodeRefException;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.web.app.Application;
|
||||
@@ -54,9 +53,6 @@ public class RecentSpacesBean implements IContextListener
|
||||
/** The BrowseBean reference */
|
||||
private BrowseBean browseBean;
|
||||
|
||||
/** ConfigService bean reference */
|
||||
private ConfigService configService;
|
||||
|
||||
/** Maximum number of recent spaces to show */
|
||||
private Integer maxRecentSpaces = null;
|
||||
|
||||
@@ -95,14 +91,6 @@ public class RecentSpacesBean implements IContextListener
|
||||
this.browseBean = browseBean;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param configService The ConfigService to set.
|
||||
*/
|
||||
public void setConfigService(ConfigService configService)
|
||||
{
|
||||
this.configService = configService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the List of recent spaces
|
||||
*/
|
||||
@@ -194,8 +182,7 @@ public class RecentSpacesBean implements IContextListener
|
||||
{
|
||||
if (maxRecentSpaces == null)
|
||||
{
|
||||
ClientConfigElement config = (ClientConfigElement)this.configService.getGlobalConfig().getConfigElement(
|
||||
ClientConfigElement.CONFIG_ELEMENT_ID);
|
||||
ClientConfigElement config = Application.getClientConfig(FacesContext.getCurrentInstance());
|
||||
maxRecentSpaces = Integer.valueOf(config.getRecentSpacesItems());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user