com.mycompany.messages
Class StoreMsgAction

java.lang.Object
  extended bycom.mycompany.messages.StoreMsgAction

public class StoreMsgAction
extends java.lang.Object

This class stores a new message in the Project Billboard application.

Version:
1.0
Author:
Hans Bergsten, Gefion software

Field Summary
private  java.lang.String category
           
private  java.lang.String msg
           
private  NewsBean newsBean
           
private  java.lang.String requestMethod
           
private  EmployeeBean validUser
           
 
Constructor Summary
StoreMsgAction()
           
 
Method Summary
 java.lang.String getCategory()
           
 java.lang.String getMsg()
           
 void setCategory(java.lang.String category)
           
 void setMsg(java.lang.String msg)
           
 void setNewsBean(NewsBean newsBean)
           
 void setRequestMethod(java.lang.String requestMethod)
           
 void setValidUser(EmployeeBean validUser)
           
 java.lang.String store()
          Creates a new NewsItemBean and sets its properties based on the "category" and "msg" request parameters, plus the firstName and lastName properties of the authenticated user (an EmployeeBean accessible as the "validUser" session attribute).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

newsBean

private NewsBean newsBean

validUser

private EmployeeBean validUser

category

private java.lang.String category

msg

private java.lang.String msg

requestMethod

private java.lang.String requestMethod
Constructor Detail

StoreMsgAction

public StoreMsgAction()
Method Detail

setNewsBean

public void setNewsBean(NewsBean newsBean)

setValidUser

public void setValidUser(EmployeeBean validUser)

getCategory

public java.lang.String getCategory()

setCategory

public void setCategory(java.lang.String category)

getMsg

public java.lang.String getMsg()

setMsg

public void setMsg(java.lang.String msg)

setRequestMethod

public void setRequestMethod(java.lang.String requestMethod)

store

public java.lang.String store()
Creates a new NewsItemBean and sets its properties based on the "category" and "msg" request parameters, plus the firstName and lastName properties of the authenticated user (an EmployeeBean accessible as the "validUser" session attribute). The NewItemBean is then added to the NewsBean. This action is only performed for POST request.