public class ActivitiesRealtimeListAccessV1Alpha3 extends Object implements RealtimeListAccess<RestActivity>
| Modifier and Type | Class and Description |
|---|---|
static class |
ActivitiesRealtimeListAccessV1Alpha3.ActivityType
The activity type.
|
| Constructor and Description |
|---|
ActivitiesRealtimeListAccessV1Alpha3(RestIdentity ownerIdentity,
ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType,
QueryParams queryParams)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ActivitiesRealtimeListAccessV1Alpha3(RestIdentity ownerIdentity, ActivitiesRealtimeListAccessV1Alpha3.ActivityType activityType, QueryParams queryParams)
ownerIdentity - activityType - public int getNumberOfNewer(RestActivity baseElement)
getNumberOfNewer in interface RealtimeListAccess<RestActivity>baseElement - the provided based elementpublic int getNumberOfOlder(RestActivity baseElement)
getNumberOfOlder in interface RealtimeListAccess<RestActivity>baseElement - the provided elementpublic boolean hasNewer(RestActivity baseElement) throws SocialClientLibException
hasNewer in interface RealtimeListAccess<RestActivity>baseElement - the based elementSocialClientLibExceptionpublic boolean hasOlder(RestActivity baseElement) throws SocialClientLibException
hasOlder in interface RealtimeListAccess<RestActivity>baseElement - the based elementSocialClientLibExceptionpublic RestActivity[] loadNewer(RestActivity baseElement, int limit) throws SocialClientLibException
loadNewer in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of newer elements to loadSocialClientLibExceptionpublic List<RestActivity> loadNewerAsList(RestActivity baseElement, int limit) throws SocialClientLibException
loadNewerAsList in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of newer elements to loadSocialClientLibExceptionpublic RestActivity[] loadOlder(RestActivity baseElement, int limit) throws SocialClientLibException
loadOlder in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of older elements to loadSocialClientLibExceptionpublic List<RestActivity> loadOlderAsList(RestActivity baseElement, int limit) throws SocialClientLibException
loadOlderAsList in interface RealtimeListAccess<RestActivity>baseElement - the based elementlimit - number of older elements to loadSocialClientLibExceptionpublic 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 limitSocialClientLibExceptionpublic 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 - Copyright © 2011–2016 eXo Platform SAS. All rights reserved.