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, validatePassword
public DummyUserDatabase()
public void deleteByLoginName(String loginName)
loginName
- the login name to deletepublic UserProfile findByEmail(String index) throws NoSuchPrincipalException
NoSuchPrincipalException
.findByEmail
in interface UserDatabase
findByEmail
in class AbstractUserDatabase
index
- the name to search forNoSuchPrincipalException
- always...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 forNoSuchPrincipalException
- always...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 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 UserDatabase
findByWikiName
in class AbstractUserDatabase
index
- the name to search forNoSuchPrincipalException
- always...UserDatabase.findByWikiName(java.lang.String)
public Principal[] getWikiNames()
public void initialize(WikiEngine engine, Properties props)
initialize
in interface UserDatabase
initialize
in class AbstractUserDatabase
engine
- 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 UserDatabase
save
in class AbstractUserDatabase
profile
- the user profileUserDatabase.save(org.apache.wiki.auth.user.UserProfile)
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.