pl.mn.communicator
Class DefaultRegistrationService

java.lang.Object
  extended by pl.mn.communicator.DefaultRegistrationService
All Implemented Interfaces:
IRegistrationService

public class DefaultRegistrationService
extends java.lang.Object
implements IRegistrationService

Created on 2004-11-29

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

Constructor Summary
DefaultRegistrationService(Session session)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRegistrationService

public DefaultRegistrationService(Session session)
Method Detail

getRegistrationToken

public GGToken getRegistrationToken()
                             throws GGException
Specified by:
getRegistrationToken in interface IRegistrationService
Throws:
GGException
See Also:
pl.mn.communicator.IRegistrationService#getRegToken()

changePassword

public 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
Description copied from interface: IRegistrationService
This method allows to change password on Gadu-Gadu account.

Specified by:
changePassword in interface IRegistrationService
Throws:
GGException
See Also:
IRegistrationService.changePassword(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

registerAccount

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

Specified by:
registerAccount in interface IRegistrationService
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
See Also:
pl.mn.communicator.IRegistrationService#registerAccount(java.lang.String email, java.lang.String password, int qa, String answer)

unregisterAccount

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

Specified by:
unregisterAccount in interface IRegistrationService
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
See Also:
pl.mn.communicator.IRegistrationService#unregisterAccount(int, java.lang.String)

sendPassword

public void sendPassword(int uin,
                         java.lang.String email,
                         java.lang.String tokenID,
                         java.lang.String tokenVal)
                  throws GGException
Description copied from interface: IRegistrationService
Sends user's current password to user's mailbox.

Specified by:
sendPassword in interface IRegistrationService
Parameters:
uin - User's Gadu-Gadu number.
tokenID - the id of the token
tokenVal - the value of the token
Throws:
GGException
See Also:
pl.mn.communicator.IRegistrationService#remindAndSendPassword(int)


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