Package org.apache.unomi.api.services
Interface TopicService
- All Known Implementing Classes:
TopicServiceImpl
public interface TopicService
-
Method Summary
Modifier and TypeMethodDescriptionbooleanRemoves the topic identified by the specified identifier.Retrieves the topic identified by the specified identifier.Saves the specified topic in the context server.Retrieves topic matching the specified query.
-
Method Details
-
load
Retrieves the topic identified by the specified identifier.- Parameters:
topicId- the identifier of the topic to retrieve- Returns:
- the topic identified by the specified identifier or
nullif no such topic exists
-
save
Saves the specified topic in the context server.- Parameters:
topic- the topic to be saved- Returns:
- the newly saved topic if the creation or update was successful,
nullotherwise
-
search
Retrieves topic matching the specified query.- Parameters:
query- aQueryspecifying which elements to retrieve- Returns:
- a
PartialListofTopicmetadata
-
delete
Removes the topic identified by the specified identifier.- Parameters:
topicId- the identifier of the profile or persona to delete- Returns:
trueif the deletion was successful,falseotherwise
-