|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The AccountManager encapsulates the OGo functionality to manage user accounts. The AccountManager is an Observer and listens to notifications of the Account objects it has generated to call the update functions on OGo. All the Account objects are unique for a specific open Connection.
Method Summary | |
void |
delete(Account account)
|
void |
deleteByLogin(java.lang.String login)
|
java.util.Iterator |
fetch(FetchSpecification spec)
Fetches all Accounts that match the FetchSpecification . |
java.util.Iterator |
fetchIds(FetchSpecification spec)
|
Account |
getById(java.lang.String Id)
|
Account |
getByLogin(java.lang.String login)
Returns the Account with the provided login name. |
Account |
getLoginAccount()
|
Account |
insert(java.lang.String login)
Creates a new Account and inserts in on the server. |
java.lang.String |
passwordForLogin(java.lang.String login)
Returns the Password for a specific Account. |
Methods inherited from interface java.util.Observer |
update |
Method Detail |
public java.util.Iterator fetchIds(FetchSpecification spec) throws OgoException, ConnectionException
spec
- a FetchSpecification object holding the query
OgoException
ConnectionException
public Account getById(java.lang.String Id) throws OgoException, ConnectionException
Id
- the String representation of the unique Id of this Account record;
OgoException
ConnectionException
public void deleteByLogin(java.lang.String login) throws OgoException, ConnectionException
OgoException
ConnectionException
public void delete(Account account) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.lang.String passwordForLogin(java.lang.String login) throws OgoException, ConnectionException
login
-
OgoException
ConnectionException
public Account getByLogin(java.lang.String login) throws OgoException, ConnectionException
OgoException
ConnectionException
public java.util.Iterator fetch(FetchSpecification spec) throws OgoException, ConnectionException
FetchSpecification
.
spec
- An FetchSpecification for selecting Accounts.
OgoException
ConnectionException
public Account insert(java.lang.String login) throws OgoException, ConnectionException
login
- the login name for the new Account, please refer to the OpenGroupware.org
documentation for the constraints imposed on these names.
OgoException
ConnectionException
public Account getLoginAccount() throws OgoException, ConnectionException
OgoException
ConnectionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |