src/org/sonews/storage/Article.java
changeset 116 4ddc1020a154
parent 51 be419cf170d6
child 117 79ce65d63cce
     1.1 --- a/src/org/sonews/storage/Article.java	Sun Sep 11 17:59:28 2011 +0200
     1.2 +++ b/src/org/sonews/storage/Article.java	Sun Nov 06 00:08:05 2011 +0100
     1.3 @@ -41,6 +41,8 @@
     1.4   * @since n3tpd/0.1
     1.5   */
     1.6  public class Article extends ArticleHead {
     1.7 +	
     1.8 +	private String authenticatedUser;
     1.9  
    1.10  	/**
    1.11  	 * Loads the Article identified by the given ID from the JDBCDatabase.
    1.12 @@ -220,4 +222,19 @@
    1.13  	public String toString() {
    1.14  		return getMessageID();
    1.15  	}
    1.16 +
    1.17 +	/**
    1.18 +	 * @return username of currently logged user – or null, if user is not authenticated.
    1.19 +	 */
    1.20 +	public String getAuthenticatedUser() {
    1.21 +		return authenticatedUser;
    1.22 +	}
    1.23 +	
    1.24 +	/**
    1.25 +	 * This method is to be called from POST Command implementation.
    1.26 +	 * @param authenticatedUser current username – or null, if user is not authenticated.
    1.27 +	 */
    1.28 +	public void setAuthenticatedUser(String authenticatedUser) {
    1.29 +		this.authenticatedUser = authenticatedUser;
    1.30 +	}
    1.31  }