|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserMetaDataRespository
Contains flexible meta-data related to users. Values should be serializable to allow easy remote transport and persistence. Keys are strings.
Note conventionally keys should be URIs
and so naturally namespaced. In particular, all keys starting with
http://james.apache.org/
are reserved for
use by JAMES.
Field Summary | |
---|---|
static java.lang.String |
ROLE
|
Method Summary | |
---|---|
void |
clear(java.lang.String username)
Clears all attributes for the given user. |
java.io.Serializable |
getAttribute(java.lang.String username,
java.lang.String key)
Gets the attribute for the given key. |
void |
setAttribute(java.lang.String username,
java.io.Serializable value,
java.lang.String key)
Sets the attribute keyed to the given value. |
Field Detail |
---|
static final java.lang.String ROLE
Method Detail |
---|
java.io.Serializable getAttribute(java.lang.String username, java.lang.String key) throws UserRepositoryException
username
- the name of the user, not nullkey
- conventionally an URI, not null
UserRepositoryException
void setAttribute(java.lang.String username, java.io.Serializable value, java.lang.String key) throws UserRepositoryException
username
- the name of the user which meta-data is to be set, not nullvalue
- Serializable
value, possibly nullkey
- conventionally an URI, not null
UserRepositoryException
void clear(java.lang.String username) throws UserRepositoryException
username
- the name of the user who meta data is to be cleared, not null
UserRepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |