cz.muni.fi.rtc.teacherWorkbench.importer
Class ImporterConfigurationImpl

java.lang.Object
  extended by cz.muni.fi.rtc.teacherWorkbench.importer.ImporterConfigurationImpl
All Implemented Interfaces:
ImporterConfiguration

public class ImporterConfigurationImpl
extends java.lang.Object
implements ImporterConfiguration


Constructor Summary
ImporterConfigurationImpl()
           
 
Method Summary
 java.lang.String getEmailFromAddress()
          Email address from which the emails are sent
 java.lang.String getEmailFromName()
          Name from which the emails are sent
 java.lang.String getLdapAdminDN()
          DN of the LDAP administrator
 java.lang.String getLdapAdminPassword()
          LDAP administrator password in plaintext
 java.lang.String getLdapBaseDN()
          LDAP server base DN.
 java.lang.String getLdapGroupJazzUsers()
          DN of the LDAP group mapped to JazzUsers group in RTC
 java.lang.String getLdapGroupPeople()
          DN of the LDAP group where the users are stored
 int getLdapPort()
          Get LDAP server port
 java.lang.String getLdapServer()
          Get the LDAP address (IP or hostname)
 java.lang.String getRtcAddress()
          RTC server URL, for example https://localhost:9443/jazz
 java.lang.String getRtcAdminPassword()
          RTC administrator password (plaintext)
 java.lang.String getRtcAdminUser()
          RTC administrator name.
 java.lang.String getSmtpHost()
          SMTP host used for email announcements
 java.lang.String getSmtpPassword()
          STMP Auth password
 int getSmtpPort()
          STMP port
 boolean getSmtpTls()
          Whether to use TLS or not
 java.lang.String getSmtpUser()
          SMTP Auth username.
 void setEmailFromAddress(java.lang.String emailFromAddress)
           
 void setEmailFromName(java.lang.String emailFromName)
           
 void setLdapAdminDN(java.lang.String ldapAdminDN)
           
 void setLdapAdminPassword(java.lang.String ldapAdminPassword)
           
 void setLdapBaseDN(java.lang.String ldapBaseDN)
           
 void setLdapGroupJazzUsers(java.lang.String ldapGroupJazzUsers)
           
 void setLdapGroupPeople(java.lang.String ldapGroupPeople)
           
 void setLdapPort(int ldapPort)
           
 void setLdapServer(java.lang.String ldapServer)
           
 void setRtcAddress(java.lang.String rtcAddress)
           
 void setRtcAdminPassword(java.lang.String rtcAdminPassword)
           
 void setRtcAdminUser(java.lang.String rtcAdminUser)
           
 void setSmtpHost(java.lang.String smtpHost)
           
 void setSmtpPassword(java.lang.String smtpPassword)
           
 void setSmtpPort(int smtpPort)
           
 void setSmtpTls(boolean smtpTls)
           
 void setSmtpUser(java.lang.String smtpUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImporterConfigurationImpl

public ImporterConfigurationImpl()
Method Detail

getLdapServer

public java.lang.String getLdapServer()
Description copied from interface: ImporterConfiguration
Get the LDAP address (IP or hostname)

Specified by:
getLdapServer in interface ImporterConfiguration
Returns:
the ldapServer

setLdapServer

public void setLdapServer(java.lang.String ldapServer)
Parameters:
ldapServer - the ldapServer to set

getLdapPort

public int getLdapPort()
Description copied from interface: ImporterConfiguration
Get LDAP server port

Specified by:
getLdapPort in interface ImporterConfiguration
Returns:
the ldapPort

setLdapPort

public void setLdapPort(int ldapPort)
Parameters:
ldapPort - the ldapPort to set

getLdapBaseDN

public java.lang.String getLdapBaseDN()
Description copied from interface: ImporterConfiguration
LDAP server base DN. Connection will bind to it.

Specified by:
getLdapBaseDN in interface ImporterConfiguration
Returns:
the ldapBaseDN

setLdapBaseDN

public void setLdapBaseDN(java.lang.String ldapBaseDN)
Parameters:
ldapBaseDN - the ldapBaseDN to set

getLdapAdminDN

public java.lang.String getLdapAdminDN()
Description copied from interface: ImporterConfiguration
DN of the LDAP administrator

Specified by:
getLdapAdminDN in interface ImporterConfiguration
Returns:
the ldapAdminDN

setLdapAdminDN

public void setLdapAdminDN(java.lang.String ldapAdminDN)
Parameters:
ldapAdminDN - the ldapAdminDN to set

getLdapAdminPassword

public java.lang.String getLdapAdminPassword()
Description copied from interface: ImporterConfiguration
LDAP administrator password in plaintext

Specified by:
getLdapAdminPassword in interface ImporterConfiguration
Returns:
the ldapAdminPassword

setLdapAdminPassword

public void setLdapAdminPassword(java.lang.String ldapAdminPassword)
Parameters:
ldapAdminPassword - the ldapAdminPassword to set

getLdapGroupPeople

public java.lang.String getLdapGroupPeople()
Description copied from interface: ImporterConfiguration
DN of the LDAP group where the users are stored

Specified by:
getLdapGroupPeople in interface ImporterConfiguration
Returns:
the ldapGroupPeople

setLdapGroupPeople

public void setLdapGroupPeople(java.lang.String ldapGroupPeople)
Parameters:
ldapGroupPeople - the ldapGroupPeople to set

getLdapGroupJazzUsers

public java.lang.String getLdapGroupJazzUsers()
Description copied from interface: ImporterConfiguration
DN of the LDAP group mapped to JazzUsers group in RTC

Specified by:
getLdapGroupJazzUsers in interface ImporterConfiguration
Returns:
the ldapGroupJazzUsers

setLdapGroupJazzUsers

public void setLdapGroupJazzUsers(java.lang.String ldapGroupJazzUsers)
Parameters:
ldapGroupJazzUsers - the ldapGroupJazzUsers to set

getRtcAddress

public java.lang.String getRtcAddress()
Description copied from interface: ImporterConfiguration
RTC server URL, for example https://localhost:9443/jazz

Specified by:
getRtcAddress in interface ImporterConfiguration
Returns:
the rtcAddress

setRtcAddress

public void setRtcAddress(java.lang.String rtcAddress)
Parameters:
rtcAddress - the rtcAddress to set

getRtcAdminUser

public java.lang.String getRtcAdminUser()
Description copied from interface: ImporterConfiguration
RTC administrator name. User needs to be in the JazzAdmins group to be allowed to do all the operations

Specified by:
getRtcAdminUser in interface ImporterConfiguration
Returns:
the rtcAdminUser

setRtcAdminUser

public void setRtcAdminUser(java.lang.String rtcAdminUser)
Parameters:
rtcAdminUser - the rtcAdminUser to set

getRtcAdminPassword

public java.lang.String getRtcAdminPassword()
Description copied from interface: ImporterConfiguration
RTC administrator password (plaintext)

Specified by:
getRtcAdminPassword in interface ImporterConfiguration
Returns:
the rtcAdminPassword

setRtcAdminPassword

public void setRtcAdminPassword(java.lang.String rtcAdminPassword)
Parameters:
rtcAdminPassword - the rtcAdminPassword to set

getSmtpHost

public java.lang.String getSmtpHost()
Description copied from interface: ImporterConfiguration
SMTP host used for email announcements

Specified by:
getSmtpHost in interface ImporterConfiguration
Returns:
the smtpHost

setSmtpHost

public void setSmtpHost(java.lang.String smtpHost)
Parameters:
smtpHost - the smtpHost to set

getSmtpPort

public int getSmtpPort()
Description copied from interface: ImporterConfiguration
STMP port

Specified by:
getSmtpPort in interface ImporterConfiguration
Returns:
the smtpPort

setSmtpPort

public void setSmtpPort(int smtpPort)
Parameters:
smtpPort - the smtpPort to set

getSmtpUser

public java.lang.String getSmtpUser()
Description copied from interface: ImporterConfiguration
SMTP Auth username. Authentication not used if empty

Specified by:
getSmtpUser in interface ImporterConfiguration
Returns:
the smtpUser

setSmtpUser

public void setSmtpUser(java.lang.String smtpUser)
Parameters:
smtpUser - the smtpUser to set

getSmtpPassword

public java.lang.String getSmtpPassword()
Description copied from interface: ImporterConfiguration
STMP Auth password

Specified by:
getSmtpPassword in interface ImporterConfiguration
Returns:
the smtpPassword

setSmtpPassword

public void setSmtpPassword(java.lang.String smtpPassword)
Parameters:
smtpPassword - the smtpPassword to set

getSmtpTls

public boolean getSmtpTls()
Description copied from interface: ImporterConfiguration
Whether to use TLS or not

Specified by:
getSmtpTls in interface ImporterConfiguration
Returns:
the smtpTls

setSmtpTls

public void setSmtpTls(boolean smtpTls)
Parameters:
smtpTls - the smtpTls to set

getEmailFromName

public java.lang.String getEmailFromName()
Description copied from interface: ImporterConfiguration
Name from which the emails are sent

Specified by:
getEmailFromName in interface ImporterConfiguration
Returns:
the emailFromName

setEmailFromName

public void setEmailFromName(java.lang.String emailFromName)
Parameters:
emailFromName - the emailFromName to set

getEmailFromAddress

public java.lang.String getEmailFromAddress()
Description copied from interface: ImporterConfiguration
Email address from which the emails are sent

Specified by:
getEmailFromAddress in interface ImporterConfiguration
Returns:
the emailFromAddress

setEmailFromAddress

public void setEmailFromAddress(java.lang.String emailFromAddress)
Parameters:
emailFromAddress - the emailFromAddress to set