net.sf.borg.model.entity
Class Appointment

java.lang.Object
  extended by net.sf.borg.model.entity.KeyedEntity<T>
      extended by net.sf.borg.model.entity.EncryptableEntity<Appointment>
          extended by net.sf.borg.model.entity.Appointment
All Implemented Interfaces:
Serializable, CalendarEntity

public class Appointment
extends EncryptableEntity<Appointment>
implements CalendarEntity

The Appointment Entity

See Also:
Serialized Form

Constructor Summary
Appointment()
           
 
Method Summary
 boolean canEqual(Object other)
           
protected  Appointment clone()
           
 void decrypt(String password)
          decrypt the entity.
 void encrypt(String password)
          encrypt the entity.
 boolean equals(Object o)
           
 String getCategory()
           
 String getColor()
          Gets the color.
 Date getDate()
          Gets the date.
 Integer getDuration()
          Gets the duration.
 String getFrequency()
           
 Integer getHoliday()
           
 Date getNextTodo()
          Gets the next todo date.
 Integer getPriority()
          Gets the priority
 String getReminderTimes()
           
 Date getRepeatUntil()
           
 Vector<String> getSkipList()
           
 String getText()
          Gets the text.
 Integer getTimes()
           
 String getUntimed()
           
 Integer getVacation()
           
 int hashCode()
           
 boolean isPrivate()
           
 boolean isRepeatFlag()
           
 boolean isTodo()
          Gets the todo flag.
 void setCategory(String Category)
           
 void setColor(String Color)
           
 void setDate(Date Date)
           
 void setDuration(Integer Duration)
           
 void setFrequency(String Frequency)
           
 void setHoliday(Integer Holiday)
           
 void setNextTodo(Date NextTodo)
           
 void setPriority(Integer priority)
           
 void setPrivate(boolean Private)
           
 void setReminderTimes(String ReminderTimes)
           
 void setRepeatFlag(boolean RepeatFlag)
           
 void setRepeatUntil(Date repeatUntil)
           
 void setSkipList(Vector<String> SkipList)
           
 void setText(String Text)
           
 void setTimes(Integer Times)
           
 void setTodo(boolean Todo)
           
 void setUntimed(String Untimed)
           
 void setVacation(Integer Vacation)
           
 String toString()
           
 
Methods inherited from class net.sf.borg.model.entity.EncryptableEntity
isEncrypted, setEncrypted
 
Methods inherited from class net.sf.borg.model.entity.KeyedEntity
copy, getKey, setKey
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Appointment

public Appointment()
Method Detail

clone

protected Appointment clone()
Overrides:
clone in class KeyedEntity<Appointment>

decrypt

public void decrypt(String password)
             throws Exception
Description copied from class: EncryptableEntity
decrypt the entity. This will use the password to get the borg encryption key from the keystore and then will decrypt those fields in the entity that are encrypted. the entity encrypted flag will be set to false.

Specified by:
decrypt in class EncryptableEntity<Appointment>
Parameters:
password - the keystore password
Throws:
Exception

encrypt

public void encrypt(String password)
             throws Exception
Description copied from class: EncryptableEntity
encrypt the entity. This will use the password to get the borg encryption key from the keystore and then will encrypt those fields in the entity that are encryptable. the entity encrypted flag will be set to true.

Specified by:
encrypt in class EncryptableEntity<Appointment>
Parameters:
password - the keystore password
Throws:
Exception

getDate

public Date getDate()
Description copied from interface: CalendarEntity
Gets the date.

Specified by:
getDate in interface CalendarEntity
Returns:
the date

getDuration

public Integer getDuration()
Description copied from interface: CalendarEntity
Gets the duration.

Specified by:
getDuration in interface CalendarEntity
Returns:
the duration

getText

public String getText()
Description copied from interface: CalendarEntity
Gets the text.

Specified by:
getText in interface CalendarEntity
Returns:
the text

getSkipList

public Vector<String> getSkipList()

getNextTodo

public Date getNextTodo()
Description copied from interface: CalendarEntity
Gets the next todo date.

Specified by:
getNextTodo in interface CalendarEntity
Returns:
the next todo date

getVacation

public Integer getVacation()

getHoliday

public Integer getHoliday()

isPrivate

public boolean isPrivate()

getTimes

public Integer getTimes()

getFrequency

public String getFrequency()

isTodo

public boolean isTodo()
Description copied from interface: CalendarEntity
Gets the todo flag.

Specified by:
isTodo in interface CalendarEntity
Returns:
the todo flag

getColor

public String getColor()
Description copied from interface: CalendarEntity
Gets the color.

Specified by:
getColor in interface CalendarEntity
Returns:
the color

isRepeatFlag

public boolean isRepeatFlag()

getCategory

public String getCategory()

getReminderTimes

public String getReminderTimes()

getUntimed

public String getUntimed()

getRepeatUntil

public Date getRepeatUntil()

getPriority

public Integer getPriority()
Description copied from interface: CalendarEntity
Gets the priority

Specified by:
getPriority in interface CalendarEntity
Returns:
the priority

setDate

public void setDate(Date Date)

setDuration

public void setDuration(Integer Duration)

setText

public void setText(String Text)

setSkipList

public void setSkipList(Vector<String> SkipList)

setNextTodo

public void setNextTodo(Date NextTodo)

setVacation

public void setVacation(Integer Vacation)

setHoliday

public void setHoliday(Integer Holiday)

setPrivate

public void setPrivate(boolean Private)

setTimes

public void setTimes(Integer Times)

setFrequency

public void setFrequency(String Frequency)

setTodo

public void setTodo(boolean Todo)

setColor

public void setColor(String Color)

setRepeatFlag

public void setRepeatFlag(boolean RepeatFlag)

setCategory

public void setCategory(String Category)

setReminderTimes

public void setReminderTimes(String ReminderTimes)

setUntimed

public void setUntimed(String Untimed)

setRepeatUntil

public void setRepeatUntil(Date repeatUntil)

setPriority

public void setPriority(Integer priority)

toString

public String toString()
Overrides:
toString in class EncryptableEntity<Appointment>

equals

public boolean equals(Object o)
Overrides:
equals in class EncryptableEntity<Appointment>

canEqual

public boolean canEqual(Object other)
Overrides:
canEqual in class EncryptableEntity<Appointment>

hashCode

public int hashCode()
Overrides:
hashCode in class EncryptableEntity<Appointment>


Generated December 30 2011 by mbb using Apache Ant(TM) version 1.8.2 compiled on December 20 2010 and Java version 1.6.0_30 from Sun Microsystems Inc. on Linux i386 3.0.0-14-generic-pae