To get user Nikename in Spark

hi there,

**
**

Class: org.jivesoftware.MainWindow

method: MainWindow

Line: setTitle(title + " - " + SparkManager.getSessionManager().getUsername());

This line to get userID such like ‘10001’, then How to get user Nikename there?

**
**

**
**

Thanks

does anybody can help me???

You can use this function:

VCard vCard = SparkManager.getVCardManager().getVCard();

vCard.getNickName()

But you must set the title from outside the MainWindow class.

CREATE TABLE ofUser (

username VARCHAR2(64) NOT NULL,

plainPassword VARCHAR2(32),

encryptedPassword VARCHAR2(255),

**name **VARCHAR2(100),

email VARCHAR2(100),

creationDate CHAR(15) NOT NULL,

modificationDate CHAR(15) NOT NULL,

CONSTRAINT ofUser_pk PRIMARY KEY (username)

);

How can get that name in table of ofUser ?

Look at table ofvcard.

Thanks for your reply.

CREATE TABLE ofVCard (

username VARCHAR2(64) NOT NULL,

vcard LONG NOT NULL,

CONSTRAINT ofVCard_pk PRIMARY KEY (username)

);

**
**

But my user and group information was create by program not SPARK, I did not insert any data to table of ofVCard, so ofVCard was empty, And my question is how to get NAME in table Ofuser?

anyone can help will be great appreciate