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:
@@ -30,7 +30,6 @@ import javax.faces.validator.ValidatorException;
|
||||
import javax.portlet.PortletRequest;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.alfresco.config.ConfigService;
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.security.authentication.AuthenticationException;
|
||||
import org.alfresco.service.cmr.repository.InvalidNodeRefException;
|
||||
@@ -99,14 +98,6 @@ public class LoginBean
|
||||
this.navigator = navigator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param configService The ConfigService to set.
|
||||
*/
|
||||
public void setConfigService(ConfigService configService)
|
||||
{
|
||||
this.configService = configService;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param val Username from login dialog
|
||||
*/
|
||||
@@ -161,8 +152,8 @@ public class LoginBean
|
||||
*/
|
||||
public SelectItem[] getLanguages()
|
||||
{
|
||||
ClientConfigElement config = (ClientConfigElement) this.configService.getGlobalConfig()
|
||||
.getConfigElement(ClientConfigElement.CONFIG_ELEMENT_ID);
|
||||
ClientConfigElement config = Application.getClientConfig(
|
||||
FacesContext.getCurrentInstance());
|
||||
|
||||
List<String> languages = config.getLanguages();
|
||||
SelectItem[] items = new SelectItem[languages.size()];
|
||||
@@ -420,7 +411,4 @@ public class LoginBean
|
||||
|
||||
/** The NavigationBean bean reference */
|
||||
private NavigationBean navigator;
|
||||
|
||||
/** ConfigService bean reference */
|
||||
private ConfigService configService;
|
||||
}
|
||||
|
Reference in New Issue
Block a user