public class JDBCUserPropertyProvider extends Object implements UserPropertyProvider
UserNotFoundException.
To enable this provider, set the following in the system properties:
| Constructor and Description |
|---|
JDBCUserPropertyProvider()
Constructs a new JDBC user property provider.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deleteProperty(String username,
String propName)
Removes one particular property for a particular user.
|
void |
insertProperty(String username,
String propName,
String propValue)
Adds a property for an user.
|
boolean |
isReadOnly()
Returns true if this UserPropertyProvider is read-only.
|
Map<String,String> |
loadProperties(String username)
Retrieves all properties for a particular user.
|
String |
loadProperty(String username,
String propName)
Retrieves a property value for a user.
|
void |
updateProperty(String username,
String propName,
String propValue)
Changes a property value for an user.
|
public JDBCUserPropertyProvider()
public Map<String,String> loadProperties(String username) throws UnsupportedOperationException
UserPropertyProviderloadProperties in interface UserPropertyProviderusername - The identifier of the user (cannot be null or empty).UnsupportedOperationExceptionpublic String loadProperty(String username, String propName)
UserPropertyProviderloadProperty in interface UserPropertyProviderusername - The identifier of the user (cannot be null or empty).propName - The property name (cannot be null or empty).public void insertProperty(String username, String propName, String propValue) throws UnsupportedOperationException
UserPropertyProviderinsertProperty in interface UserPropertyProviderusername - The identifier of the user (cannot be null or empty).propName - The property name (cannot be null or empty).propValue - The property value (cannot be null).UnsupportedOperationExceptionpublic void updateProperty(String username, String propName, String propValue) throws UnsupportedOperationException
UserPropertyProviderupdateProperty in interface UserPropertyProviderusername - The identifier of the user (cannot be null or empty).propName - The property name (cannot be null or empty).propValue - The property value (cannot be null).UnsupportedOperationExceptionpublic void deleteProperty(String username, String propName) throws UnsupportedOperationException
UserPropertyProviderdeleteProperty in interface UserPropertyProviderusername - The identifier of the user (cannot be null or empty).propName - The property name (cannot be null or empty).UnsupportedOperationExceptionpublic boolean isReadOnly()
UserPropertyProviderUnsupportedOperationException.isReadOnly in interface UserPropertyProviderCopyright © 2003-2008 Jive Software.