public static class UserManager.DummyUserDatabase extends AbstractUserDatabase
log, SHA_PREFIX, SSHA_PREFIX| Constructor and Description |
|---|
DummyUserDatabase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
find, generateUid, getHash, getPrincipals, newProfile, parseLong, validatePasswordpublic DummyUserDatabase()
public void deleteByLoginName(String loginName)
loginName - the login name to deletepublic UserProfile findByEmail(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByEmail in interface UserDatabasefindByEmail in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - always...UserDatabase.findByEmail(java.lang.String)public UserProfile findByFullName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByFullName in interface UserDatabasefindByFullName in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - always...UserDatabase.findByFullName(java.lang.String)public UserProfile findByLoginName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByLoginName in interface UserDatabasefindByLoginName in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - always...UserDatabase.findByLoginName(java.lang.String)public UserProfile findByUid(String uid) throws NoSuchPrincipalException
NoSuchPrincipalException.uid - the unique identifier to search forNoSuchPrincipalException - always...public UserProfile findByWikiName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByWikiName in interface UserDatabasefindByWikiName in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - always...UserDatabase.findByWikiName(java.lang.String)public Principal[] getWikiNames()
public void initialize(WikiEngine engine, Properties props)
initialize in interface UserDatabaseinitialize in class AbstractUserDatabaseengine - the wiki engineprops - the properties used to initialize the wiki engineUserDatabase.initialize(org.apache.wiki.WikiEngine, java.util.Properties)public void rename(String loginName, String newName) throws NoSuchPrincipalException
NoSuchPrincipalException.loginName - the login namenewName - the proposed new login nameNoSuchPrincipalException - always...public void save(UserProfile profile)
save in interface UserDatabasesave in class AbstractUserDatabaseprofile - the user profileUserDatabase.save(org.apache.wiki.auth.user.UserProfile)Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.