org.exoplatform.cs.event
Class UICreateEvent

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.cs.event.UICreateEvent

public class UICreateEvent
extends org.exoplatform.webui.form.UIForm

Created with IntelliJ IDEA. User: Racha Date: 01/11/12 Time: 11:08 To change this template use File | Settings | File Templates.


Nested Class Summary
static class UICreateEvent.CancelActionListener
           
static class UICreateEvent.NextActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String ALL_DAY
           
static String ANY
           
static String ANY_OF
           
static String CALENDAR
           
static String CLOSE_PARENTHESIS
           
static String COLON
           
static String COMMA
           
static long DEFAULT_TIME_INTERVAL
           
static String DISPLAY_TIMEFORMAT
           
static String DOT
           
static String END_EVENT
           
static String END_TIME
           
static String OPEN_PARENTHESIS
           
static String PRIVATE_CALENDARS
           
static String PRIVATE_TYPE
           
static String PUBLIC_CALENDARS
           
static String PUBLIC_TYPE
           
static String SHARED_CALENDARS
           
static String SHARED_TYPE
           
static String SLASH_COLON
           
static String START_EVENT
           
static String START_TIME
           
static String TIMEFORMAT
           
 
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
 
Constructor Summary
UICreateEvent()
           
 
Method Summary
static boolean canEdit(org.exoplatform.services.organization.OrganizationService oService, String[] savePerms, String username)
           
static String enCodeTitle(String s)
           
static Date getBeginDate(boolean isAllDate, String dateFormat, String fromField, String timeFormat, String timeField)
           
static Calendar getBeginDay(Calendar cal)
           
static Calendar getBeginDay(Date date)
           
static Calendar getCalendarInstanceBySetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
           
static List<org.exoplatform.webui.core.model.SelectItem> getCalendarOption()
           
static org.exoplatform.calendar.service.CalendarService getCalendarService()
           
static String getCheckPermissionString()
           
static String getCurrentUser()
           
static org.exoplatform.calendar.service.CalendarSetting getCurrentUserCalendarSetting()
           
 Date getDateTime(org.exoplatform.webui.form.UIFormDateTimeInput input, String selectId)
           
protected  String getDateTimeFormat()
           
static Date getEndDate(boolean isAllDate, String dateFormat, String fromField, String timeFormat, String timeField)
           
static Calendar getEndDay(Calendar cal)
           
static Calendar getEndDay(Date date)
           
static String getGroupCalendarName(String groupName, String calendarName)
           
static Calendar getInstanceOfCurrentCalendar()
           
static String getResourceBundle(String key, String defaultValue)
           
static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String timeFormat)
           
static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String labelFormat, String valueFormat, long timeInteval)
           
static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String labelFormat, String valueFormat, long timeInteval, Locale locale)
           
 org.exoplatform.webui.form.UIFormSelectBoxWithGroups getUIFormSelectBoxGroup(String id)
           
static String[] getUserGroups(String username)
           
static boolean hasEditPermission(String[] savePerms, String[] checkPerms)
           
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, 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, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, 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
 

Field Detail

PRIVATE_CALENDARS

public static final String PRIVATE_CALENDARS
See Also:
Constant Field Values

SHARED_CALENDARS

public static final String SHARED_CALENDARS
See Also:
Constant Field Values

PUBLIC_CALENDARS

public static final String PUBLIC_CALENDARS
See Also:
Constant Field Values

PRIVATE_TYPE

public static final String PRIVATE_TYPE
See Also:
Constant Field Values

SHARED_TYPE

public static final String SHARED_TYPE
See Also:
Constant Field Values

PUBLIC_TYPE

public static final String PUBLIC_TYPE
See Also:
Constant Field Values

COLON

public static final String COLON
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

ANY

public static final String ANY
See Also:
Constant Field Values

ANY_OF

public static final String ANY_OF
See Also:
Constant Field Values

DOT

public static final String DOT
See Also:
Constant Field Values

SLASH_COLON

