org.exoplatform.calendar.webui.popup
Class UIEventForm
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.webui.form.UIFormTabPane
org.exoplatform.calendar.webui.popup.UIEventForm
- All Implemented Interfaces:
- UIPopupComponent, UISelector
public class UIEventForm
- extends org.exoplatform.webui.form.UIFormTabPane
- implements UIPopupComponent, UISelector
Created by The eXo Platform SARL
Author : Hung Nguyen
hung.nguyen@exoplatform.com
Editor : Tuan Pham
tuan.pham@exoplatform.com
Aus 01, 2007 2:48:18 PM
| Nested classes/interfaces inherited from class org.exoplatform.webui.form.UIFormTabPane |
org.exoplatform.webui.form.UIFormTabPane.SelectTabActionListener |
| Fields inherited from class org.exoplatform.webui.form.UIFormTabPane |
name_, RENDER_TAB |
| Fields inherited from class org.exoplatform.webui.form.UIForm |
ACTION, SUBCOMPONENT_ID |
| Fields inherited from class org.exoplatform.webui.core.UIComponent |
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent |
|
Method Summary |
void |
activate()
|
String |
buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
Build the repeating summary, i.e: daily every 2 days, until 02/03/2011. |
void |
deActivate()
|
static void |
downloadAtt(org.exoplatform.webui.event.Event<?> event,
org.exoplatform.webui.form.UIForm uiForm,
boolean isEvent)
|
String[] |
getActions()
|
org.exoplatform.calendar.service.Attachment |
getAttachment(String attId)
|
protected List<org.exoplatform.calendar.service.Attachment> |
getAttachments(String eventId,
boolean isAddNew)
|
static Calendar |
getCalendar(org.exoplatform.webui.form.UIForm uiForm,
String formTime,
org.exoplatform.calendar.service.CalendarSetting calSetting)
|
protected String |
getCalendarId()
|
protected String |
getEmailAddress()
|
protected String |
getEmailRemindBefore()
|
protected boolean |
getEmailReminder()
|
protected String |
getEmailRepeatInterVal()
|
protected boolean |
getEventAllDate()
|
protected String |
getEventCategory()
|
protected String |
getEventDescription()
|
protected String |
getEventFormDateValue()
|
protected Date |
getEventFromDate(String dateFormat,
String timeFormat)
|
protected boolean |
getEventIsRepeat()
|
protected String |
getEventPlace()
|
protected String |
getEventPriority()
|
protected List<org.exoplatform.calendar.service.Reminder> |
getEventReminders(Date fromDateTime,
List<org.exoplatform.calendar.service.Reminder> currentReminders)
|
protected String |
getEventRepeat()
|
protected String |
getEventRepeatUntilValue()
|
protected String |
getEventState()
|
protected String |
getEventSumary()
|
protected Date |
getEventToDate()
|
protected Date |
getEventToDate(String dateFormat,
String timeFormat)
|
protected String |
getEventToDateValue()
|
protected String |
getInvitationEmail()
|
String |
getLabel(String id)
|
protected String[] |
getMeetingInvitation()
|
String |
getMessage()
|
String |
getParticipantStatus()
|
List<UIEventForm.ParticipantStatus> |
getParticipantStatusList()
|
protected String |
getParticipantStatusValues()
|
protected String |
getParticipantValues()
|
protected boolean |
getPopupReminder()
|
protected long |
getPopupReminderSnooze()
|
protected String |
getPopupReminderTime()
|
protected String |
getPopupRepeatInterVal()
|
org.exoplatform.calendar.service.CalendarEvent |
getRepeatEvent()
|
String |
getRepeatSummary()
|
protected String |
getReplyInvitationLink(int answer,
org.exoplatform.services.organization.User invitor,
String invitee,
String eXoId,
org.exoplatform.calendar.service.CalendarEvent event)
|
protected String |
getSendOption()
|
protected String |
getShareType()
|
protected long |
getTotalAttachment()
|
void |
importInvitationEvent(org.exoplatform.calendar.service.CalendarSetting calSetting,
org.exoplatform.calendar.service.CalendarEvent event,
String calendarId,
String formtime)
Fill data from invitation event to current event form |
void |
initForm(org.exoplatform.calendar.service.CalendarSetting calSetting,
org.exoplatform.calendar.service.CalendarEvent eventCalendar,
String formTime)
|
protected boolean |
isEmailRepeat()
|
protected boolean |
isEventDetailValid(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
|
protected Boolean |
isPopupRepeat()
|
boolean |
isReminderByEmail(List<org.exoplatform.calendar.service.Reminder> reminders)
|
protected boolean |
isSendMail()
|
protected void |
refreshCategory()
|
void |
saveAndNoAsk(org.exoplatform.webui.event.Event<UIEventForm> event,
boolean isSend,
boolean updateSeries)
|
protected void |
sendMail(org.exoplatform.services.mail.MailService svr,
org.exoplatform.services.organization.OrganizationService orSvr,
org.exoplatform.calendar.service.CalendarSetting setting,
String fromId,
String toId,
org.exoplatform.calendar.service.CalendarEvent event)
|
protected void |
setAttachments(List<org.exoplatform.calendar.service.Attachment> attachment)
|
void |
setEmailAddress(String value)
|
void |
setEmailRemindBefore(String value)
|
void |
setEmailReminder(boolean isChecked)
|
void |
setEmailRepeat(Boolean value)
|
protected void |
setEmailRepeatInterVal(long value)
|
protected void |
setEventAllDate(boolean isCheckAll)
|
protected void |
setEventDescription(String value)
|
protected void |
setEventFromDate(Date date,
String dateFormat,
String timeFormat)
|
protected void |
setEventIsRepeat(boolean isRepeat)
|
protected void |
setEventPlace(String value)
|
protected void |
setEventReminders(List<org.exoplatform.calendar.service.Reminder> reminders)
|
protected void |
setEventRepeat(String type)
|
protected void |
setEventSumary(String value)
|
protected void |
setEventToDate(Date date,
String dateFormat,
String timeFormat)
|
protected void |
setMeetingInvitation(String[] values)
|
void |
setMessage(String invitationMsg)
|
void |
setParticipant(String values)
|
void |
setParticipantStatus(String values)
|
protected void |
setParticipantStatusValues(String[] values)
|
protected void |
setPopupRemindBefore(String value)
|
protected void |
setPopupReminder(boolean isChecked)
|
protected void |
setPopupRepeat(Boolean value)
|
protected void |
setPopupRepeatInterval(long value)
|
void |
setRepeatEvent(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
|
void |
setRepeatSummary(String summary)
|
void |
setSelectedCalendarId(String value)
|
void |
setSelectedCategory(String value)
|
protected void |
setSelectedEventPriority(String value)
|
void |
setSelectedEventState(String value)
|
protected void |
setSelectedShareType(String value)
|
protected void |
setSendOption(String value)
|
void |
update(String calType,
List<org.exoplatform.webui.core.model.SelectItem> options)
|
void |
updateSelect(String selectField,
String value)
|
| Methods inherited from class org.exoplatform.webui.form.UIFormTabPane |
getName, getSelectedTabId, hasInfoBar, hasRenderResourceTabName, processDecode, setInfoBar, setRenderResourceTabName, setSelectedTab, setSelectedTab |
| Methods inherited from class org.exoplatform.webui.form.UIForm |
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url |
| Methods inherited from class org.exoplatform.webui.core.UIContainer |
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes |
| Methods inherited from class org.exoplatform.webui.core.UIComponent |
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TAB_EVENTDETAIL
public static final String TAB_EVENTDETAIL
TAB_EVENTREMINDER
public static final String TAB_EVENTREMINDER
TAB_EVENTSHARE
public static final String TAB_EVENTSHARE
TAB_EVENTATTENDER
public static final String TAB_EVENTATTENDER
FIELD_MEETING
public static final String FIELD_MEETING
FIELD_ISSENDMAIL
public static final String FIELD_ISSENDMAIL
ITEM_PUBLIC
public static final String ITEM_PUBLIC
ITEM_PRIVATE
public static final String ITEM_PRIVATE
ITEM_AVAILABLE
public static final String ITEM_AVAILABLE
ITEM_BUSY
public static final String ITEM_BUSY
ITEM_OUTSIDE
public static final String ITEM_OUTSIDE
ITEM_REPEAT
public static final String ITEM_REPEAT
ITEM_UNREPEAT
public static final String ITEM_UNREPEAT
ITEM_ALWAYS
public static final String ITEM_ALWAYS
ITEM_NERVER
public static final String ITEM_NERVER
ITEM_ASK
public static final String ITEM_ASK
ACT_REMOVE
public static final String ACT_REMOVE
ACT_DOWNLOAD
public static final String ACT_DOWNLOAD
ACT_ADDEMAIL
public static final String ACT_ADDEMAIL
ACT_ADDCATEGORY
public static final String ACT_ADDCATEGORY
ACT_EDITREPEAT
public static final String ACT_EDITREPEAT
STATUS_EMPTY
public static final String STATUS_EMPTY
STATUS_PENDING
public static final String STATUS_PENDING
STATUS_YES
public static final String STATUS_YES
STATUS_NO
public static final String STATUS_NO
RP_END_BYDATE
public static final String RP_END_BYDATE
- See Also:
- Constant Field Values
RP_END_AFTER
public static final String RP_END_AFTER
- See Also:
- Constant Field Values
RP_END_NEVER
public static final String RP_END_NEVER
- See Also:
- Constant Field Values
isAddNew_
public boolean isAddNew_
calType_
protected String calType_
invitationMsg_
protected String invitationMsg_
participantList_
protected String participantList_
participants_
protected Map<String,String> participants_
participantStatus_
protected Map<String,String> participantStatus_
participantStatusList_
protected LinkedList<UIEventForm.ParticipantStatus> participantStatusList_
LIMIT_FILE_UPLOAD
public static final int LIMIT_FILE_UPLOAD
- See Also:
- Constant Field Values
UIEventForm
public UIEventForm()
throws Exception
- Throws:
Exception
getLabel
public String getLabel(String id)
- Overrides:
getLabel in class org.exoplatform.webui.form.UIForm
initForm
public void initForm(org.exoplatform.calendar.service.CalendarSetting calSetting,
org.exoplatform.calendar.service.CalendarEvent eventCalendar,
String formTime)
throws Exception
- Throws:
Exception
isReminderByEmail
public boolean isReminderByEmail(List<org.exoplatform.calendar.service.Reminder> reminders)
getCalendar
public static Calendar getCalendar(org.exoplatform.webui.form.UIForm uiForm,
String formTime,
org.exoplatform.calendar.service.CalendarSetting calSetting)
update
public void update(String calType,
List<org.exoplatform.webui.core.model.SelectItem> options)
throws Exception
- Throws:
Exception
refreshCategory
protected void refreshCategory()
throws Exception
- Throws:
Exception
getActions
public String[] getActions()
- Overrides:
getActions in class org.exoplatform.webui.form.UIForm
activate
public void activate()
throws Exception
- Specified by:
activate in interface UIPopupComponent
- Throws:
Exception
deActivate
public void deActivate()
throws Exception
- Specified by:
deActivate in interface UIPopupComponent
- Throws:
Exception
updateSelect
public void updateSelect(String selectField,
String value)
throws Exception
- Specified by:
updateSelect in interface UISelector
- Throws:
Exception
isEventDetailValid
protected boolean isEventDetailValid(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
throws Exception
- Throws:
Exception
getEventSumary
protected String getEventSumary()
setEventSumary
protected void setEventSumary(String value)
getEventDescription
protected String getEventDescription()
setEventDescription
protected void setEventDescription(String value)
getCalendarId
protected String getCalendarId()
setSelectedCalendarId
public void setSelectedCalendarId(String value)
getEventCategory
protected String getEventCategory()
setSelectedCategory
public void setSelectedCategory(String value)
getEventFromDate
protected Date getEventFromDate(String dateFormat,
String timeFormat)
throws Exception
- Throws:
Exception
getEventFormDateValue
protected String getEventFormDateValue()
setEventFromDate
protected void setEventFromDate(Date date,
String dateFormat,
String timeFormat)
getEventToDate
protected Date getEventToDate(String dateFormat,
String timeFormat)
throws Exception
- Throws:
Exception
getEventToDate
protected Date getEventToDate()
throws Exception
- Throws:
Exception
setEventToDate
protected void setEventToDate(Date date,
String dateFormat,
String timeFormat)
getEventToDateValue
protected String getEventToDateValue()
getEventAllDate
protected boolean getEventAllDate()
setEventAllDate
protected void setEventAllDate(boolean isCheckAll)
getEventRepeat
protected String getEventRepeat()
setEventRepeat
protected void setEventRepeat(String type)
getEventIsRepeat
protected boolean getEventIsRepeat()
setEventIsRepeat
protected void setEventIsRepeat(boolean isRepeat)
getEventRepeatUntilValue
protected String getEventRepeatUntilValue()
getEventPlace
protected String getEventPlace()
setEventPlace
protected void setEventPlace(String value)
getEmailReminder
protected boolean getEmailReminder()
setEmailReminder
public void setEmailReminder(boolean isChecked)
getEmailRemindBefore
protected String getEmailRemindBefore()
isEmailRepeat
protected boolean isEmailRepeat()
setEmailRepeat
public void setEmailRepeat(Boolean value)
getEmailRepeatInterVal
protected String getEmailRepeatInterVal()
setEmailRepeatInterVal
protected void setEmailRepeatInterVal(long value)
isPopupRepeat
protected Boolean isPopupRepeat()
setPopupRepeat
protected void setPopupRepeat(Boolean value)
getPopupRepeatInterVal
protected String getPopupRepeatInterVal()
setEmailRemindBefore
public void setEmailRemindBefore(String value)
getEmailAddress
protected String getEmailAddress()
throws Exception
- Throws:
Exception
setEmailAddress
public void setEmailAddress(String value)
getPopupReminder
protected boolean getPopupReminder()
setPopupReminder
protected void setPopupReminder(boolean isChecked)
getPopupReminderTime
protected String getPopupReminderTime()
setPopupRemindBefore
protected void setPopupRemindBefore(String value)
getPopupReminderSnooze
protected long getPopupReminderSnooze()
getAttachments
protected List<org.exoplatform.calendar.service.Attachment> getAttachments(String eventId,
boolean isAddNew)
getTotalAttachment
protected long getTotalAttachment()
setAttachments
protected void setAttachments(List<org.exoplatform.calendar.service.Attachment> attachment)
throws Exception
- Throws:
Exception
setPopupRepeatInterval
protected void setPopupRepeatInterval(long value)
setEventReminders
protected void setEventReminders(List<org.exoplatform.calendar.service.Reminder> reminders)
getEventReminders
protected List<org.exoplatform.calendar.service.Reminder> getEventReminders(Date fromDateTime,
List<org.exoplatform.calendar.service.Reminder> currentReminders)
throws Exception
- Throws:
Exception
getEventPriority
protected String getEventPriority()
setSelectedEventPriority
protected void setSelectedEventPriority(String value)
getEventState
protected String getEventState()
setSelectedEventState
public void setSelectedEventState(String value)
getShareType
protected String getShareType()
getSendOption
protected String getSendOption()
setSendOption
protected void setSendOption(String value)
getMessage
public String getMessage()
setMessage
public void setMessage(String invitationMsg)
setSelectedShareType
protected void setSelectedShareType(String value)
getMeetingInvitation
protected String[] getMeetingInvitation()
getInvitationEmail
protected String getInvitationEmail()
setMeetingInvitation
protected void setMeetingInvitation(String[] values)
getParticipantValues
protected String getParticipantValues()
getParticipantStatusValues
protected String getParticipantStatusValues()
setParticipantStatusValues
protected void setParticipantStatusValues(String[] values)
throws Exception
- Throws:
Exception
setParticipant
public void setParticipant(String values)
throws Exception
- Throws:
Exception
getParticipantStatus
public String getParticipantStatus()
setParticipantStatus
public void setParticipantStatus(String values)
throws Exception
- Throws:
Exception
isSendMail
protected boolean isSendMail()
importInvitationEvent
public void importInvitationEvent(org.exoplatform.calendar.service.CalendarSetting calSetting,
org.exoplatform.calendar.service.CalendarEvent event,
String calendarId,
String formtime)
throws Exception
- Fill data from invitation event to current event form
- Parameters:
calSetting - event - calendarId - formtime -
- Throws:
Exception
sendMail
protected void sendMail(org.exoplatform.services.mail.MailService svr,
org.exoplatform.services.organization.OrganizationService orSvr,
org.exoplatform.calendar.service.CalendarSetting setting,
String fromId,
String toId,
org.exoplatform.calendar.service.CalendarEvent event)
throws Exception
- Throws:
Exception
getReplyInvitationLink
protected String getReplyInvitationLink(int answer,
org.exoplatform.services.organization.User invitor,
String invitee,
String eXoId,
org.exoplatform.calendar.service.CalendarEvent event)
throws Exception
- Throws:
Exception
getAttachment
public org.exoplatform.calendar.service.Attachment getAttachment(String attId)
getParticipantStatusList
public List<UIEventForm.ParticipantStatus> getParticipantStatusList()
downloadAtt
public static void downloadAtt(org.exoplatform.webui.event.Event<?> event,
org.exoplatform.webui.form.UIForm uiForm,
boolean isEvent)
throws Exception
- Throws:
Exception
saveAndNoAsk
public void saveAndNoAsk(org.exoplatform.webui.event.Event<UIEventForm> event,
boolean isSend,
boolean updateSeries)
throws Exception
- Throws:
Exception
setRepeatEvent
public void setRepeatEvent(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
throws Exception
- Throws:
Exception
setRepeatSummary
public void setRepeatSummary(String summary)
getRepeatSummary
public String getRepeatSummary()
getRepeatEvent
public org.exoplatform.calendar.service.CalendarEvent getRepeatEvent()
buildRepeatSummary
public String buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
throws Exception
- Build the repeating summary, i.e: daily every 2 days, until 02/03/2011.
The summary structure is defined in resource bundle, it contains some parameters and
will be replaced by values from repeatEvent.
There are 6 parameters: {count}, {until}, {interval}, {byDays}, {theDay}, {theNumber}.
Some labels in resource bundle to define numbers (the first, the second, ...) which were used in summary
- Parameters:
repeatEvent - the repeating event
- Returns:
- summary string about repeating event
- Throws:
Exception
Copyright © 2003–2014 eXo Platform SAS. All rights reserved.