|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Presence
A Presence encapsulates information relating to the owning user such as login time, status and last update time.
| Field Summary | |
|---|---|
static int |
STATUS_AWAY
|
static int |
STATUS_IDLE
|
static int |
STATUS_INVISIBLE
|
static int |
STATUS_ONLINE
|
| Method Summary | |
|---|---|
String |
getID()
Returns the unique ID for this status. |
String |
getIPAddress()
Returns the IP address of the user. |
Date |
getLastUpdateTime()
Return the time when the presence was last updated (when the user last visited). |
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. |
String |
getUsername()
Returns the unique username for this status. |
void |
setLastUpdateTime(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. |
| Field Detail |
|---|
static final int STATUS_ONLINE
static final int STATUS_IDLE
static final int STATUS_INVISIBLE
static final int STATUS_AWAY
| Method Detail |
|---|
String getID()
String getUsername()
User getUser()
String getIPAddress()
Date getLoginTime()
Date getLastUpdateTime()
void setLastUpdateTime(Date time)
throws UnauthorizedException
time - the time of the last update.
UnauthorizedException - if not the user or an admin.
void setLastUpdateTime(long time)
throws UnauthorizedException
time - the time of the last update (in milliseconds).
UnauthorizedException - if not the user or an admin.int getStatus()
void setStatus(int status)
throws UnauthorizedException
status - the status of the user.
UnauthorizedException
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||