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:
@@ -136,9 +136,7 @@ public class UISearchCustomProperties extends SelfRenderingComponent implements
|
||||
private void createComponentsFromConfig(FacesContext context)
|
||||
{
|
||||
DictionaryService dd = Repository.getServiceRegistry(context).getDictionaryService();
|
||||
ConfigService configService = Application.getConfigService(context);
|
||||
ClientConfigElement clientConfig = (ClientConfigElement)configService.getGlobalConfig().getConfigElement(
|
||||
ClientConfigElement.CONFIG_ELEMENT_ID);
|
||||
ClientConfigElement clientConfig = Application.getClientConfig(context);
|
||||
|
||||
// create an appropriate component for each custom property
|
||||
// using the DataDictionary to look-up labels and value types
|
||||
|
@@ -24,7 +24,6 @@ import java.util.Map;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.el.ValueBinding;
|
||||
|
||||
import org.alfresco.config.ConfigService;
|
||||
import org.alfresco.repo.template.DateCompareMethod;
|
||||
import org.alfresco.repo.template.HasAspectMethod;
|
||||
import org.alfresco.repo.template.I18NMessageMethod;
|
||||
@@ -37,7 +36,6 @@ import org.alfresco.service.cmr.repository.TemplateService;
|
||||
import org.alfresco.web.app.Application;
|
||||
import org.alfresco.web.bean.repository.Repository;
|
||||
import org.alfresco.web.bean.repository.User;
|
||||
import org.alfresco.web.config.ClientConfigElement;
|
||||
import org.alfresco.web.ui.common.Utils;
|
||||
import org.alfresco.web.ui.common.component.SelfRenderingComponent;
|
||||
import org.apache.log4j.Logger;
|
||||
@@ -113,11 +111,6 @@ public class UITemplate extends SelfRenderingComponent
|
||||
// get the data model to use - building default if required
|
||||
Object model = getModel();
|
||||
|
||||
// get the configservice to find the appropriate processor
|
||||
ConfigService service = Application.getConfigService(context);
|
||||
ClientConfigElement clientConfig = (ClientConfigElement)service.getGlobalConfig().getConfigElement(
|
||||
ClientConfigElement.CONFIG_ELEMENT_ID);
|
||||
|
||||
// get the template to process
|
||||
String template = getTemplate();
|
||||
if (template != null && template.length() != 0)
|
||||
|
Reference in New Issue
Block a user