Class OsgiIncidentService
java.lang.Object
org.opencastproject.serviceregistry.impl.AbstractIncidentService
org.opencastproject.serviceregistry.impl.OsgiIncidentService
- All Implemented Interfaces:
EventListener,org.opencastproject.serviceregistry.api.IncidentService,org.osgi.framework.BundleListener
public class OsgiIncidentService
extends AbstractIncidentService
implements org.osgi.framework.BundleListener
-
Field Summary
FieldsFields inherited from class org.opencastproject.serviceregistry.impl.AbstractIncidentService
FIELD_DESCRIPTION, FIELD_TITLE, NO_DESCRIPTION, NO_TITLE, PERSISTENCE_UNIT_NAMEFields inherited from interface org.opencastproject.serviceregistry.api.IncidentService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback on component activation.voidbundleChanged(org.osgi.framework.BundleEvent event) voidCloses entity manager factory.protected org.opencastproject.db.DBSessionprotected org.opencastproject.serviceregistry.api.ServiceRegistryprotected org.opencastproject.workflow.api.WorkflowServicevoidsetDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the service registryvoidsetWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) Sets the workflow serviceMethods inherited from class org.opencastproject.serviceregistry.impl.AbstractIncidentService
genDbKeys, getIncident, getIncidentsOfJob, getIncidentsOfJob, getLocalization, localeToList, replaceVars, replaceVarsF, storeIncident
-
Field Details
-
INCIDENT_L10N_DIR
- See Also:
-
-
Constructor Details
-
OsgiIncidentService
public OsgiIncidentService()
-
-
Method Details
-
getServiceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classAbstractIncidentService
-
getWorkflowService
protected org.opencastproject.workflow.api.WorkflowService getWorkflowService()- Specified by:
getWorkflowServicein classAbstractIncidentService
-
getDBSession
protected org.opencastproject.db.DBSession getDBSession()- Specified by:
getDBSessionin classAbstractIncidentService
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) Sets the service registry- Parameters:
serviceRegistry- the service registry
-
setWorkflowService
public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService workflowService) Sets the workflow service- Parameters:
workflowService- the workflow service
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) OSGi callback on component activation. -
deactivate
public void deactivate()Closes entity manager factory. -
setDBSessionFactory
public void setDBSessionFactory(org.opencastproject.db.DBSessionFactory dbSessionFactory) -
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-