Class 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 Detail

      • TopicServiceImpl

        public TopicServiceImpl()
    • Method Detail

      • setPersistenceService

        public void setPersistenceService​(PersistenceService persistenceService)
      • setBundleContext

        public void setBundleContext​(org.osgi.framework.BundleContext bundleContext)
      • load

        public Topic load​(String topicId)
        Description copied from interface: TopicService
        Retrieves the topic identified by the specified identifier.
        Specified by:
        load in interface TopicService
        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

        public Topic save​(Topic topic)
        Description copied from interface: TopicService
        Saves the specified topic in the context server.
        Specified by:
        save in interface TopicService
        Parameters:
        topic - the topic to be saved
        Returns:
        the newly saved topic if the creation or update was successful, null otherwise
      • delete

        public boolean delete​(String topicId)
        Description copied from interface: TopicService
        Removes the topic identified by the specified identifier.
        Specified by:
        delete in interface TopicService
        Parameters:
        topicId - the identifier of the profile or persona to delete
        Returns:
        true if the deletion was successful, false otherwise
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent bundleEvent)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener
      • postConstruct

        public void postConstruct()
      • preDestroy

        public void preDestroy()