Class TopicServiceImpl
java.lang.Object
org.apache.unomi.services.impl.topics.TopicServiceImpl
- All Implemented Interfaces:
EventListener,TopicService,org.osgi.framework.BundleListener,org.osgi.framework.SynchronousBundleListener
public class TopicServiceImpl
extends Object
implements TopicService, org.osgi.framework.SynchronousBundleListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent bundleEvent) booleanRemoves the topic identified by the specified identifier.Retrieves the topic identified by the specified identifier.voidvoidSaves the specified topic in the context server.Retrieves topic matching the specified query.voidsetBundleContext(org.osgi.framework.BundleContext bundleContext) voidsetPersistenceService(PersistenceService persistenceService)
-
Constructor Details
-
TopicServiceImpl
public TopicServiceImpl()
-
-
Method Details
-
setPersistenceService
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext) -
load
Description copied from interface:TopicServiceRetrieves the topic identified by the specified identifier.- Specified by:
loadin interfaceTopicService- Parameters:
topicId- the identifier of the topic to retrieve- Returns:
- the topic identified by the specified identifier or
nullif no such topic exists
-
save
Description copied from interface:TopicServiceSaves the specified topic in the context server.- Specified by:
savein interfaceTopicService- Parameters:
topic- the topic to be saved- Returns:
- the newly saved topic if the creation or update was successful,
nullotherwise
-
search
Description copied from interface:TopicServiceRetrieves topic matching the specified query.- Specified by:
searchin interfaceTopicService- Parameters:
query- aQueryspecifying which elements to retrieve- Returns:
- a
PartialListofTopicmetadata
-
delete
Description copied from interface:TopicServiceRemoves the topic identified by the specified identifier.- Specified by:
deletein interfaceTopicService- Parameters:
topicId- the identifier of the profile or persona to delete- Returns:
trueif the deletion was successful,falseotherwise
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent bundleEvent) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
postConstruct
public void postConstruct() -
preDestroy
public void preDestroy()
-