mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Added document level security
Fixed AWC-407 Added helper to Application to get client config git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2114 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -952,22 +952,20 @@ public class ForumsBean implements IContextListener
|
||||
*/
|
||||
private void initFromClientConfig()
|
||||
{
|
||||
this.clientConfig = (ClientConfigElement)Application.getConfigService(
|
||||
FacesContext.getCurrentInstance()).getGlobalConfig().
|
||||
getConfigElement(ClientConfigElement.CONFIG_ELEMENT_ID);
|
||||
this.clientConfig = Application.getClientConfig(FacesContext.getCurrentInstance());
|
||||
|
||||
// get the defaults for the forums page
|
||||
this.forumsViewMode = clientConfig.getDefaultView(PAGE_NAME_FORUMS);
|
||||
this.forumsViewMode = this.clientConfig.getDefaultView(PAGE_NAME_FORUMS);
|
||||
this.forumsPageSize = this.clientConfig.getDefaultPageSize(PAGE_NAME_FORUMS,
|
||||
this.forumsViewMode);
|
||||
|
||||
// get the default for the forum page
|
||||
this.forumViewMode = clientConfig.getDefaultView(PAGE_NAME_FORUM);
|
||||
this.forumViewMode = this.clientConfig.getDefaultView(PAGE_NAME_FORUM);
|
||||
this.forumPageSize = this.clientConfig.getDefaultPageSize(PAGE_NAME_FORUM,
|
||||
this.forumViewMode);
|
||||
|
||||
// get the default for the topic page
|
||||
this.topicViewMode = clientConfig.getDefaultView(PAGE_NAME_TOPIC);
|
||||
this.topicViewMode = this.clientConfig.getDefaultView(PAGE_NAME_TOPIC);
|
||||
this.topicPageSize = this.clientConfig.getDefaultPageSize(PAGE_NAME_TOPIC,
|
||||
this.topicViewMode);
|
||||
|
||||
|
Reference in New Issue
Block a user