[jboss-cvs] jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail ...

Aron Sogor bigman at gmail.com
Fri Jul 28 00:57:44 EDT 2006


  User: asogor  
  Date: 06/07/28 00:57:44

  Modified:    src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail   
                        ScheduleEvent.java PlanEvent.java
  Added:       src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail   
                        HelpEvent.java
  Log:
  Plan and schedule alias v 0.1 working
  
  Revision  Changes    Path
  1.2       +71 -34    jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail/ScheduleEvent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ScheduleEvent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail/ScheduleEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- ScheduleEvent.java	14 Jul 2006 03:52:17 -0000	1.1
  +++ ScheduleEvent.java	28 Jul 2006 04:57:44 -0000	1.2
  @@ -1,45 +1,82 @@
   package org.jboss.mail.calendar.eventbus.mail;
   
  +import java.text.DateFormat;
   import java.util.Date;
   
   public class ScheduleEvent extends MailRequest {
   
  +    private Date endDate;
  +
   	private String[] invites;
   
  +    private String note;
  +
   	private Date startDate;
   
  -	private Date endDate;
  +    private String title;
   
  -	public ScheduleEvent(String aactor, String[] invites, Date startDate,
  -			Date endDate) {
  +    public ScheduleEvent(String aactor, String[] invites, Date startDate, Date endDate, String note,
  +            String title) {
   		super(aactor);
   		this.invites = invites;
   		this.startDate = startDate;
   		this.endDate = endDate;
  +        this.note = note;
  +        this.title = title;
   	}
   
   	public Date getEndDate() {
   		return endDate;
   	}
   
  -	public void setEndDate(Date endDate) {
  -		this.endDate = endDate;
  -	}
  -
   	public String[] getInvites() {
   		return invites;
   	}
   
  -	public void setInvites(String[] invites) {
  -		this.invites = invites;
  +    /**
  +     * @return Returns the note.
  +     */
  +    public String getNote() {
  +        return note;
   	}
   
   	public Date getStartDate() {
   		return startDate;
   	}
   
  +    /**
  +     * @return Returns the title.
  +     */
  +    public String getTitle() {
  +        return title;
  +    }
  +
  +    public void setEndDate(Date endDate) {
  +        this.endDate = endDate;
  +    }
  +
  +    public void setInvites(String[] invites) {
  +        this.invites = invites;
  +    }
  +
  +    /**
  +     * @param note
  +     *            The note to set.
  +     */
  +    public void setNote(String note) {
  +        this.note = note;
  +    }
  +
   	public void setStartDate(Date startDate) {
   		this.startDate = startDate;
   	}
   
  +    /**
  +     * @param title
  +     *            The title to set.
  +     */
  +    public void setTitle(String title) {
  +        this.title = title;
  +    }
  +
   }
  
  
  
  1.2       +118 -57   jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail/PlanEvent.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: PlanEvent.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail/PlanEvent.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- PlanEvent.java	14 Jul 2006 03:52:17 -0000	1.1
  +++ PlanEvent.java	28 Jul 2006 04:57:44 -0000	1.2
  @@ -1,62 +1,123 @@
   package org.jboss.mail.calendar.eventbus.mail;
   
  +import java.text.DateFormat;
   import java.util.Date;
   
  -public class PlanEvent extends MailRequest{
  +public class PlanEvent extends MailRequest {
  +
  +    private DateFormat calDateFormat;
   	
  -	private String[] invites;
  -	private Date startDate;
   	private Date endDate;
  -	private int incrementSize;
  +
   	private int incerementCnt;
   	
  -	public PlanEvent(String aactor, String[] invites, Date startDate, Date endDate, int incrementSize, int incerementCnt) {
  +    private int incrementSize;
  +
  +    private String[] invites;
  +
  +    private String note;
  +
  +    private Date startDate;
  +
  +    private String title;
  +
  +    public PlanEvent(String aactor, String[] invites, DateFormat calDateFormat,
  +            String title, String note, Date startDate, Date endDate,
  +            int incrementSize, int incerementCnt) {
   		super(aactor);
   		// TODO Auto-generated constructor stub
   		this.invites = invites;
  +        this.calDateFormat = calDateFormat;
  +        this.title = title;
  +        this.note = note;
   		this.startDate = startDate;
   		this.endDate = endDate;
   		this.incrementSize = incrementSize;
   		this.incerementCnt = incerementCnt;
   	}
   
  -	public Date getEndDate() {
  -		return endDate;
  +    /**
  +     * @return Returns the calDateFormat.
  +     */
  +    public DateFormat getCalDateFormat() {
  +        return calDateFormat;
   	}
   
  -	public void setEndDate(Date endDate) {
  -		this.endDate = endDate;
  +    public Date getEndDate() {
  +        return endDate;
   	}
   
   	public int getIncerementCnt() {
   		return incerementCnt;
   	}
   
  -	public void setIncerementCnt(int incerementCnt) {
  -		this.incerementCnt = incerementCnt;
  -	}
  -
   	public int getIncrementSize() {
   		return incrementSize;
   	}
   
  -	public void setIncrementSize(int incrementSize) {
  -		this.incrementSize = incrementSize;
  -	}
  -
   	public String[] getInvites() {
   		return invites;
   	}
   
  -	public void setInvites(String[] invites) {
  -		this.invites = invites;
  +    /**
  +     * @return Returns the note.
  +     */
  +    public String getNote() {
  +        return note;
   	}
   
   	public Date getStartDate() {
   		return startDate;
   	}
   
  +    /**
  +     * @return Returns the title.
  +     */
  +    public String getTitle() {
  +        return title;
  +    }
  +
  +    /**
  +     * @param calDateFormat
  +     *            The calDateFormat to set.
  +     */
  +    public void setCalDateFormat(DateFormat calDateFormat) {
  +        this.calDateFormat = calDateFormat;
  +    }
  +
  +    public void setEndDate(Date endDate) {
  +        this.endDate = endDate;
  +    }
  +
  +    public void setIncerementCnt(int incerementCnt) {
  +        this.incerementCnt = incerementCnt;
  +    }
  +
  +    public void setIncrementSize(int incrementSize) {
  +        this.incrementSize = incrementSize;
  +    }
  +
  +    public void setInvites(String[] invites) {
  +        this.invites = invites;
  +    }
  +
  +    /**
  +     * @param note
  +     *            The note to set.
  +     */
  +    public void setNote(String note) {
  +        this.note = note;
  +    }
  +
   	public void setStartDate(Date startDate) {
   		this.startDate = startDate;
   	}
  +
  +    /**
  +     * @param title
  +     *            The title to set.
  +     */
  +    public void setTitle(String title) {
  +        this.title = title;
  +    }
   }
  
  
  
  1.1      date: 2006/07/28 04:57:44;  author: asogor;  state: Exp;jboss-mail/src/calendar/calendarejb/src/java/org/jboss/mail/calendar/eventbus/mail/HelpEvent.java
  
  Index: HelpEvent.java
  ===================================================================
  package org.jboss.mail.calendar.eventbus.mail;
  
  import java.text.DateFormat;
  import java.util.Date;
  
  public class HelpEvent extends MailRequest {
  
      private DateFormat calDateFormat;
  
      public HelpEvent(String aactor, DateFormat calDateFormat) {
          super(aactor);
          this.calDateFormat = calDateFormat;
      }
  
      /**
       * @return Returns the calDateFormat.
       */
      public DateFormat getCalDateFormat() {
          return calDateFormat;
      }
  
      /**
       * @param calDateFormat
       *            The calDateFormat to set.
       */
      public void setCalDateFormat(DateFormat calDateFormat) {
          this.calDateFormat = calDateFormat;
      }
  }
  
  
  



More information about the jboss-cvs-commits mailing list