public interface Account extends AttributeHolder
Modifier and Type | Method and Description |
---|---|
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.
|
getAttribute, getAttribute, getAttributes, getAttributes, getAttributesByScope, getAttributeValue, getAttributeValue, onChangeAttribute, onRemoveAttribute, removeAttribute, removeAttribute, setAttribute
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 moderatorDatasourceException
- 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(); }