|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.UserBase
public class UserBase
This class stands for the set of registered users for a particular AceWiki instance.
Method Summary | |
---|---|
User |
autoLogin(java.lang.String name,
java.lang.String clientToken)
Tries to do an auto-login. |
boolean |
containsUser(java.lang.String name)
Checks whether a user with the respective name exists. |
Ontology |
getOntology()
Returns the ontology object. |
AceWikiStorage |
getStorage()
Returns the storage object. |
User |
getUser(long id)
Returns the user with the given id, or null if no user with this id exists. |
int |
getUserCount()
Returns the number of registered users. |
User |
login(java.lang.String name,
java.lang.String password)
Tries to login a user. |
User |
register(java.lang.String name,
java.lang.String email,
java.lang.String password)
Registers a new user. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean containsUser(java.lang.String name)
name
- The user name.
public User getUser(long id)
id
- The user id.
public int getUserCount()
public User login(java.lang.String name, java.lang.String password)
name
- The name of the user.password
- The password in plain text.
public User autoLogin(java.lang.String name, java.lang.String clientToken)
name
- The name of the user.clientToken
- The auto-login-token from the client browser.
public User register(java.lang.String name, java.lang.String email, java.lang.String password)
name
- The name of the new user.email
- The email address of the new user.password
- The password for the new user.
public Ontology getOntology()
public AceWikiStorage getStorage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |