public class BaseUIActivity
extends org.exoplatform.webui.form.UIForm
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseUIActivity.CommentStatus |
static class |
BaseUIActivity.DeleteActivityActionListener |
static class |
BaseUIActivity.DeleteCommentActionListener |
static class |
BaseUIActivity.LikeActivityActionListener |
static class |
BaseUIActivity.LoadLikesActionListener |
static class |
BaseUIActivity.PostCommentActionListener |
static class |
BaseUIActivity.SetCommentListStatusActionListener |
static class |
BaseUIActivity.ToggleDisplayCommentFormActionListener |
| Modifier and Type | Field and Description |
|---|---|
protected static int |
LIKES_NUM_DEFAULT |
| Constructor and Description |
|---|
BaseUIActivity()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
commentListToggleable() |
String |
event(String actionName,
String callback,
boolean updateForm) |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
getActivity() |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivityCommentsListAccess() |
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getAllComments()
Deprecated.
|
int |
getAllCommentSize()
Gets number of comments of the specified activity
|
org.exoplatform.social.core.identity.model.Identity |
getCommenterIdentity() |
BaseUIActivity.CommentStatus |
getCommentListStatus() |
int |
getCommentMaxCharactersAllowed() |
int |
getCommentMinCharactersAllowed() |
List<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getComments()
Gets all the comments or latest comments or empty list comments
Gets latest comments for displaying at the first time
if available, returns max LATEST_COMMENTS_SIZE latest comments.
|
int |
getCurrentLoadIndex() |
String[] |
getDisplayedIdentityLikes()
Removes currently viewing userId if he liked this activity.
|
protected org.exoplatform.social.core.activity.model.ExoSocialActivity |
getI18N(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
Allow child can be override this method to process I18N
|
String[] |
getIdentityLikes() |
int |
getLoadCapacity() |
org.exoplatform.social.core.identity.model.Identity |
getOwnerIdentity() |
String |
getPostedTimeInSpaceString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle,
long postedTime)
Gets prettyTime by timestamp of activities in space.
|
String |
getPostedTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle,
long postedTime)
Gets prettyTime by timestamp.
|
org.exoplatform.social.core.identity.model.Identity |
getSpaceCreatorIdentity() |
boolean |
isActivityCommentable() |
boolean |
isActivityCommentAndLikable() |
boolean |
isActivityDeletable() |
boolean |
isAllCommentsHidden() |
boolean |
isAllLoaded() |
boolean |
isCommentDeletable(String activityUserId) |
boolean |
isCommentFormDisplayed() |
boolean |
isCommentFormFocused() |
boolean |
isDeletedSpace(String streamOwner) |
boolean |
isLiked()
Checks if this activity is liked by the remote user.
|
protected boolean |
isNoLongerExisting(String activityId,
org.exoplatform.webui.event.Event<BaseUIActivity> event) |
boolean |
isSpaceActivity() |
protected boolean |
isSpaceStreamOwner()
Checks stream owner is space or user.
|
protected boolean |
isUISpaceActivitiesDisplay()
Checks this activity is child of UISpaceActivitiesDisplay or not.
|
boolean |
isUserActivity() |
void |
processRender(org.exoplatform.webui.application.WebuiRequestContext context) |
protected void |
refresh()
Refresh, regets all likes, comments of this activity.
|
protected void |
saveComment(String remoteUser,
String message) |
void |
setActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity) |
void |
setActivityCommentsListAccess(org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> activityCommentsListAccess) |
void |
setAllCommentsHidden(boolean allCommentsHidden) |
void |
setAllLoaded(boolean allLoaded) |
void |
setCommentFormDisplayed(boolean commentFormDisplayed) |
void |
setCommentFormFocused(boolean commentFormFocused) |
void |
setCommentListStatus(BaseUIActivity.CommentStatus status) |
void |
setCommentMaxCharactersAllowed(int num) |
void |
setCommentMinCharactersAllowed(int num) |
void |
setIdenityLikes(String[] identityLikes) |
protected void |
setLike(boolean isLiked) |
void |
setLoadCapacity(int loadCapacity) |
void |
setOwnerIdentity(org.exoplatform.social.core.identity.model.Identity ownerIdentity) |
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, urladdChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, 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, urlprotected static final int LIKES_NUM_DEFAULT
public BaseUIActivity()
Exceptionpublic org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> getActivityCommentsListAccess()
public void setActivityCommentsListAccess(org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> activityCommentsListAccess)
public int getCurrentLoadIndex()
public int getLoadCapacity()
public void setLoadCapacity(int loadCapacity)
public void setActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public org.exoplatform.social.core.activity.model.ExoSocialActivity getActivity()
public void setCommentMinCharactersAllowed(int num)
public int getCommentMinCharactersAllowed()
public void setCommentMaxCharactersAllowed(int num)
public int getCommentMaxCharactersAllowed()
public void setCommentFormDisplayed(boolean commentFormDisplayed)
public boolean isCommentFormDisplayed()
public boolean isAllLoaded()
public void setAllLoaded(boolean allLoaded)
public void setAllCommentsHidden(boolean allCommentsHidden)
public boolean isAllCommentsHidden()
public void setCommentFormFocused(boolean commentFormFocused)
public boolean isCommentFormFocused()
public void setCommentListStatus(BaseUIActivity.CommentStatus status)
public BaseUIActivity.CommentStatus getCommentListStatus()
public boolean commentListToggleable()
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getComments()
@Deprecated public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getAllComments()
public int getAllCommentSize()
public String[] getIdentityLikes()
public String[] getDisplayedIdentityLikes() throws Exception
Exceptionpublic void setIdenityLikes(String[] identityLikes)
public String event(String actionName, String callback, boolean updateForm) throws Exception
Exceptionpublic String getPostedTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle, long postedTime) throws Exception
resourceBundle - postedTime - Exceptionpublic String getPostedTimeInSpaceString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle, long postedTime) throws Exception
resourceBundle - postedTime - Exceptionprotected void saveComment(String remoteUser, String message) throws Exception
Exceptionpublic boolean isLiked()
throws Exception
Exceptionprotected void refresh()
throws org.exoplatform.social.core.storage.ActivityStorageException
org.exoplatform.social.core.storage.ActivityStorageExceptionpublic boolean isUserActivity()
public boolean isSpaceActivity()
public boolean isActivityDeletable()
throws org.exoplatform.social.core.space.SpaceException
org.exoplatform.social.core.space.SpaceExceptionpublic boolean isActivityCommentAndLikable()
throws Exception
Exceptionpublic boolean isCommentDeletable(String activityUserId) throws org.exoplatform.social.core.space.SpaceException
org.exoplatform.social.core.space.SpaceExceptionpublic void setOwnerIdentity(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
public org.exoplatform.social.core.identity.model.Identity getOwnerIdentity()
public org.exoplatform.social.core.identity.model.Identity getSpaceCreatorIdentity()
protected boolean isSpaceStreamOwner()
protected boolean isUISpaceActivitiesDisplay()
public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
throws Exception
processRender in class org.exoplatform.webui.form.UIFormExceptionprotected boolean isNoLongerExisting(String activityId, org.exoplatform.webui.event.Event<BaseUIActivity> event)
public boolean isDeletedSpace(String streamOwner)
public org.exoplatform.social.core.identity.model.Identity getCommenterIdentity()
protected org.exoplatform.social.core.activity.model.ExoSocialActivity getI18N(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity - Copyright © 2003–2015 eXo Platform SAS. All rights reserved.