@Scope(value=SESSION) @Name(value="setupWizardAction") public class SetupWizardActionBean extends Object implements Serializable
Manages some important parameters to perform validation on them, and accepts custom parameters that would be present in the server nuxeo.conf file, and moves to advanced mode any property that would not be in that list.
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
advancedParameters |
protected static String |
DIRECTORY_DEFAULT |
protected static String |
DIRECTORY_LDAP |
protected static String |
DIRECTORY_MULTI |
protected String |
directoryType |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected static org.apache.commons.logging.Log |
log |
protected Map<String,String> |
messages |
protected boolean |
needsRestart |
protected Map<String,String> |
parameters |
protected static String |
PROXY_ANONYMOUS |
protected static String |
PROXY_AUTHENTICATED |
protected static String |
PROXY_NONE |
protected String |
proxyType |
protected Properties |
userConfig |
Constructor and Description |
---|
SetupWizardActionBean() |
Modifier and Type | Method and Description |
---|---|
void |
checkDatabaseParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
void |
checkLdapAuthenticationParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
void |
checkLdapNetworkParameters(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
void |
directoryChange(javax.faces.event.AjaxBehaviorEvent event) |
Map<String,String> |
getAdvancedParameters() |
ConfigurationGenerator |
getConfigurationGenerator() |
String |
getDirectoryType() |
boolean |
getNeedGroupConfiguration() |
Map<String,String> |
getParameters() |
String |
getProxyType()
Initialized by
getParameters() |
boolean |
isConfigurable() |
boolean |
isNeedsRestart() |
void |
ldapStorageChange() |
void |
proxyChange(javax.faces.event.AjaxBehaviorEvent event) |
void |
resetParameters() |
void |
save() |
protected void |
saveParameters() |
void |
setDirectoryStorage(String directoryStorage) |
void |
setDirectoryType(String directoryType) |
void |
setNeedsRestart(boolean needsRestart) |
protected void |
setParameters()
Fill
parameters and advancedParameters with properties from #
ConfigurationGenerator.getUserConfig() |
void |
setProxyType(String proxyType) |
void |
templateChange(javax.faces.event.AjaxBehaviorEvent event) |
protected static final org.apache.commons.logging.Log log
protected Map<String,String> parameters
protected Map<String,String> advancedParameters
protected static final String PROXY_NONE
protected static final String PROXY_ANONYMOUS
protected static final String PROXY_AUTHENTICATED
protected static final String DIRECTORY_DEFAULT
protected static final String DIRECTORY_LDAP
protected static final String DIRECTORY_MULTI
protected String directoryType
protected boolean needsRestart
protected Properties userConfig
@In(create=true, required=false) protected org.jboss.seam.faces.FacesMessages facesMessages
public SetupWizardActionBean()
@Factory(value="setupRequiresRestart", scope=EVENT) public boolean isNeedsRestart()
public void setNeedsRestart(boolean needsRestart)
@Factory(value="setupConfigGenerator", scope=PAGE) public ConfigurationGenerator getConfigurationGenerator()
@Factory(value="setupConfigurable", scope=APPLICATION) public boolean isConfigurable()
@Factory(value="advancedParams", scope=EVENT) public Map<String,String> getAdvancedParameters()
@Factory(value="setupParams", scope=EVENT) public Map<String,String> getParameters()
protected void setParameters()
parameters
and advancedParameters
with properties from #
ConfigurationGenerator.getUserConfig()
public void save()
protected void saveParameters()
public void resetParameters()
public void checkDatabaseParameters(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public void templateChange(javax.faces.event.AjaxBehaviorEvent event)
public void proxyChange(javax.faces.event.AjaxBehaviorEvent event)
public String getProxyType()
getParameters()
public void setProxyType(String proxyType)
public String getDirectoryType()
public void setDirectoryType(String directoryType)
public void setDirectoryStorage(String directoryStorage)
public void ldapStorageChange()
public boolean getNeedGroupConfiguration()
public void directoryChange(javax.faces.event.AjaxBehaviorEvent event)
public void checkLdapNetworkParameters(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public void checkLdapAuthenticationParameters(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
Copyright © 2015 Nuxeo SA. All rights reserved.