
public static class UserManager.DummyUserDatabase extends AbstractUserDatabase
log, SHA_PREFIX, SSHA_PREFIX| Constructor and Description |
|---|
DummyUserDatabase() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
find, generateUid, getHash, getOldHash, getPrincipals, newProfile, parseLong, validatePasswordpublic DummyUserDatabase()
public void commit() throws WikiSecurityException
commit in interface UserDatabasecommit in class AbstractUserDatabaseWikiSecurityException - never...public void deleteByLoginName(String loginName) throws WikiSecurityException
loginName - the login name to deleteWikiSecurityException - never...public UserProfile findByEmail(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByEmail in interface UserDatabasefindByEmail in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - never...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 - never...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 - never...UserDatabase.findByLoginName(java.lang.String)public UserProfile findByUid(String uid) throws NoSuchPrincipalException
NoSuchPrincipalException.uid - the unique identifier to search forNoSuchPrincipalException - never...public UserProfile findByWikiName(String index) throws NoSuchPrincipalException
NoSuchPrincipalException.findByWikiName in interface UserDatabasefindByWikiName in class AbstractUserDatabaseindex - the name to search forNoSuchPrincipalException - 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 UserDatabaseinitialize in class AbstractUserDatabaseengine - the wiki engineprops - the properties used to initialize the wiki engineNoRequiredPropertyException - 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 nameDuplicateUserException - never...WikiSecurityException - never...public void save(UserProfile profile) throws WikiSecurityException
save in interface UserDatabasesave in class AbstractUserDatabaseprofile - the user profileWikiSecurityException - never...UserDatabase.save(org.apache.wiki.auth.user.UserProfile)Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.