Interface IActivityStreamService
public interface IActivityStreamService
- Since:
- 3.6.0
- Author:
- Miroslav Ruza
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Activity index field that contains ids of all non-empty index fields.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String globalId, Text commentText) boolean
canComment
(String globalId) boolean
canCurrentUserAddComment
(String globalId) void
cleanUp()
getActivity
(String globalId) getActivitySource
(String sourceId) listActivities
(IContextId contextId, String query, int count) listProjectActivities
(String projectId, String query, int count) void
publishActivities
(List<Activity> activities) void
publishActivity
(Activity activity) void
registerSource
(IActivitySource source) void
updateActivity
(String globalId) Used by source to inform this service that the activity was updated, so it needs to be re-indexed.
-
Field Details
-
INDEX_FIELD_FIELDS
Activity index field that contains ids of all non-empty index fields. Custom values are prefixed with "_". Example queries: HAS_VALUE:type, HAS_VALUE:_myCustomValue- See Also:
-
INDEX_FIELD_DOCUMENT_ID
- See Also:
-
INDEX_FIELD_SOURCE_ID
- See Also:
-
INDEX_FIELD_ACTIVITY_ID
- See Also:
-
INDEX_FIELD_CONTEXT_ID
- See Also:
-
INDEX_FIELD_LOCATION
- See Also:
-
INDEX_FIELD_LOCATION_TREE
- See Also:
-
INDEX_FIELD_PROJECT
- See Also:
-
INDEX_FIELD_TYPE
- See Also:
-
INDEX_FIELD_INFO
- See Also:
-
INDEX_FIELD_INFO_STORED
- See Also:
-
INDEX_FIELD_TIMESTAMP
- See Also:
-
INDEX_FIELD_TIMESTAMP_CLEANING
- See Also:
-
INDEX_FIELD_TIMESTAMP_SORTING
- See Also:
-
INDEX_FIELD_TIMESTAMP_STORED
- See Also:
-
INDEX_FIELD_USER
- See Also:
-
INDEX_FIELD_USER_STORED
- See Also:
-
INDEX_FIELD_RESOURCE_LOCATIONS_TREE
- See Also:
-
INDEX_FIELD_RESOURCE_LOCATIONS_STORED
- See Also:
-
INDEX_CUSTOM_FIELD_PREFIX
- See Also:
-
-
Method Details
-
registerSource
-
listActivities
- Parameters:
contextId
- - can be null - null means all contexts. Can be also project context.query
- - can be nullcount
-
-
listProjectActivities
- Parameters:
projectId
- - can not be nullquery
- - can be nullcount
-
-
getActivity
-
publishActivity
-
publishActivities
-
updateActivity
Used by source to inform this service that the activity was updated, so it needs to be re-indexed.- Parameters:
globalId
-
-
canCurrentUserAddComment
-
canComment
-
addComment
-
getUserAndProjectResolver
UserAndProjectResolver getUserAndProjectResolver() -
cleanUp
void cleanUp() -
getActivitySource
-
getActivitySources
List<IActivitySource> getActivitySources()
-