|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.social.webui.activity.BaseUIActivity
public class BaseUIActivity
Base UI Activity for other custom activity ui to extend for displaying.
| Nested Class Summary | |
|---|---|
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
|
| Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer |
|---|
org.exoplatform.webui.core.UIContainer.SelectTabActionListener |
| Field Summary | |
|---|---|
protected static int |
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 | |
|---|---|
BaseUIActivity()
Constructor |
|
| Method Summary | |
|---|---|
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()
|
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 |
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)
|
| 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 |
|---|
protected static final int LIKES_NUM_DEFAULT
| Constructor Detail |
|---|
public BaseUIActivity()
Exception| Method Detail |
|---|
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 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()
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getAllComments()
public String[] getIdentityLikes()
public String[] getDisplayedIdentityLikes()
throws Exception
Exceptionpublic void setIdenityLikes(String[] identityLikes)
public String event(String actionName,
String callback,
boolean updateForm)
throws Exception
Exception
public String getPostedTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle,
long postedTime)
throws Exception
resourceBundle - postedTime -
Exception
public String getPostedTimeInSpaceString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle,
long postedTime)
throws Exception
resourceBundle - postedTime -
Exception
protected void saveComment(String remoteUser,
String message)
throws Exception
Exception
protected void setLike(boolean isLiked)
throws Exception
Exception
public boolean isLiked()
throws Exception
Exception
protected 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.SpaceException
public boolean isActivityCommentAndLikable()
throws Exception
Exception
public boolean isActivityCommentable()
throws Exception
Exception
public 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.UIFormException
protected boolean isNoLongerExisting(String activityId,
org.exoplatform.webui.event.Event<BaseUIActivity> event)
protected org.exoplatform.social.core.activity.model.ExoSocialActivity getI18N(org.exoplatform.social.core.activity.model.ExoSocialActivity activity)
activity -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||