TopicSavedEvent.java :  » Wiki-Engine » VeryQuickWiki » vqwiki » Java Open Source

Java Open Source » Wiki Engine » VeryQuickWiki 
VeryQuickWiki » vqwiki » TopicSavedEvent.java
/**
 * @author garethc
 *  11/11/2002 12:20:23
 */
package vqwiki;

import java.util.Date;

/**
 * Event fired when a topic has been saved
 */
public class TopicSavedEvent {

    /** Name of the virtual wiki */
    private String virtualWiki;
    /** Name of the topic */
    private String topicName;
    /** The contents saved */
    private String contents;
    /** User */
    private String user;
    /** Time */
    private Date time;

    /**
     * New event
     *
     * @param virtualWiki
     * @param topicName
     * @param contents
     */
    public TopicSavedEvent(String virtualWiki, String topicName, String contents, String user, Date time) {
        this.virtualWiki = virtualWiki;
        this.topicName = topicName;
        this.contents = contents;
        this.user = user;
        this.time = time;
    }

    /**
     * Name of the virtual wiki
     * @return
     */
    public String getVirtualWiki() {
        return virtualWiki;
    }

    /**
     * Name of the topic
     * @return
     */
    public String getTopicName() {
        return topicName;
    }

    /**
     * Name of the contents
     * @return
     */
    public String getContents() {
        return contents;
    }

    /**
     * User who saved
     * @return user
     */
    public String getUser() {
        return user;
    }

    /**
     * Time save was made
     * @return time
     */
    public Date getTime() {
        return time;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.