|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Account
An Account represents a persistent user in the Union Server.
Method Summary | |
---|---|
void |
dispose()
Disposes of a reference count for the Account in the cache. |
Client |
getClient()
Returns the currently connected client for this account if the account is logged in. |
java.lang.String |
getPassword()
Return the password for the account. |
java.lang.String |
getUserID()
Return the userID for the account. |
void |
initModerator(boolean isModerator)
Initializes the Account as a moderator. |
boolean |
isModerator()
Returns true if the account has moderator privileges. |
void |
setModerator(boolean isModerator)
Sets the account moderator status. |
Methods inherited from interface net.user1.union.core.attribute.AttributeHolder |
---|
getAttribute, getAttribute, getAttributes, getAttributes, getAttributesByScope, getAttributeValue, getAttributeValue, onChangeAttribute, onRemoveAttribute, removeAttribute, removeAttribute, setAttribute |
Method Detail |
---|
java.lang.String getUserID()
java.lang.String getPassword()
Client getClient()
boolean isModerator()
void setModerator(boolean isModerator) throws DatasourceException
isModerator
- - true if the account should be a moderator
DatasourceException
- if the Datasource could not persist the new
moderator status.void initModerator(boolean isModerator)
isModerator
- - true if the account should be a moderatorvoid dispose()
Acount account = server.getAccount("userID"); try { // work with the account } finally { account.dispose(); }
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |