Search in sources :

Example 1 with Tag

use of org.finos.symphony.toolkit.workflow.content.Tag in project spring-bot by finos.

the class SymphonyHistoryImpl method getEntityJsonFromHistory.

@Override
public List<EntityJson> getEntityJsonFromHistory(Tag t, Addressable address, Instant since) {
    MessageSearchQuery msq = createMessageSearchQuery(null, address, since, t);
    V4MessageList out = messageApi.v1MessageSearchPost(msq, null, null, 0, 50, null, null);
    return out.stream().map(msg -> getEntityJson(msg)).filter(e -> e != null).collect(Collectors.toList());
}
Also used : Tag(org.finos.symphony.toolkit.workflow.content.Tag) UsersApi(com.symphony.api.pod.UsersApi) SymphonyUser(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser) AbstractStreamResolving(org.finos.symphony.toolkit.workflow.sources.symphony.streams.AbstractStreamResolving) SymphonyApiProperties(org.finos.symphony.toolkit.spring.api.properties.SymphonyApiProperties) Instant(java.time.Instant) Collectors(java.util.stream.Collectors) V4MessageList(com.symphony.api.model.V4MessageList) StreamsApi(com.symphony.api.pod.StreamsApi) SymphonyAddressable(org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyAddressable) CashTag(org.finos.symphony.toolkit.workflow.sources.symphony.content.CashTag) MessagesApi(com.symphony.api.agent.MessagesApi) List(java.util.List) Addressable(org.finos.symphony.toolkit.workflow.content.Addressable) V4Message(com.symphony.api.model.V4Message) EntityJson(org.finos.symphony.toolkit.json.EntityJson) HashTag(org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag) TagSupport(org.finos.symphony.toolkit.workflow.sources.symphony.TagSupport) Entry(java.util.Map.Entry) Optional(java.util.Optional) EntityJsonConverter(org.finos.symphony.toolkit.workflow.sources.symphony.json.EntityJsonConverter) MessageSearchQuery(com.symphony.api.model.MessageSearchQuery) V4MessageList(com.symphony.api.model.V4MessageList) MessageSearchQuery(com.symphony.api.model.MessageSearchQuery)

Aggregations

MessagesApi (com.symphony.api.agent.MessagesApi)1 MessageSearchQuery (com.symphony.api.model.MessageSearchQuery)1 V4Message (com.symphony.api.model.V4Message)1 V4MessageList (com.symphony.api.model.V4MessageList)1 StreamsApi (com.symphony.api.pod.StreamsApi)1 UsersApi (com.symphony.api.pod.UsersApi)1 Instant (java.time.Instant)1 List (java.util.List)1 Entry (java.util.Map.Entry)1 Optional (java.util.Optional)1 Collectors (java.util.stream.Collectors)1 EntityJson (org.finos.symphony.toolkit.json.EntityJson)1 SymphonyApiProperties (org.finos.symphony.toolkit.spring.api.properties.SymphonyApiProperties)1 Addressable (org.finos.symphony.toolkit.workflow.content.Addressable)1 Tag (org.finos.symphony.toolkit.workflow.content.Tag)1 TagSupport (org.finos.symphony.toolkit.workflow.sources.symphony.TagSupport)1 CashTag (org.finos.symphony.toolkit.workflow.sources.symphony.content.CashTag)1 HashTag (org.finos.symphony.toolkit.workflow.sources.symphony.content.HashTag)1 SymphonyAddressable (org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyAddressable)1 SymphonyUser (org.finos.symphony.toolkit.workflow.sources.symphony.content.SymphonyUser)1