Class SearchUpdatedEventHandler

java.lang.Object
org.opencastproject.event.handler.SearchUpdatedEventHandler

public class SearchUpdatedEventHandler extends Object
Responds to series events by re-distributing metadata and security policy files for published mediapackages.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.opencastproject.security.api.AuthorizationService
    The authorization service
    protected static final String
     
    protected org.opencastproject.distribution.api.DownloadDistributionService
    The distribution service
    protected org.opencastproject.metadata.dublincore.DublinCoreCatalogService
    Dublin core catalog service
    protected static final org.slf4j.Logger
    The logger
    protected org.opencastproject.search.api.SearchService
    The search service
    protected org.opencastproject.security.api.SecurityService
    The security service
    protected String
    The system account to use for running asynchronous events
    protected org.opencastproject.workspace.api.Workspace
    The workspace
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    activate(org.osgi.service.component.ComponentContext componentContext)
    OSGI callback for component activation.
    void
    handleEvent(org.opencastproject.message.broker.api.series.SeriesItem seriesItem)
     
    void
    setAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService)
     
    void
    setDownloadDistributionService(org.opencastproject.distribution.api.DownloadDistributionService downloadDistributionService)
     
    void
    setDublinCoreCatalogService(org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService)
     
    void
    setSearchService(org.opencastproject.search.api.SearchService searchService)
     
    void
    setSecurityService(org.opencastproject.security.api.SecurityService securityService)
     
    void
    setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
     
    protected void
    updated(org.osgi.service.component.ComponentContext componentContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
      The logger
    • DISTRIBUTION_CHECK_AVAILABILITY

      protected static final String DISTRIBUTION_CHECK_AVAILABILITY
      See Also:
    • downloadDistributionService

      protected org.opencastproject.distribution.api.DownloadDistributionService downloadDistributionService
      The distribution service
    • searchService

      protected org.opencastproject.search.api.SearchService searchService
      The search service
    • securityService

      protected org.opencastproject.security.api.SecurityService securityService
      The security service
    • authorizationService

      protected org.opencastproject.security.api.AuthorizationService authorizationService
      The authorization service
    • dublinCoreService

      protected org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService
      Dublin core catalog service
    • workspace

      protected org.opencastproject.workspace.api.Workspace workspace
      The workspace
    • systemAccount

      protected String systemAccount
      The system account to use for running asynchronous events
  • Constructor Details

    • SearchUpdatedEventHandler

      public SearchUpdatedEventHandler()
  • Method Details

    • activate

      protected void activate(org.osgi.service.component.ComponentContext componentContext)
      OSGI callback for component activation.
      Parameters:
      componentContext - the OSGI component context
    • updated

      protected void updated(org.osgi.service.component.ComponentContext componentContext)
    • setWorkspace

      public void setWorkspace(org.opencastproject.workspace.api.Workspace workspace)
      Parameters:
      workspace - the workspace to set
    • setDublinCoreCatalogService

      public void setDublinCoreCatalogService(org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService)
      Parameters:
      dublinCoreService - the dublin core service to set
    • setDownloadDistributionService

      public void setDownloadDistributionService(org.opencastproject.distribution.api.DownloadDistributionService downloadDistributionService)
      Parameters:
      downloadDistributionService - the downloadDstributionService to set
    • setSearchService

      public void setSearchService(org.opencastproject.search.api.SearchService searchService)
      Parameters:
      searchService - the searchService to set
    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
      Parameters:
      securityService - the securityService to set
    • setAuthorizationService

      public void setAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService)
      Parameters:
      authorizationService - the authorizationService to set
    • handleEvent

      public void handleEvent(org.opencastproject.message.broker.api.series.SeriesItem seriesItem)