org.exoplatform.cs.ext.impl
Class CalendarUIActivity

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.social.webui.activity.BaseUIActivity
                  extended by org.exoplatform.cs.ext.impl.CalendarUIActivity

public class CalendarUIActivity
extends org.exoplatform.social.webui.activity.BaseUIActivity


Nested Class Summary
static class CalendarUIActivity.AcceptEventActionListener
           
static class CalendarUIActivity.AssignTaskActionListener
           
static class CalendarUIActivity.SetTaskStatusActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
org.exoplatform.social.webui.activity.BaseUIActivity.CommentStatus, org.exoplatform.social.webui.activity.BaseUIActivity.DeleteActivityActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.DeleteCommentActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.LikeActivityActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.LoadLikesActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.PostCommentActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.SetCommentListStatusActionListener, org.exoplatform.social.webui.activity.BaseUIActivity.ToggleDisplayCommentFormActionListener
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected static String CALENDAR_PREFIX_KEY
           
 
Fields inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
LIKES_NUM_DEFAULT
 
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
CalendarUIActivity()
           
 
Method Summary
 String buildComment(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx, org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
          builds localized string for comment content used in template
 String getActivityParamValue(String key)
           
 String getCalendarId()
           
 String getDateTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx, long time, org.exoplatform.calendar.service.CalendarEvent event)
          returns localized DateTime string for a time, for ex.
 String getDescription()
           
 String getEventEndTime(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx)
           
 String getEventId()
           
 String getEventStartTime(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx)
           
 String getLocation()
           
 String getTaskStatus()
           
 String getTypeOfEvent()
           
static String getUICalendarLabel(String label)
          get label from resource bundle for CalendarUIActivity
 void init()
           
 Boolean isAllDay(org.exoplatform.calendar.service.CalendarEvent event)
          checks if an event is all day
 boolean isAnswered()
           
 boolean isInvited()
           
 boolean isTaskAssigned()
           
 boolean isTaskDone()
           
 void setCalendarId(String calendarId)
           
 void setEventId(String eventId)
           
 
Methods inherited from class org.exoplatform.social.webui.activity.BaseUIActivity
commentListToggleable, event, getActivity, getActivityCommentsListAccess, getAllComments, getCommentListStatus, getCommentMaxCharactersAllowed, getCommentMinCharactersAllowed, getComments, getCurrentLoadIndex, getDisplayedIdentityLikes, getI18N, getIdentityLikes, getLoadCapacity, getOwnerIdentity, getPostedTimeInSpaceString, getPostedTimeString, getSpaceCreatorIdentity, isActivityCommentable, isActivityCommentAndLikable, isActivityDeletable, isAllCommentsHidden, isAllLoaded, isCommentDeletable, isCommentFormDisplayed, isCommentFormFocused, isLiked, isSpaceActivity, isSpaceStreamOwner, isUISpaceActivitiesDisplay, isUserActivity, processRender, refresh, saveComment, setActivity, setActivityCommentsListAccess, setAllCommentsHidden, setAllLoaded, setCommentFormDisplayed, setCommentFormFocused, setCommentListStatus, setCommentMaxCharactersAllowed, setCommentMinCharactersAllowed, setIdenityLikes, setLike, setLoadCapacity, setOwnerIdentity
 
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, 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

CALENDAR_PREFIX_KEY

protected static final String CALENDAR_PREFIX_KEY
See Also:
Constant Field Values
Constructor Detail

CalendarUIActivity

public CalendarUIActivity()
Method Detail

init

public void init()

getTaskStatus

public String getTaskStatus()
Returns:
the taskStatus

isTaskAssigned

public boolean isTaskAssigned()
Returns:
the isTaskAssigned

isTaskDone

public boolean isTaskDone()
Returns:
the isTaskDone

getEventId

public String getEventId()
Returns:
the eventId

setEventId

public void setEventId(String eventId)
Parameters:
eventId - the eventId to set

getCalendarId

public String getCalendarId()
Returns:
the calendarId

setCalendarId

public void setCalendarId(String calendarId)
Parameters:
calendarId - the calendarId to set

isAnswered

public boolean isAnswered()
Returns:
the isAnswered

isInvited

public boolean isInvited()
Returns:
the isInvited

getActivityParamValue

public String getActivityParamValue(String key)

getTypeOfEvent

public String getTypeOfEvent()

getEventStartTime

public String getEventStartTime(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx)

getDescription

public String getDescription()

getLocation

public String getLocation()

getEventEndTime

public String getEventEndTime(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx)

getDateTimeString

public String getDateTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx,
                                long time,
                                org.exoplatform.calendar.service.CalendarEvent event)
returns localized DateTime string for a time, for ex. Friday, February 22, 2013 6:30 PM

Parameters:
ctx -
time -
event -
Returns:

buildComment

public String buildComment(org.exoplatform.webui.core.lifecycle.WebuiBindingContext ctx,
                           org.exoplatform.social.core.activity.model.ExoSocialActivity comment)
builds localized string for comment content used in template

Parameters:
comment -
Returns:
localized string for comment
Since:
activity-type
See Also:
CalendarUIActivity.gtmpl

getUICalendarLabel

public static String getUICalendarLabel(String label)
get label from resource bundle for CalendarUIActivity

Parameters:
label -
Returns:

isAllDay

public Boolean isAllDay(org.exoplatform.calendar.service.CalendarEvent event)
checks if an event is all day

Parameters:
event -
Returns:
true if given event is all day


Copyright © 2013 eXo Platform SAS. All Rights Reserved.