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 org.opencastproject.security.api.AuthorizationServiceThe authorization serviceprotected org.opencastproject.distribution.api.DistributionServiceThe distribution serviceprotected org.opencastproject.metadata.dublincore.DublinCoreCatalogServiceDublin core catalog serviceprotected static final org.slf4j.LoggerThe loggerprotected org.opencastproject.security.api.OrganizationDirectoryServiceThe organization directoryprotected org.opencastproject.search.api.SearchServiceThe search serviceprotected org.opencastproject.security.api.SecurityServiceThe security serviceprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registryprotected StringThe system account to use for running asynchronous eventsprotected org.opencastproject.workspace.api.WorkspaceThe workspace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.framework.BundleContext bundleContext) OSGI callback for component activation.voidhandleEvent(org.opencastproject.message.broker.api.series.SeriesItem seriesItem) voidsetAuthorizationService(org.opencastproject.security.api.AuthorizationService authorizationService) voidsetDistributionService(org.opencastproject.distribution.api.DistributionService distributionService) voidsetDublinCoreCatalogService(org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreService) voidsetOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) voidsetSearchService(org.opencastproject.search.api.SearchService searchService) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetWorkspace(org.opencastproject.workspace.api.Workspace workspace)
-
Field Details
-
logger
protected static final org.slf4j.Logger loggerThe logger -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe service registry -
distributionService
protected org.opencastproject.distribution.api.DistributionService distributionServiceThe distribution service -
searchService
protected org.opencastproject.search.api.SearchService searchServiceThe search service -
securityService
protected org.opencastproject.security.api.SecurityService securityServiceThe security service -
authorizationService
protected org.opencastproject.security.api.AuthorizationService authorizationServiceThe authorization service -
organizationDirectoryService
protected org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryServiceThe organization directory -
dublinCoreService
protected org.opencastproject.metadata.dublincore.DublinCoreCatalogService dublinCoreServiceDublin core catalog service -
workspace
protected org.opencastproject.workspace.api.Workspace workspaceThe workspace -
systemAccount
The system account to use for running asynchronous events
-
-
Constructor Details
-
SearchUpdatedEventHandler
public SearchUpdatedEventHandler()
-
-
Method Details
-
activate
protected void activate(org.osgi.framework.BundleContext bundleContext) OSGI callback for component activation.- Parameters:
bundleContext- the OSGI bundle context
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Parameters:
serviceRegistry- the serviceRegistry to set
-
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
-
setDistributionService
public void setDistributionService(org.opencastproject.distribution.api.DistributionService distributionService) - Parameters:
distributionService- the distributionService 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
-
setOrganizationDirectoryService
public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService) - Parameters:
organizationDirectoryService- the organizationDirectoryService to set
-
handleEvent
public void handleEvent(org.opencastproject.message.broker.api.series.SeriesItem seriesItem)
-