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) |
protected void |
focusToLatestComment(String activityId) |
org.exoplatform.social.core.activity.model.ExoSocialActivity |
getActivity() |
org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity> |
getActivityCommentsListAccess() |
protected String |
getActivityPermalink(String activityId) |
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() |
protected String |
getCommentPermalink(String activityId,
String commentId) |
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() |
String |
getSpaceURL() |
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) |
protected boolean |
isNoLongerExisting(String activityId,
org.exoplatform.webui.event.Event<BaseUIActivity> event)
Deprecated.
: Replace by
isNoLongerExisting(String) |
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) |
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 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 String getSpaceURL()
public int getCurrentLoadIndex()
public int getLoadCapacity()
public void setLoadCapacity(int loadCapacity)
public org.exoplatform.social.core.activity.model.ExoSocialActivity getActivity()
public void setActivity(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
public int getCommentMinCharactersAllowed()
public void setCommentMinCharactersAllowed(int num)
public int getCommentMaxCharactersAllowed()
public void setCommentMaxCharactersAllowed(int num)
public boolean isCommentFormDisplayed()
public void setCommentFormDisplayed(boolean commentFormDisplayed)
public boolean isAllLoaded()
public void setAllLoaded(boolean allLoaded)
public boolean isAllCommentsHidden()
public void setAllCommentsHidden(boolean allCommentsHidden)
public boolean isCommentFormFocused()
public void setCommentFormFocused(boolean commentFormFocused)
public BaseUIActivity.CommentStatus getCommentListStatus()
public void setCommentListStatus(BaseUIActivity.CommentStatus status)
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 org.exoplatform.social.core.identity.model.Identity getOwnerIdentity()
public void setOwnerIdentity(org.exoplatform.social.core.identity.model.Identity ownerIdentity)
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)
isNoLongerExisting(String)protected boolean isNoLongerExisting(String activityId)
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 - protected void focusToLatestComment(String activityId)
Copyright © 2003–2017 eXo Platform SAS. All rights reserved.