|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.auth.user.AbstractUserDatabase org.apache.wiki.auth.UserManager.DummyUserDatabase
public static class UserManager.DummyUserDatabase
This is a database that gets used if nothing else is available. It does nothing of note - it just mostly throws NoSuchPrincipalExceptions if someone tries to log in.
Field Summary |
---|
Fields inherited from class org.apache.wiki.auth.user.AbstractUserDatabase |
---|
log, SHA_PREFIX, SSHA_PREFIX |
Constructor Summary | |
---|---|
UserManager.DummyUserDatabase()
|
Method Summary | |
---|---|
void |
commit()
No-op. |
void |
deleteByLoginName(String loginName)
No-op. |
UserProfile |
findByEmail(String index)
No-op; always throws NoSuchPrincipalException . |
UserProfile |
findByFullName(String index)
No-op; always throws NoSuchPrincipalException . |
UserProfile |
findByLoginName(String index)
No-op; always throws NoSuchPrincipalException . |
UserProfile |
findByUid(String uid)
No-op; always throws NoSuchPrincipalException . |
UserProfile |
findByWikiName(String index)
No-op; always throws NoSuchPrincipalException . |
Principal[] |
getWikiNames()
No-op. |
void |
initialize(WikiEngine engine,
Properties props)
No-op. |
void |
rename(String loginName,
String newName)
No-op; always throws NoSuchPrincipalException . |
void |
save(UserProfile profile)
No-op. |
Methods inherited from class org.apache.wiki.auth.user.AbstractUserDatabase |
---|
find, generateUid, getHash, getOldHash, getPrincipals, newProfile, parseLong, validatePassword |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserManager.DummyUserDatabase()
Method Detail |
---|
public void commit() throws WikiSecurityException
commit
in interface UserDatabase
commit
in class AbstractUserDatabase
WikiSecurityException
- never...public void deleteByLoginName(String loginName) throws WikiSecurityException
loginName
- the login name to delete
WikiSecurityException
- never...public UserProfile findByEmail(String index) throws NoSuchPrincipalException
NoSuchPrincipalException
.
findByEmail
in interface UserDatabase
findByEmail
in class AbstractUserDatabase
index
- the name to search for
NoSuchPrincipalException
- never...UserDatabase.findByEmail(java.lang.String)
public UserProfile findByFullName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException
.
findByFullName
in interface UserDatabase
findByFullName
in class AbstractUserDatabase
index
- the name to search for
NoSuchPrincipalException
- never...UserDatabase.findByFullName(java.lang.String)
public UserProfile findByLoginName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException
.
findByLoginName
in interface UserDatabase
findByLoginName
in class AbstractUserDatabase
index
- the name to search for
NoSuchPrincipalException
- never...UserDatabase.findByLoginName(java.lang.String)
public UserProfile findByUid(String uid) throws NoSuchPrincipalException
NoSuchPrincipalException
.
uid
- the unique identifier to search for
NoSuchPrincipalException
- never...public UserProfile findByWikiName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException
.
findByWikiName
in interface UserDatabase
findByWikiName
in class AbstractUserDatabase
index
- the name to search for
NoSuchPrincipalException
- never...UserDatabase.findByWikiName(java.lang.String)
public Principal[] getWikiNames() throws WikiSecurityException
WikiSecurityException
- never...public void initialize(WikiEngine engine, Properties props) throws NoRequiredPropertyException
initialize
in interface UserDatabase
initialize
in class AbstractUserDatabase
engine
- the wiki engineprops
- the properties used to initialize the wiki engine
NoRequiredPropertyException
- never...UserDatabase.initialize(org.apache.wiki.WikiEngine, java.util.Properties)
public void rename(String loginName, String newName) throws DuplicateUserException, WikiSecurityException
NoSuchPrincipalException
.
loginName
- the login namenewName
- the proposed new login name
DuplicateUserException
- never...
WikiSecurityException
- never...public void save(UserProfile profile) throws WikiSecurityException
save
in interface UserDatabase
save
in class AbstractUserDatabase
profile
- the user profile
WikiSecurityException
- never...UserDatabase.save(org.apache.wiki.auth.user.UserProfile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |