diff -r be419cf170d6 -r c81406884e16 src/org/sonews/storage/Article.java --- a/src/org/sonews/storage/Article.java Sun Sep 11 17:59:28 2011 +0200 +++ b/src/org/sonews/storage/Article.java Tue Oct 25 15:06:59 2011 +0200 @@ -41,6 +41,8 @@ * @since n3tpd/0.1 */ public class Article extends ArticleHead { + + private String authenticatedUser; /** * Loads the Article identified by the given ID from the JDBCDatabase. @@ -220,4 +222,19 @@ public String toString() { return getMessageID(); } + + /** + * @return username of currently logged user – or null, if user is not authenticated. + */ + public String getAuthenticatedUser() { + return authenticatedUser; + } + + /** + * This method is to be called from POST Command implementation. + * @param authenticatedUser current username – or null, if user is not authenticated. + */ + public void setAuthenticatedUser(String authenticatedUser) { + this.authenticatedUser = authenticatedUser; + } }