public abstract class AbstractUsersRepository extends Object implements UsersRepository, LogEnabled, Configurable
Constructor and Description |
---|
AbstractUsersRepository() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(String username,
String password)
Adds a user to the repository with the specified password
|
void |
configure(org.apache.commons.configuration.HierarchicalConfiguration configuration)
Configure the object.
|
protected abstract void |
doAddUser(String username,
String password)
Add the user with the given username and password
|
protected void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) |
protected org.slf4j.Logger |
getLogger() |
protected void |
isValidUsername(String username) |
void |
setDomainList(DomainList domainList) |
void |
setEnableVirtualHosting(boolean virtualHosting) |
void |
setLog(org.slf4j.Logger logger)
Sets the service log.
|
boolean |
supportVirtualHosting()
Return true if virtualHosting support is enabled, otherwise false
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, countUsers, getUserByName, list, removeUser, test, updateUser
protected org.slf4j.Logger getLogger()
public void setLog(org.slf4j.Logger logger)
LogEnabled
setLog
in interface LogEnabled
logger
- not nullLogEnabled.setLog(org.slf4j.Logger)
public void configure(org.apache.commons.configuration.HierarchicalConfiguration configuration) throws org.apache.commons.configuration.ConfigurationException
Configurable
configure
in interface Configurable
org.apache.commons.configuration.ConfigurationException
Configurable.configure(org.apache.commons.configuration.HierarchicalConfiguration)
protected void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationException
public void setEnableVirtualHosting(boolean virtualHosting)
public void setDomainList(DomainList domainList)
protected void isValidUsername(String username) throws UsersRepositoryException
UsersRepositoryException
public void addUser(String username, String password) throws UsersRepositoryException
UsersRepository
addUser
in interface UsersRepository
username
- the username of the user to be addedpassword
- the password of the user to addUsersRepositoryException
- if errorUsersRepository.addUser(java.lang.String,
java.lang.String)
public boolean supportVirtualHosting() throws UsersRepositoryException
UsersRepository
supportVirtualHosting
in interface UsersRepository
UsersRepositoryException
UsersRepository.supportVirtualHosting()
protected abstract void doAddUser(String username, String password) throws UsersRepositoryException
username
- password
- UsersRepositoryException
- If an error occurredCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.