org.exoplatform.calendar.webui
Class UICalendars
java.lang.Object
org.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
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 classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| 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 |
| 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 |
CALENDARID
public static String CALENDARID
CALTYPE
public static String CALTYPE
CALNAME
public static String CALNAME
CALCOLOR
public static String CALCOLOR
UICalendars
public UICalendars()
throws Exception
- Throws:
Exception
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.