Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol
Class AccountInfoUtils

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AccountInfoUtils

public class AccountInfoUtils
extends Object

Utility class that would give to interested parties an easy access to some of most popular account details, like : first name, last name, birth date, image, etc.

Author:
Yana Stamcheva

Constructor Summary
AccountInfoUtils()
           
 
Method Summary
static String getAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the address of the account, to which the given accountInfoOpSet belongs.
static Calendar getBirthDate(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the birth date of the account, to which the given accountInfoOpSet belongs.
static String getDisplayName(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the display name of the account, to which the given accountInfoOpSet belongs.
static String getEmailAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the email address of the account, to which the given accountInfoOpSet belongs.
static String getFirstName(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the first name of the account, to which the given accountInfoOpSet belongs.
static String getGender(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the gender of the account, to which the given accountInfoOpSet belongs.
static byte[] getImage(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the image of the account, to which the given accountInfoOpSet belongs.
static String getLastName(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the last name of the account, to which the given accountInfoOpSet belongs.
static String getWorkAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
          Returns the work address of the account, to which the given accountInfoOpSet belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountInfoUtils

public AccountInfoUtils()
Method Detail

getFirstName

public static String getFirstName(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the first name of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the first name of the account, to which the given accountInfoOpSet belongs.

getLastName

public static String getLastName(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the last name of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the last name of the account, to which the given accountInfoOpSet belongs.

getDisplayName

public static String getDisplayName(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the display name of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the display name of the account, to which the given accountInfoOpSet belongs.

getImage

public static byte[] getImage(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the image of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the image of the account, to which the given accountInfoOpSet belongs.

getBirthDate

public static Calendar getBirthDate(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the birth date of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the birth date of the account, to which the given accountInfoOpSet belongs.

getGender

public static String getGender(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the gender of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the gender of the account, to which the given accountInfoOpSet belongs.

getAddress

public static String getAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the address of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the address of the account, to which the given accountInfoOpSet belongs.

getWorkAddress

public static String getWorkAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the work address of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the work address of the account, to which the given accountInfoOpSet belongs.

getEmailAddress

public static String getEmailAddress(OperationSetServerStoredAccountInfo accountInfoOpSet)
Returns the email address of the account, to which the given accountInfoOpSet belongs.

Parameters:
accountInfoOpSet - The account info operation set corresponding to the searched account.
Returns:
the email address of the account, to which the given accountInfoOpSet belongs.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.