public class RefappStreamsActivityManager extends Object implements StreamsActivityManager
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE
Size of the memory buffer to store events.
|
| Constructor and Description |
|---|
RefappStreamsActivityManager(com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.streams.spi.StreamsI18nResolver i18nResolver,
RefappRenderer refappRenderer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(StreamsEntryRequest entryRequest)
Add an activities entry to the in-memory buffer.
|
URI |
buildUriId(int id)
Build the URI to access entry detail from integer id.
|
Iterable<com.atlassian.streams.api.StreamsEntry> |
getEntries(com.atlassian.streams.api.ActivityRequest activityRequest)
Get the activities, with filter applied.
|
com.atlassian.streams.api.StreamsEntry |
getEntry(int id)
Get entry by id.
|
boolean |
removeEntry(int id)
Remove an activity entry.
|
public static final int BUFFER_SIZE
public RefappStreamsActivityManager(com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.streams.spi.StreamsI18nResolver i18nResolver,
RefappRenderer refappRenderer)
public Iterable<com.atlassian.streams.api.StreamsEntry> getEntries(com.atlassian.streams.api.ActivityRequest activityRequest)
StreamsActivityManagergetEntries in interface StreamsActivityManageractivityRequest - the activities request.public void addEntry(StreamsEntryRequest entryRequest)
StreamsActivityManageraddEntry in interface StreamsActivityManagerentryRequest - the entry information to add.public boolean removeEntry(int id)
StreamsActivityManagerremoveEntry in interface StreamsActivityManagerid - the entry to remove.public com.atlassian.streams.api.StreamsEntry getEntry(int id)
StreamsActivityManagergetEntry in interface StreamsActivityManagerid - id of the entry.public URI buildUriId(int id)
StreamsActivityManagerbuildUriId in interface StreamsActivityManagerid - id.Copyright © 2018 Atlassian. All rights reserved.