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, waitcontains, countUsers, getUserByName, list, removeUser, test, updateUserprotected org.slf4j.Logger getLogger()
public void setLog(org.slf4j.Logger logger)
LogEnabledsetLog in interface LogEnabledlogger - not nullLogEnabled.setLog(org.slf4j.Logger)public void configure(org.apache.commons.configuration.HierarchicalConfiguration configuration)
throws org.apache.commons.configuration.ConfigurationException
Configurableconfigure in interface Configurableorg.apache.commons.configuration.ConfigurationExceptionConfigurable.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.ConfigurationExceptionpublic void setEnableVirtualHosting(boolean virtualHosting)
public void setDomainList(DomainList domainList)
protected void isValidUsername(String username) throws UsersRepositoryException
UsersRepositoryExceptionpublic void addUser(String username, String password) throws UsersRepositoryException
UsersRepositoryaddUser in interface UsersRepositoryusername - 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
UsersRepositorysupportVirtualHosting in interface UsersRepositoryUsersRepositoryExceptionUsersRepository.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.