|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.social.client.core.service.ActivitiesRealtimeListAccessV1Alpha3
public class ActivitiesRealtimeListAccessV1Alpha3
Created by The eXo Platform SAS Author : phuonglm phuonglm@exoplatform.com Jul 5, 2011
| Nested Class Summary | |
|---|---|
static class |
ActivitiesRealtimeListAccessV1Alpha3.ActivityType
The activity type. |
| Constructor Summary | |
|---|---|
ActivitiesRealtimeListAccessV1Alpha3(RestIdentity ownerIdentity,
ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType,
QueryParams queryParams)
The constructor. |
|
| Method Summary | |
|---|---|
ActivitiesRealtimeListAccessV1Alpha3.ActivityType |
getActivityType()
Gets the activity type. |
int |
getNumberOfNewer(RestActivity baseElement)
Gets the number of newer elements based on the provided element. |
int |
getNumberOfOlder(RestActivity baseElement)
Gets the number of older elements based on the provided element. |
RestIdentity |
getOwnerIdentity()
Gets the identity. |
int |
getSize()
Returns the list size. |
boolean |
hasNewer(RestActivity baseElement)
Checks if there is newer elements than the provided element. |
boolean |
hasOlder(RestActivity baseElement)
Checks if there is older elements than the provided element. |
RestActivity[] |
load(int index,
int limit)
Retrieves an array of objects from the list access. |
List<RestActivity> |
loadAsList(int index,
int limit)
Retrieves a list of objects from the list access. |
RestActivity[] |
loadNewer(RestActivity baseElement,
int limit)
Loads newer elements based on the provided element. |
List<RestActivity> |
loadNewerAsList(RestActivity baseElement,
int limit)
Loads newer elements based on the provided element. |
RestActivity[] |
loadOlder(RestActivity baseElement,
int limit)
Loads older elements based on the provided based element. |
List<RestActivity> |
loadOlderAsList(RestActivity baseElement,
int limit)
Loads older elements based on the provided based element. |
void |
setActivityType(ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType)
Sets the activity type. |
void |
setOwnerIdentity(RestIdentity ownerIdentity)
Sets the identity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivitiesRealtimeListAccessV1Alpha3(RestIdentity ownerIdentity,
ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType,
QueryParams queryParams)
ownerIdentity - activityType - | Method Detail |
|---|
public int getNumberOfNewer(RestActivity baseElement)
getNumberOfNewer in interface RealtimeListAccess<RestActivity>baseElement - the provided based element
public int getNumberOfOlder(RestActivity baseElement)
getNumberOfOlder in interface RealtimeListAccess<RestActivity>baseElement - the provided element
public boolean hasNewer(RestActivity baseElement)
throws SocialClientLibException
hasNewer in interface RealtimeListAccess<RestActivity>baseElement - the based element
SocialClientLibException
public boolean hasOlder(RestActivity baseElement)
throws SocialClientLibException
hasOlder in interface RealtimeListAccess<RestActivity>baseElement - the based element
SocialClientLibException
public RestActivity[] loadNewer(RestActivity baseElement,
int limit)
throws SocialClientLibException
loadNewer in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of newer elements to load
SocialClientLibException
public List<RestActivity> loadNewerAsList(RestActivity baseElement,
int limit)
throws SocialClientLibException
loadNewerAsList in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of newer elements to load
SocialClientLibException
public RestActivity[] loadOlder(RestActivity baseElement,
int limit)
throws SocialClientLibException
loadOlder in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of older elements to load
SocialClientLibException
public List<RestActivity> loadOlderAsList(RestActivity baseElement,
int limit)
throws SocialClientLibException
loadOlderAsList in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of older elements to load
SocialClientLibExceptionpublic int getSize()
getSize in interface ListAccess<RestActivity>
public RestActivity[] load(int index,
int limit)
throws SocialClientLibException
Retrieves an array of objects from the list access.
The index value and the lenght value cannot be negative, and the sum of the index and the length cannot be greater than the list size. Those values are considered as non correct.
load in interface ListAccess<RestActivity>index - the indexlimit - the limit
SocialClientLibException
public List<RestActivity> loadAsList(int index,
int limit)
throws SocialClientLibException
loadAsList in interface ListAccess<RestActivity>SocialClientLibExceptionpublic ActivitiesRealtimeListAccessV1Alpha3.ActivityType getActivityType()
public void setActivityType(ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType)
activityType - public RestIdentity getOwnerIdentity()
public void setOwnerIdentity(RestIdentity ownerIdentity)
ownerIdentity -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||