Class CommentsRealtimeListAccess
java.lang.Object
org.exoplatform.social.core.activity.CommentsRealtimeListAccess
- All Implemented Interfaces:
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>,org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
public class CommentsRealtimeListAccess
extends Object
implements org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
The realtime list access for comments of activities.
-
Constructor Summary
ConstructorsConstructorDescriptionCommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity) The constructor.CommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity, boolean loadSubComments) The constructor.CommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity, boolean loadSubComments, boolean sortDescending) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetNumberOfNewer(Long sinceTime) intgetNumberOfNewer(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment) intgetNumberOfOlder(Long sinceTime) intgetNumberOfOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment) intintgetSize()List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getUpadtedActivities(Long sinceTime, int limit) booleanorg.exoplatform.social.core.activity.model.ExoSocialActivity[]load(int index, int limit) List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadAsList(int index, int limit) loadIdsAsList(int index, int limit) List<org.exoplatform.social.core.activity.model.ExoSocialActivity> List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadNewer(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment, int length) List<org.exoplatform.social.core.activity.model.ExoSocialActivity> List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment, int length) voidsetSortDescending(boolean sortDescending)
-
Constructor Details
-
CommentsRealtimeListAccess
public CommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity, boolean loadSubComments, boolean sortDescending) The constructor.- Parameters:
theActivityStorage-theExistingActivity-loadSubComments-sortDescending-
-
CommentsRealtimeListAccess
public CommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity, boolean loadSubComments) The constructor.- Parameters:
theActivityStorage-theExistingActivity-loadSubComments-
-
CommentsRealtimeListAccess
public CommentsRealtimeListAccess(org.exoplatform.social.core.storage.api.ActivityStorage theActivityStorage, org.exoplatform.social.core.activity.model.ExoSocialActivity theExistingActivity) The constructor.- Parameters:
theActivityStorage-theExistingActivity-
-
-
Method Details
-
loadIdsAsList
- Specified by:
loadIdsAsListin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
loadAsList
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadAsList(int index, int limit) - Specified by:
loadAsListin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
load
public org.exoplatform.social.core.activity.model.ExoSocialActivity[] load(int index, int limit) - Specified by:
loadin interfaceorg.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>- Specified by:
loadin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getSize
public int getSize()- Specified by:
getSizein interfaceorg.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>- Specified by:
getSizein interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
loadNewer
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadNewer(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment, int length) - Specified by:
loadNewerin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getNumberOfNewer
public int getNumberOfNewer(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment) - Specified by:
getNumberOfNewerin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getNumberOfNewer
- Specified by:
getNumberOfNewerin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
loadOlder
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment, int length) - Specified by:
loadOlderin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getNumberOfOlder
public int getNumberOfOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment) - Specified by:
getNumberOfOlderin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getUpadtedActivities
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> getUpadtedActivities(Long sinceTime, int limit) - Specified by:
getUpadtedActivitiesin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
loadNewer
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadNewer(Long sinceTime, int limit) - Specified by:
loadNewerin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
loadOlder
public List<org.exoplatform.social.core.activity.model.ExoSocialActivity> loadOlder(Long sinceTime, int limit) - Specified by:
loadOlderin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getNumberOfOlder
- Specified by:
getNumberOfOlderin interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
getNumberOfUpgrade
public int getNumberOfUpgrade()- Specified by:
getNumberOfUpgradein interfaceorg.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
-
isSortDescending
public boolean isSortDescending() -
setSortDescending
public void setSortDescending(boolean sortDescending)
-