/**
* Initializes the page with the Editor input.
*/
private void initFromInput()
{
ServerConfiguration configuration = ( ( ServerConfigurationEditor ) getEditor() ).getServerConfiguration();
// Principal
String principal = configuration.getPrincipal();
if ( principal != null )
{
principalText.setText( principal );
}
// Password
String password = configuration.getPassword();
if ( password != null )
{
passwordText.setText( password );
}
// Binary Attributes
binaryAttributes = configuration.getBinaryAttributes();
binaryAttributesTableViewer.setInput( binaryAttributes );
// LDAP Protocol
enableLdapCheckbox.setSelection( true );
ldapPortText.setEnabled( enableLdapCheckbox.getSelection() );
ldapPortText.setText( "" + configuration.getLdapPort() );
// LDAPS Protocol
enableLdapsCheckbox.setSelection( configuration.isEnableLdaps() );
ldapsPortText.setEnabled( enableLdapsCheckbox.getSelection() );
ldapsPortText.setText( "" + configuration.getLdapsPort() );
// Kerberos Protocol
enableKerberosCheckbox.setSelection( configuration.isEnableKerberos() );
kerberosPortText.setEnabled( enableKerberosCheckbox.getSelection() );
kerberosPortText.setText( "" + configuration.getKerberosPort() );
// NTP Protocol
enableNtpCheckbox.setSelection( configuration.isEnableNtp() );
ntpPortText.setEnabled( enableNtpCheckbox.getSelection() );
ntpPortText.setText( "" + configuration.getNtpPort() );
// DNS Protocol
enableDnsCheckbox.setSelection( configuration.isEnableDns() );
dnsPortText.setEnabled( enableDnsCheckbox.getSelection() );
dnsPortText.setText( "" + configuration.getDnsPort() );
// Change Password Protocol
enableChangePasswordCheckbox.setSelection( configuration.isEnableChangePassword() );
changePasswordPortText.setEnabled( enableChangePasswordCheckbox.getSelection() );
changePasswordPortText.setText( "" + configuration.getChangePasswordPort() );
// Max Time Limit
maxTimeLimitText.setText( "" + configuration.getMaxTimeLimit() );
// Max Size Limit
maxSizeLimitText.setText( "" + configuration.getMaxSizeLimit() );
// Synchronization Period
synchPeriodText.setText( "" + configuration.getSynchronizationPeriod() );
// Max Threads
maxThreadsText.setText( "" + configuration.getMaxThreads() );
supportedMechanismsTableViewer.setCheckedElements( configuration.getSupportedMechanisms().toArray() );
// Allow Anonymous Access
allowAnonymousAccessCheckbox.setSelection( configuration.isAllowAnonymousAccess() );
// Enable Access Control
enableAccesControlCheckbox.setSelection( configuration.isEnableAccessControl() );
// Denormalize Op Attr
denormalizeOpAttrCheckbox.setSelection( configuration.isDenormalizeOpAttr() );
}