public static final String SLASH_COLON
See Also:
Constant Field Values

OPEN_PARENTHESIS

public static final String OPEN_PARENTHESIS
See Also:
Constant Field Values

CLOSE_PARENTHESIS

public static final String CLOSE_PARENTHESIS
See Also:
Constant Field Values

END_EVENT

public static String END_EVENT

CALENDAR

public static String CALENDAR

START_EVENT

public static String START_EVENT

START_TIME

public static String START_TIME

END_TIME

public static String END_TIME

ALL_DAY

public static String ALL_DAY

TIMEFORMAT

public static final String TIMEFORMAT
See Also:
Constant Field Values

DISPLAY_TIMEFORMAT

public static final String DISPLAY_TIMEFORMAT
See Also:
Constant Field Values

DEFAULT_TIME_INTERVAL

public static final long DEFAULT_TIME_INTERVAL
See Also:
Constant Field Values
Constructor Detail

UICreateEvent

public UICreateEvent()
              throws Exception
Throws:
Exception
Method Detail

getDateTimeFormat

protected String getDateTimeFormat()

getDateTime

public Date getDateTime(org.exoplatform.webui.form.UIFormDateTimeInput input,
                        String selectId)
                 throws Exception
Throws:
Exception

getBeginDate

public static Date getBeginDate(boolean isAllDate,
                                String dateFormat,
                                String fromField,
                                String timeFormat,
                                String timeField)
                         throws Exception
Throws:
Exception

getEndDate

public static Date getEndDate(boolean isAllDate,
                              String dateFormat,
                              String fromField,
                              String timeFormat,
                              String timeField)
                       throws Exception
Throws:
Exception

getCurrentUserCalendarSetting

public static org.exoplatform.calendar.service.CalendarSetting getCurrentUserCalendarSetting()

getInstanceOfCurrentCalendar

public static Calendar getInstanceOfCurrentCalendar()

getCalendarInstanceBySetting

public static Calendar getCalendarInstanceBySetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting)

getBeginDay

public static Calendar getBeginDay(Calendar cal)

getEndDay

public static Calendar getEndDay(Calendar cal)

getBeginDay

public static Calendar getBeginDay(Date date)

getEndDay

public static Calendar getEndDay(Date date)

getTimesSelectBoxOptions

public static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String timeFormat)

getTimesSelectBoxOptions

public static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String labelFormat,
                                                                                                       String valueFormat,
                                                                                                       long timeInteval)

getTimesSelectBoxOptions

public static List<org.exoplatform.webui.core.model.SelectItemOption<String>> getTimesSelectBoxOptions(String labelFormat,
                                                                                                       String valueFormat,
                                                                                                       long timeInteval,
                                                                                                       Locale locale)

getCalendarOption

public static List<org.exoplatform.webui.core.model.SelectItem> getCalendarOption()
                                                                           throws Exception
Throws:
Exception

getCalendarService

public static org.exoplatform.calendar.service.CalendarService getCalendarService()
                                                                           throws Exception
Throws:
Exception

getCheckPermissionString

public static String getCheckPermissionString()
                                       throws Exception
Throws:
Exception

hasEditPermission

public static boolean hasEditPermission(String[] savePerms,
                                        String[] checkPerms)

getResourceBundle

public static String getResourceBundle(String key,
                                       String defaultValue)

getCurrentUser

public static String getCurrentUser()
                             throws Exception
Throws:
Exception

canEdit

public static boolean canEdit(org.exoplatform.services.organization.OrganizationService oService,
                              String[] savePerms,
                              String username)
                       throws Exception
Throws:
Exception

getUserGroups

public static final String[] getUserGroups(String username)
                                    throws Exception
Throws:
Exception

getGroupCalendarName

public static String getGroupCalendarName(String groupName,
                                          String calendarName)

enCodeTitle

public static String enCodeTitle(String s)

getUIFormSelectBoxGroup

public org.exoplatform.webui.form.UIFormSelectBoxWithGroups getUIFormSelectBoxGroup(String id)


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.