You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/01/12 20:57:08 UTC
svn commit: r611469 -
/james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java
Author: rdonkin
Date: Sat Jan 12 11:57:08 2008
New Revision: 611469
URL: http://svn.apache.org/viewvc?rev=611469&view=rev
Log:
Should pass user name
Modified:
james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java
Modified: james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java
URL: http://svn.apache.org/viewvc/james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java?rev=611469&r1=611468&r2=611469&view=diff
==============================================================================
--- james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java (original)
+++ james/server/trunk/user-api/src/main/java/org/apache/james/api/user/UserMetaDataRespository.java Sat Jan 12 11:57:08 2008
@@ -36,16 +36,25 @@
/**
* Gets the attribute for the given key.
+ * @param username the name of the user, not null
* @param key conventionally an URI, not null
* @return value, or null if the keyed attribute has
* no associated value.
*/
- public Serializable getAttribute(String key) throws UserRepositoryException;
+ public Serializable getAttribute(String username, String key) throws UserRepositoryException;
/**
* Sets the attribute keyed to the given value.
+ * @param username the name of the user which meta-data is to be set, not null
* @param value <code>Serializable</code> value, possibly null
* @param key conventionally an URI, not null
*/
- public void setAttribute(Serializable value, String key) throws UserRepositoryException;
+ public void setAttribute(String username, Serializable value, String key) throws UserRepositoryException;
+
+ /**
+ * Clears all attributes for the given user.
+ * @param username the name of the user who meta data is to be cleared, not null
+ * @throws UserRepositoryException
+ */
+ public void clear(String username) throws UserRepositoryException;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org