Class SearchUpdatedEventHandler
java.lang.Object
org.opencastproject.event.handler.SearchUpdatedEventHandler
Responds to series events by re-distributing metadata and security policy files for published mediapackages.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthorizationServiceThe authorization serviceprotected static final Stringprotected DownloadDistributionServiceThe distribution serviceprotected DublinCoreCatalogServiceDublin core catalog serviceprotected static final org.slf4j.LoggerThe loggerprotected SearchServiceThe search serviceprotected SecurityServiceThe security serviceprotected StringThe system account to use for running asynchronous eventsprotected WorkspaceThe workspace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext componentContext) OSGI callback for component activation.voidhandleEvent(SeriesItem seriesItem) voidsetAuthorizationService(AuthorizationService authorizationService) voidsetDownloadDistributionService(DownloadDistributionService downloadDistributionService) voidsetDublinCoreCatalogService(DublinCoreCatalogService dublinCoreService) voidsetSearchService(SearchService searchService) voidsetSecurityService(SecurityService securityService) voidsetWorkspace(Workspace workspace) protected voidupdated(org.osgi.service.component.ComponentContext componentContext)
-
Field Details
-
logger
protected static final org.slf4j.Logger loggerThe logger -
DISTRIBUTION_CHECK_AVAILABILITY
- See Also:
-
downloadDistributionService
The distribution service -
searchService
The search service -
securityService
The security service -
authorizationService
The authorization service -
dublinCoreService
Dublin core catalog service -
workspace
The workspace -
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
- Parameters:
workspace- the workspace to set
-
setDublinCoreCatalogService
- Parameters:
dublinCoreService- the dublin core service to set
-
setDownloadDistributionService
- Parameters:
downloadDistributionService- the downloadDstributionService to set
-
setSearchService
- Parameters:
searchService- the searchService to set
-
setSecurityService
- Parameters:
securityService- the securityService to set
-
setAuthorizationService
- Parameters:
authorizationService- the authorizationService to set
-
handleEvent
-