public class RosterElement extends Object implements RosterElementIfc
| Modifier and Type | Field and Description |
|---|---|
protected static long |
INITIAL_LAST_SEEN_VAL
Field description
|
| Constructor and Description |
|---|
RosterElement(tigase.xml.Element roster_el,
XMPPResourceConnection session)
Creates a new
RosterElement instance. |
RosterElement(tigase.xmpp.JID jid,
String name,
String[] groups,
XMPPResourceConnection session)
Constructs ...
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroups(String[] groups)
Method description
|
double |
getActivity() |
String[] |
getGroups()
Method description
|
tigase.xmpp.JID |
getJid()
Method description
|
long |
getLastSeen() |
String |
getName()
Method description
|
String |
getOtherData()
Method description
|
tigase.xml.Element |
getRosterElement()
Method description
|
tigase.xml.Element |
getRosterItem()
Method description
|
RosterAbstract.SubscriptionType |
getSubscription()
Method description
|
double |
getWeight() |
boolean |
isModified()
Method description
|
boolean |
isOnline()
Method description
|
boolean |
isPersistent() |
boolean |
isPresence_sent()
Method description
|
void |
setActivity(double activity) |
void |
setGroups(String[] groups)
Method description
|
void |
setLastSeen(long lastSeen) |
void |
setName(String name)
Method description
|
void |
setOnline(String resource,
boolean online)
Method description
|
void |
setOtherData(String other_data)
Method description
|
void |
setPersistent(boolean persistent)
Method description
|
void |
setPresence_sent(boolean presence_sent)
Method description
|
void |
setSubscription(RosterAbstract.SubscriptionType subscription)
Method description
|
void |
setWeight(double weight) |
String |
toString()
Method description
|
protected static final long INITIAL_LAST_SEEN_VAL
public RosterElement(tigase.xml.Element roster_el,
XMPPResourceConnection session)
throws tigase.util.TigaseStringprepException
RosterElement instance.roster_el - session - tigase.util.TigaseStringprepExceptionpublic RosterElement(tigase.xmpp.JID jid,
String name,
String[] groups,
XMPPResourceConnection session)
jid - name - groups - session - public void addGroups(String[] groups)
groups - public String[] getGroups()
public tigase.xmpp.JID getJid()
public String getName()
public String getOtherData()
public tigase.xml.Element getRosterElement()
public tigase.xml.Element getRosterItem()
public RosterAbstract.SubscriptionType getSubscription()
public boolean isModified()
public boolean isOnline()
public boolean isPresence_sent()
public final void setGroups(String[] groups)
groups - public final void setName(String name)
name - public void setOnline(String resource, boolean online)
resource - online - public void setOtherData(String other_data)
other_data - public void setPresence_sent(boolean presence_sent)
presence_sent - public void setSubscription(RosterAbstract.SubscriptionType subscription)
subscription - public boolean isPersistent()
public void setPersistent(boolean persistent)
persistent - public double getActivity()
public void setActivity(double activity)
activity - the activity to setpublic double getWeight()
public void setWeight(double weight)
weight - the weight to setpublic long getLastSeen()
public void setLastSeen(long lastSeen)
lastSeen - the lastSeen to setCopyright © 2014 "Tigase, Inc.". All rights reserved.