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.
Since:
May 9, 2011
Author:
hoatle (hoatlevan at gmail dot com)
  • Constructor Summary

    Constructors
    Constructor
    Description
    CommentsRealtimeListAccess(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 Type
    Method
    Description
    int
    int
    getNumberOfNewer(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment)
    int
    int
    getNumberOfOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment)
    int
     
    int
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    getUpadtedActivities(Long sinceTime, int limit)
     
    boolean
     
    org.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>
    loadNewer(Long sinceTime, int limit)
    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>
    loadOlder(Long sinceTime, int limit)
    List<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    loadOlder(org.exoplatform.social.core.activity.model.ExoSocialActivity baseComment, int length)
    void
    setSortDescending(boolean sortDescending)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public List<String> loadIdsAsList(int index, int limit)
      Specified by:
      loadIdsAsList in interface org.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:
      loadAsList in interface org.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:
      load in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
      Specified by:
      load in interface org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
      Specified by:
      getSize in interface org.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:
      loadNewer in interface org.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:
      getNumberOfNewer in interface org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    • getNumberOfNewer

      public int getNumberOfNewer(Long sinceTime)
      Specified by:
      getNumberOfNewer in interface org.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:
      loadOlder in interface org.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:
      getNumberOfOlder in interface org.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:
      getUpadtedActivities in interface org.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:
      loadNewer in interface org.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:
      loadOlder in interface org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    • getNumberOfOlder

      public int getNumberOfOlder(Long sinceTime)
      Specified by:
      getNumberOfOlder in interface org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    • getNumberOfUpgrade

      public int getNumberOfUpgrade()
      Specified by:
      getNumberOfUpgrade in interface org.exoplatform.social.common.RealtimeListAccess<org.exoplatform.social.core.activity.model.ExoSocialActivity>
    • isSortDescending

      public boolean isSortDescending()
    • setSortDescending

      public void setSortDescending(boolean sortDescending)