|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.base.database.DbPresence
public class DbPresence
Database implementation of the Presence interface.
| Field Summary |
|---|
| Fields inherited from interface com.jivesoftware.base.Presence |
|---|
STATUS_AWAY, STATUS_IDLE, STATUS_INVISIBLE, STATUS_ONLINE |
| Constructor Summary | |
|---|---|
DbPresence(User user,
java.lang.String uid,
java.lang.String IP)
|
|
| Method Summary | |
|---|---|
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
java.lang.String |
getID()
Returns the unique ID for this status. |
java.lang.String |
getIPAddress()
Returns the IP address of the user. |
java.util.Date |
getLastUpdateTime()
Return the time when the presence was last updated (when the user last visited). |
java.util.Date |
getLoginTime()
Return the time when the presence was created. |
int |
getStatus()
Returns the status of the presence. |
User |
getUser()
Return the user owning the presence. |
java.lang.String |
getUsername()
Returns the unique username for this status. |
void |
setLastUpdateTime(java.util.Date time)
Set the time when the presence was last updated (when the user last visited). |
void |
setLastUpdateTime(long time)
Sets the time when the presence was last updated (when the user last visited). |
void |
setStatus(int status)
Sets the status of the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbPresence(User user,
java.lang.String uid,
java.lang.String IP)
| Method Detail |
|---|
public java.lang.String getID()
Presence
getID in interface Presencepublic java.lang.String getUsername()
Presence
getUsername in interface Presencepublic User getUser()
Presence
getUser in interface Presencepublic java.lang.String getIPAddress()
Presence
getIPAddress in interface Presencepublic java.util.Date getLoginTime()
Presence
getLoginTime in interface Presencepublic java.util.Date getLastUpdateTime()
Presence
getLastUpdateTime in interface Presence
public void setLastUpdateTime(java.util.Date time)
throws UnauthorizedException
Presence
setLastUpdateTime in interface Presencetime - the time of the last update.
UnauthorizedException - if not the user or an admin.
public void setLastUpdateTime(long time)
throws UnauthorizedException
Presence
setLastUpdateTime in interface Presencetime - the time of the last update (in milliseconds).
UnauthorizedException - if not the user or an admin.public int getStatus()
Presence
getStatus in interface Presence
public void setStatus(int status)
throws UnauthorizedException
Presence
setStatus in interface Presencestatus - the status of the user.
UnauthorizedExceptionpublic int getCachedSize()
Cacheable
getCachedSize in interface Cacheable
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||