pl.mn.communicator
Interface IRegistrationService

All Known Implementing Classes:
DefaultRegistrationService

public interface IRegistrationService

Created on 2004-11-27

Version:
$Id: IRegistrationService.java,v 1.1 2005/11/05 23:34:52 winnetou25 Exp $
Author:
Mateusz Szczap

Method Summary
 void changePassword(int uin, java.lang.String email, java.lang.String oldPassword, java.lang.String newPassword, java.lang.String tokenID, java.lang.String tokenVal)
          This method allows to change password on Gadu-Gadu account.
 GGToken getRegistrationToken()
           
 int registerAccount(java.lang.String email, java.lang.String password, java.lang.String tokenID, java.lang.String tokenVal)
          Use this method if you want to create a new Gadu-Gadu account.
 void sendPassword(int uin, java.lang.String email, java.lang.String tokenID, java.lang.String tokenVal)
          Sends user's current password to user's mailbox.
 void unregisterAccount(int uin, java.lang.String password, java.lang.String tokenID, java.lang.String tokenVal)
          Use this method if you want to delete your current account from Gadu-Gadu server.
 

Method Detail

getRegistrationToken

GGToken getRegistrationToken()
                             throws GGException
Throws:
GGException

changePassword

void changePassword(int uin,
                    java.lang.String email,
                    java.lang.String oldPassword,
                    java.lang.String newPassword,
                    java.lang.String tokenID,
                    java.lang.String tokenVal)
                    throws GGException
This method allows to change password on Gadu-Gadu account.

Throws:
GGException

registerAccount

int registerAccount(java.lang.String email,
                    java.lang.String password,
                    java.lang.String tokenID,
                    java.lang.String tokenVal)
                    throws GGException
Use this method if you want to create a new Gadu-Gadu account.

Parameters:
email - e-mail address that is associated with the new account.
password - Password to access the new account.
tokenID - the id of the token
tokenVal - the value of the token
Returns:
uin of new Gadu-Gadu account.
Throws:
GGException - if error occurs while registering new Gadu-Gadu account.
GGException

unregisterAccount

void unregisterAccount(int uin,
                       java.lang.String password,
                       java.lang.String tokenID,
                       java.lang.String tokenVal)
                       throws GGException
Use this method if you want to delete your current account from Gadu-Gadu server.

Parameters:
uin - Gadu-Gadu number to unregister.
password - the password that will be used together with uin in unregistration process.
tokenID - the id of the token
tokenVal - the value of the token
Throws:
GGException - if error occurs while unregistering Gadu-Gadu account.
GGException

sendPassword

void sendPassword(int uin,
                  java.lang.String email,
                  java.lang.String tokenID,
                  java.lang.String tokenVal)
                  throws GGException
Sends user's current password to user's mailbox.

Parameters:
uin - User's Gadu-Gadu number.
tokenID - the id of the token
tokenVal - the value of the token
Throws:
GGException


Copyright 2004-2004-2005 SourceForge.net. All Rights Reserved.