|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--portlets.compoze.groupware.AbstractItem
|
+--portlets.compoze.groupware.calendar.Appointment
This class represents an appointment.
| Constructor Summary | |
Appointment()
Constructor. |
|
Appointment(java.lang.String sID)
Constructor. |
|
| Method Summary | |
AppointmentType |
getAppointmentType()
Gets the appointment type. |
BusyStatus |
getBusyStatus()
Gets the busy status. |
java.util.Date |
getEndDate()
Gets the end date for the appointment. |
java.lang.String |
getLocation()
Gets the location of the appointment. |
java.lang.String |
getOrganizer()
Gets the organizer of the appointment. |
boolean |
getPreventCounter()
Checks if the counter is prevented. |
boolean |
getPreventDelegate()
Checks if the delegate is prevented. |
RecipientInfo |
getRecipientInfo()
Gets the reciepient info of the message. |
RepeatPattern |
getRepeatPattern()
Gets the repeat pattern. |
Sensitivity |
getSensitivity()
Gets the sensitivity of this appointment. |
java.util.Date |
getStartDate()
Gets the start date for the appointment. |
java.util.Date |
getTimeReceived()
Gets the time the appointment was received (if meeting request). |
java.lang.String |
getTimeReceivedString(java.util.Locale locale,
java.util.TimeZone timeZone)
Gets the formatted string for the time the appointment was received. |
java.lang.String[] |
getWhenArgs(java.util.Locale locale,
java.util.TimeZone timeZone)
Gets the i18n resource args for when the appointment occurs. |
java.lang.String |
getWhenKey()
Gets the i18n key for when the appointment occurs. |
static boolean |
hasAppointments(Appointment[] appointments,
java.util.Date givenDate,
java.util.Calendar cal)
Checks if the array of appointments has any appointments that occur on the given date. |
static boolean |
hasAppointments(Appointment[] appointments,
java.util.Date startDate,
java.util.Date endDate,
java.util.Calendar cal)
Checks if the array of appointments has any appointments that occur in the given date range. |
boolean |
isAllDayEvent()
Checks if the appointment is an all day event. |
boolean |
isOrganizer()
Checks if the user is the organizer. |
boolean |
isRepeating()
Checks if the appointment is repeating. |
void |
setAllDayEvent(boolean bFlag)
Sets the appointment as an all day event. |
void |
setAppointmentType(AppointmentType type)
Sets the appointment type. |
void |
setBusyStatus(BusyStatus status)
Sets the appointment busy status. |
void |
setEndDate(java.util.Date endDate)
Sets the end date for the appointment. |
void |
setIsOrganizer(boolean bFlag)
Sets the the is organizer flag. |
void |
setLocation(java.lang.String sLocation)
Sets the location of the appointment. |
void |
setOrganizer(java.lang.String sOrganizer)
Sets the organizer of the appointment. |
void |
setPreventCounter(boolean bPreventCounter)
Sets the appointment prevent counter flag. |
void |
setPreventDelegate(boolean bPreventDelegate)
Sets the appointment prevent delegate flag. |
void |
setRecipientInfo(RecipientInfo recipientInfo)
Sets the reciepient info of the message. |
void |
setRepeating(boolean bFlag)
Sets the appointment repeating flag. |
void |
setRepeatPattern(RepeatPattern repeatPattern)
Sets the repeat pattern. |
void |
setSensitivity(Sensitivity sensitivity)
Sets the sensitivity of the appointment. |
void |
setStartDate(java.util.Date startDate)
Sets the start date for the appointment. |
void |
setTimeReceived(java.util.Date timeReceived)
Sets the time the appointment was received (if meeting request). |
static Appointment[] |
subList(Appointment[] appointments,
java.util.Date givenDate,
java.util.Calendar cal)
Gets an array of appointments from the specified list occuring on the given date. |
static Appointment[] |
subList(Appointment[] appointments,
java.util.Date startDate,
java.util.Date endDate,
java.util.Calendar cal)
Gets an array of appointments from the specified list occuring within the given start and end dates. |
| Methods inherited from class portlets.compoze.groupware.AbstractItem |
getAttachmentCount, getAttachmentInfoArray, getBodyHtml, getBodyText, getBodyTextAsHtml, getDateCreated, getID, getImportance, getIndex, getItemType, getSize, getSizeInKilobytes, getSubject, getSubject, hasAttachment, prettyTruncate, setAttachmentCount, setAttachmentInfoArray, setBodyHtml, setBodyText, setDateCreated, setHasAttachment, setID, setImportance, setIndex, setItemType, setSize, setSubject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Appointment()
public Appointment(java.lang.String sID)
sID - the appointment id| Method Detail |
public java.lang.String getWhenKey()
#getWhenArgs()
public java.lang.String[] getWhenArgs(java.util.Locale locale,
java.util.TimeZone timeZone)
locale - the localetimeZone - the time zonepublic RecipientInfo getRecipientInfo()
public void setRecipientInfo(RecipientInfo recipientInfo)
recipientInfo - the recipient info (may not be null)public java.util.Date getTimeReceived()
null for nonepublic void setTimeReceived(java.util.Date timeReceived)
timeReceived - the time appointment was received
public java.lang.String getTimeReceivedString(java.util.Locale locale,
java.util.TimeZone timeZone)
locale - the localetimeZone - the time zonepublic Sensitivity getSensitivity()
public void setSensitivity(Sensitivity sensitivity)
sensitivity - the appointment sensitivity (may not be null)public AppointmentType getAppointmentType()
public void setAppointmentType(AppointmentType type)
type - the appointment type (may not be nullpublic RepeatPattern getRepeatPattern()
null if not setpublic void setRepeatPattern(RepeatPattern repeatPattern)
repeatPattern - the repeat patternpublic void setBusyStatus(BusyStatus status)
type - the appointment busy status (may not be nullpublic BusyStatus getBusyStatus()
public boolean isAllDayEvent()
true if the appointment is an all day event; false otherwisepublic void setAllDayEvent(boolean bFlag)
bFlag - true if the appointment is an all day event; false otherwisepublic boolean isOrganizer()
true if user is the organizer; false otherwisepublic void setIsOrganizer(boolean bFlag)
bFlag - true if user is the organizer; false otherwisepublic boolean isRepeating()
true if the appointment is repeating; false otherwisepublic void setRepeating(boolean bFlag)
bFlag - true if the appointment is repeating; false otherwisepublic java.util.Date getStartDate()
public void setStartDate(java.util.Date startDate)
startDate - the start datepublic void setEndDate(java.util.Date endDate)
endDate - the end datepublic java.util.Date getEndDate()
public void setLocation(java.lang.String sLocation)
sLocation - the location of the appointmentpublic java.lang.String getLocation()
public void setOrganizer(java.lang.String sOrganizer)
sOrganizer - the organizer of the appointmentpublic java.lang.String getOrganizer()
public boolean getPreventCounter()
true if counter is prevented; false otherwisepublic void setPreventCounter(boolean bPreventCounter)
bPreventCounter - true if the counter is prevented; false otherwisepublic boolean getPreventDelegate()
true if delegate is prevented; false otherwisepublic void setPreventDelegate(boolean bPreventDelegate)
bPreventDelegate - true if the delegate is prevented; false otherwise
public static boolean hasAppointments(Appointment[] appointments,
java.util.Date givenDate,
java.util.Calendar cal)
appointments - the array of appointmentsgivenDate - the date to check forcal - the calendartrue if the array has appointments on the given date; false otherwise
public static boolean hasAppointments(Appointment[] appointments,
java.util.Date startDate,
java.util.Date endDate,
java.util.Calendar cal)
appointments - the array of appointmentsstartDate - the start date (inclusive)endDate - the end date (inclusive)cal - the calendartrue if the array has appointments on the given date; false otherwise
public static Appointment[] subList(Appointment[] appointments,
java.util.Date givenDate,
java.util.Calendar cal)
appointments - the array of appointmentsgivenDate - the given datecal - the calendar
public static Appointment[] subList(Appointment[] appointments,
java.util.Date startDate,
java.util.Date endDate,
java.util.Calendar cal)
appointments - the array of appointmentsstartDate - the start date (inclusive)endDate - the end date (inclusive)cal - the calendar
|
Compoze Software, Inc. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||