Package org.apache.unomi.api.services
Interface TopicService
-
- All Known Implementing Classes:
TopicServiceImpl
public interface TopicService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
delete(String topicId)
Removes the topic identified by the specified identifier.Topic
load(String topicId)
Retrieves the topic identified by the specified identifier.Topic
save(Topic topic)
Saves the specified topic in the context server.PartialList<Topic>
search(Query query)
Retrieves topic matching the specified query.
-
-
-
Method Detail
-
load
Topic load(String topicId)
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
null
if no such topic exists
-
save
Topic save(Topic topic)
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,
null
otherwise
-
search
PartialList<Topic> search(Query query)
Retrieves topic matching the specified query.- Parameters:
query
- aQuery
specifying which elements to retrieve- Returns:
- a
PartialList
ofTopic
metadata
-
delete
boolean delete(String topicId)
Removes the topic identified by the specified identifier.- Parameters:
topicId
- the identifier of the profile or persona to delete- Returns:
true
if the deletion was successful,false
otherwise
-
-