public class TopicServiceImpl extends Object implements TopicService, org.osgi.framework.SynchronousBundleListener
Constructor and Description |
---|
TopicServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent bundleEvent) |
boolean |
delete(String topicId)
Removes the topic identified by the specified identifier.
|
Topic |
load(String topicId)
Retrieves the topic identified by the specified identifier.
|
void |
postConstruct() |
void |
preDestroy() |
Topic |
save(Topic topic)
Saves the specified topic in the context server.
|
PartialList<Topic> |
search(Query query)
Retrieves topic matching the specified query.
|
void |
setBundleContext(org.osgi.framework.BundleContext bundleContext) |
void |
setPersistenceService(PersistenceService persistenceService) |
public void setPersistenceService(PersistenceService persistenceService)
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public Topic load(String topicId)
TopicService
load
in interface TopicService
topicId
- the identifier of the topic to retrievenull
if no such topic existspublic Topic save(Topic topic)
TopicService
save
in interface TopicService
topic
- the topic to be savednull
otherwisepublic PartialList<Topic> search(Query query)
TopicService
search
in interface TopicService
query
- a Query
specifying which elements to retrievePartialList
of Topic
metadatapublic boolean delete(String topicId)
TopicService
delete
in interface TopicService
topicId
- the identifier of the profile or persona to deletetrue
if the deletion was successful, false
otherwisepublic void bundleChanged(org.osgi.framework.BundleEvent bundleEvent)
bundleChanged
in interface org.osgi.framework.BundleListener
public void postConstruct()
public void preDestroy()
Copyright © 2014–2022 Apache Software Foundation. All rights reserved.