diff -r be419cf170d6 -r 4ddc1020a154 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 Sun Nov 06 00:08:05 2011 +0100 @@ -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; + } }