| java.lang.Object com.ivata.groupware.business.mail.server.JavaMailServer com.ivata.groupware.business.mail.server.HMailServer
Method Summary | |
public void | addUser(SecuritySession securitySession, String userNameParam, String fullNameParam) | public boolean | checkPassword(SecuritySession securitySession, String userNameParam, String passwordParam) Refer to
.
Parameters: securitySession - Parameters: userNameParam - Parameters: passwordParam - throws: SystemException - If the password doesn't match, or there isa technical problem communicating with hMailServer. | public static IDispatch | getDomains() Get all the domains of the mail server. | public String | getSystemUserName(SecuritySession securitySession, String userNameParam) On hMailServer, the system user name is the user
followed by the 'at sign' and the domain name. | public List | getUserAliases(SecuritySession securitySession, String userNameParam) | public String | getUserForwarding(SecuritySession securitySession, String userNameParam) Parameters: securitySession - Parameters: userNameParam - Never returns. | public String | getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserNameParam) Returns the username, the part before the 'at sign' in the system
user name. | public String | getVacationMessage(SecuritySession securitySession, String userNameParam) | public boolean | isUser(SecuritySession securitySession, String userNameParam) | public static void | main(String[] args) Simple test routine, to check this class is working on
Windows. | public void | removeList(SecuritySession securitySession, String nameParam) | public void | removeUser(SecuritySession securitySession, String userNameParam) | public void | setList(SecuritySession securitySession, String nameParam, Collection usersParam) | public void | setPassword(SecuritySession securitySession, String userNameParam, String passwordParam) | public void | setUserAliases(SecuritySession securitySession, String userNameParam, Collection aliasesParam) | public void | setUserForwarding(SecuritySession securitySession, String userNameParam, String addressParam) | public void | setVacationMessage(SecuritySession securitySession, String userNameParam, String messageParam) |
HMailServer | public HMailServer(String domainNameParam, AddressBook addressBook, Settings settings)(Code) | | Constructor. Create a connection to hMailServer.
Parameters: domainNameParam - hMailServer domain name. Parameters: addressBook - Parameters: settings - |
addUser | public void addUser(SecuritySession securitySession, String userNameParam, String fullNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Parameters: fullNameParam - throws: SystemException - If the user already exists. |
checkPassword | public boolean checkPassword(SecuritySession securitySession, String userNameParam, String passwordParam) throws SystemException(Code) | | Refer to
.
Parameters: securitySession - Parameters: userNameParam - Parameters: passwordParam - throws: SystemException - If the password doesn't match, or there isa technical problem communicating with hMailServer. |
getDomains | public static IDispatch getDomains() throws SystemException(Code) | | Get all the domains of the mail server.
Returns the mail server domains. throws: SystemException - If the domains cannot be retrieved for anyreason. |
getSystemUserName | public String getSystemUserName(SecuritySession securitySession, String userNameParam)(Code) | | On hMailServer, the system user name is the user
followed by the 'at sign' and the domain name.
Parameters: securitySession - Parameters: userNameParam - always returns userNameParam followed by the atsign and the domain name. |
getUserAliases | public List getUserAliases(SecuritySession securitySession, String userNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
getUserForwarding | public String getUserForwarding(SecuritySession securitySession, String userNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Never returns. This method has not been implemeneted and onlyever throws an exception. throws: SystemException - Always thrown as this method is not implementedfor hMailServer. |
getUserNameFromSystemUserName | public String getUserNameFromSystemUserName(SecuritySession securitySession, String systemUserNameParam)(Code) | | Returns the username, the part before the 'at sign' in the system
user name.
Parameters: securitySession - Parameters: systemUserNameParam - always returns systemUserNameParam before 'at sign'. |
getVacationMessage | public String getVacationMessage(SecuritySession securitySession, String userNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - The vacation string for this user. throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
isUser | public boolean isUser(SecuritySession securitySession, String userNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - true if the user exists. throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
main | public static void main(String[] args)(Code) | | Simple test routine, to check this class is working on
Windows.
Parameters: args - Program arguments - not used, in this program. |
removeList | public void removeList(SecuritySession securitySession, String nameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: nameParam - throws: SystemException - Always thrown as this method is not implementedfor hMailServer. |
removeUser | public void removeUser(SecuritySession securitySession, String userNameParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
setList | public void setList(SecuritySession securitySession, String nameParam, Collection usersParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: nameParam - Parameters: usersParam - throws: SystemException - Always thrown as this method is not implementedfor hMailServer. |
setPassword | public void setPassword(SecuritySession securitySession, String userNameParam, String passwordParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Parameters: passwordParam - throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
setUserAliases | public void setUserAliases(SecuritySession securitySession, String userNameParam, Collection aliasesParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Parameters: aliasesParam - throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
setUserForwarding | public void setUserForwarding(SecuritySession securitySession, String userNameParam, String addressParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Parameters: addressParam - throws: SystemException - Always thrown as this method is not implementedfor hMailServer. |
setVacationMessage | public void setVacationMessage(SecuritySession securitySession, String userNameParam, String messageParam) throws SystemException(Code) | | Parameters: securitySession - Parameters: userNameParam - Parameters: messageParam - throws: SystemException - If there is a technical problem or the domainaliases cannot be retrieved. |
|
|