FileDocCategorySizeDatePackage
CrudRoomAction.javaAPI DocApache Struts 2.0.9 Apps1886Mon Jul 23 13:43:26 BST 2007org.apache.struts2.showcase.chat

CrudRoomAction

public class CrudRoomAction extends com.opensymphony.xwork2.ActionSupport

Fields Summary
private static final long
serialVersionUID
private ChatService
chatService
private String
name
private String
description
Constructors Summary
public CrudRoomAction(ChatService chatService)

        this.chatService = chatService;
    
Methods Summary
public java.lang.Stringcreate()

        try {
            chatService.addRoom(new Room(name, description));
        }
        catch(ChatException e) {
            addActionError(e.getMessage());
        }
        return SUCCESS;
    
public java.lang.StringgetDescription()



       
        return description;
    
public java.lang.StringgetName()

        return name;
    
public voidsetDescription(java.lang.String description)

        this.description = description;
    
public voidsetName(java.lang.String name)

        this.name = name;