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
UserPropertyProvider
loadProperties
in interface UserPropertyProvider
username
- The identifier of the user (cannot be null or empty).UnsupportedOperationException
public String loadProperty(String username, String propName)
UserPropertyProvider
loadProperty
in interface UserPropertyProvider
username
- 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
UserPropertyProvider
insertProperty
in interface UserPropertyProvider
username
- 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).UnsupportedOperationException
public void updateProperty(String username, String propName, String propValue) throws UnsupportedOperationException
UserPropertyProvider
updateProperty
in interface UserPropertyProvider
username
- 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).UnsupportedOperationException
public void deleteProperty(String username, String propName) throws UnsupportedOperationException
UserPropertyProvider
deleteProperty
in interface UserPropertyProvider
username
- The identifier of the user (cannot be null or empty).propName
- The property name (cannot be null or empty).UnsupportedOperationException
public boolean isReadOnly()
UserPropertyProvider
UnsupportedOperationException
.isReadOnly
in interface UserPropertyProvider
Copyright © 2003-2008 Jive Software.