org.exoplatform.calendar.webui
Class UICalendars

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.calendar.webui.UICalendars

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

Created by The eXo Platform SARL Author : Hung Nguyen hung.nguyen@exoplatform.com Aus 01, 2007 2:48:18 PM
modified by: Anh-Tu NGUYEN


Nested Class Summary
static class UICalendars.AddCalendarActionListener
           
static class UICalendars.AddEventActionListener
           
static class UICalendars.AddEventCategoryActionListener
           
static class UICalendars.AddTaskActionListener
           
static class UICalendars.CalendarSettingActionListener
           
static class UICalendars.ChangeColorActionListener
           
static class UICalendars.EditCalendarActionListener
           
static class UICalendars.ExportCalendarActionListener
           
static class UICalendars.ExportCalendarsActionListener
           
static class UICalendars.ImportCalendarActionListener
           
static class UICalendars.RefreshRemoteCalendarActionListener
           
static class UICalendars.RemoteCalendarActionListener
           
static class UICalendars.RemoveCalendarActionListener
           
static class UICalendars.RemoveSharedCalendarActionListener
           
static class UICalendars.ShareCalendarActionListener
           
static class UICalendars.TickActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String CALCOLOR
           
static String CALENDARID
           
static String CALNAME
           
static String CALTYPE
           
 
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
UICalendars()
           
 
Method Summary
static String buildId(int calTye, String calId)
           
 boolean canEdit(String[] savePerms, String[] checkPerms)
           
 void checkAll()
           
 List<org.exoplatform.calendar.service.Calendar> getAllPrivateCalendars()
          get all private calendars for current user if no calendar is found, return a zero length list of calendar
 List<org.exoplatform.calendar.service.Calendar> getAllPublicCalendars()
          get group calendar for user, without duplicated items if no calendar found, return zero length list of calendars
 List<org.exoplatform.calendar.service.CalendarEvent> getAllTask(Calendar formDate, Calendar toDate, String taskStatus)
           
 List<String> getCheckedCalendars()
           
 String[] getCheckedPublicCalendars()
           
 String getCheckPermissionString()
           
 LinkedHashMap<String,String> getColorMap()
           
 String[] getColors()
           
 Calendar getCurrentMiniBeginDate()
           
 Calendar getCurrentMiniEndDate()
           
 org.exoplatform.calendar.service.EventQuery getEventQuery(org.exoplatform.calendar.service.EventQuery eventQuery)
           
 String getLabel(String key)
           
 String[] getPublicCalendarIds()
           
 List<org.exoplatform.calendar.service.GroupCalendarData> getPublicCalendars()
          Deprecated. - get group calendar for user
 org.exoplatform.calendar.service.GroupCalendarData getSharedCalendars()
          return a group of shared calendars for current users if no calendar found, return a group calendar with zero length list of calendars
 String[] getTaskStatus()
           
 void init()
           
protected  boolean isCalendarOfSpace(String[] groupIds)
          check whether calendar is calendar of space based on id of calendar and space id
protected  boolean isCalendarOfSpace1(String[] groupIds)
           
 boolean isRemoteCalendar(String calendarId)
           
 boolean isShowTaskList()
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext arg0)
           
 void setShowTaskList(boolean isShowTaskList)
           
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, 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

CALENDARID

public static String CALENDARID

CALTYPE

public static String CALTYPE

CALNAME

public static String CALNAME

CALCOLOR

public static String CALCOLOR
Constructor Detail

UICalendars

public UICalendars()
            throws Exception
Throws:
Exception
Method Detail

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext arg0)
                   throws Exception
Overrides:
processRender in class org.exoplatform.webui.form.UIForm
Throws:
Exception

init

public void init()
          throws Exception
Throws:
Exception

getLabel

public String getLabel(String key)
Overrides:
getLabel in class org.exoplatform.webui.form.UIForm

setShowTaskList

public void setShowTaskList(boolean isShowTaskList)

isShowTaskList

public boolean isShowTaskList()

getCurrentMiniBeginDate

public Calendar getCurrentMiniBeginDate()

getCurrentMiniEndDate

public Calendar getCurrentMiniEndDate()

getTaskStatus

public String[] getTaskStatus()

getAllTask

public List<org.exoplatform.calendar.service.CalendarEvent> getAllTask(Calendar formDate,
                                                                       Calendar toDate,
                                                                       String taskStatus)
                                                                throws Exception
Throws:
Exception

checkAll

public void checkAll()

getCheckedCalendars

public List<String> getCheckedCalendars()

getCheckedPublicCalendars

public String[] getCheckedPublicCalendars()

getEventQuery

public org.exoplatform.calendar.service.EventQuery getEventQuery(org.exoplatform.calendar.service.EventQuery eventQuery)
                                                          throws Exception
Throws:
Exception

getAllPrivateCalendars

public List<org.exoplatform.calendar.service.Calendar> getAllPrivateCalendars()
                                                                       throws Exception
get all private calendars for current user if no calendar is found, return a zero length list of calendar

Returns:
Throws:
Exception
See Also:
UICalendars.gtmpl - used in template

isCalendarOfSpace

protected boolean isCalendarOfSpace(String[] groupIds)
check whether calendar is calendar of space based on id of calendar and space id

Parameters:
groupIds -
Returns:

isCalendarOfSpace1

protected boolean isCalendarOfSpace1(String[] groupIds)

getPublicCalendars

@Deprecated
public List<org.exoplatform.calendar.service.GroupCalendarData> getPublicCalendars()
                                                                            throws Exception
Deprecated. - get group calendar for user

Returns:
Throws:
Exception

getAllPublicCalendars

public List<org.exoplatform.calendar.service.Calendar> getAllPublicCalendars()
                                                                      throws Exception
get group calendar for user, without duplicated items if no calendar found, return zero length list of calendars

Returns:
Throws:
Exception
See Also:
UICalendars.gtmpl - used in template

getPublicCalendarIds

public String[] getPublicCalendarIds()

getSharedCalendars

public org.exoplatform.calendar.service.GroupCalendarData getSharedCalendars()
                                                                      throws Exception
return a group of shared calendars for current users if no calendar found, return a group calendar with zero length list of calendars

Returns:
Throws:
Exception
See Also:
UICalendars.gtmpl - used in template

buildId

public static String buildId(int calTye,
                             String calId)

getColorMap

public LinkedHashMap<String,String> getColorMap()

getColors

public String[] getColors()

canEdit

public boolean canEdit(String[] savePerms,
                       String[] checkPerms)
                throws Exception
Throws:
Exception

getCheckPermissionString

public String getCheckPermissionString()
                                throws Exception
Throws:
Exception

isRemoteCalendar

public boolean isRemoteCalendar(String calendarId)
                         throws Exception
Throws:
Exception


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.