|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.muni.fi.rtc.teacherWorkbench.importer.Utils
public class Utils
Utility static methods used for methods used by different classes
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static ImporterConfiguration |
configurationFromProperties(java.lang.String confPath)
Reads configuration from .properties file and returns them as the ImporterConfiguration. |
static com.novell.ldap.LDAPConnection |
establishLdapConnection(ImporterConfiguration configuration)
Returns LDAP connection. |
static com.ibm.team.repository.client.ITeamRepository |
establishRepositoryConnection(ImporterConfiguration configuration)
Connects to RTC repository (if not already connected) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static com.novell.ldap.LDAPConnection establishLdapConnection(ImporterConfiguration configuration) throws ImporterException
ImporterException
public static com.ibm.team.repository.client.ITeamRepository establishRepositoryConnection(ImporterConfiguration configuration) throws ImporterException
ImporterException
- Wraps connection exceptionspublic static ImporterConfiguration configurationFromProperties(java.lang.String confPath) throws org.apache.commons.configuration.ConfigurationException
#### LDAP #### ldapServer = localhost ldapPort = 10389 ldapAdminDN = uid=admin\,ou=system ldapAdminPassword = secret ldapBaseDN = o=localhost ldapGroupJazzUsers = cn=JazzUsers\,ou=JazzGroups\,o=localhost ldapGroupPeople = ou=people\,o=localhost #### SMTP #### smtpHost = localhost emailFromAddress = root@localhost # optional -- dafault "RTC Administrator" emailFromName = RTC Administrator # optional -- default 25 smtpPort = 25 # optional -- default false smtpTls = false # optional -- default empty smtpUser = # optional -- default empty smtpPassword = ## Example SMTP for GMAIL #smtpHost = smtp.gmail.com #smtpTls = true # optional -- default false #smtpPort = 587 #smtpUser = honza.stastny@gmail.com #smtpPassword = password #emailFromAddress = honza.stastny@gmail.com #### RTC Repository #### rtcAddress = https://localhost:9443/jazz rtcAdminUser = jstastny rtcAdminPassword = jstastny
confPath
- Path to the configuration file
org.apache.commons.configuration.ConfigurationException
- If the configuration is invalid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |