public interface IncidentService
| Modifier and Type | Field and Description |
|---|---|
static String |
JOB_TYPE
Identifier for service registration and location
|
| Modifier and Type | Method and Description |
|---|---|
Incident |
getIncident(long id)
Gets a job incident by a given incident identifier.
|
List<Incident> |
getIncidentsOfJob(List<Long> jobIds)
Get the directly related incidents of all given jobs and return them concatenated into a single list.
|
IncidentTree |
getIncidentsOfJob(long jobId,
boolean cascade)
Get the hierarchy of incidents for a given job identifier.
|
IncidentL10n |
getLocalization(long id,
Locale locale)
Gets the localized texts for an incident by a given incident identifier and locale.
|
Incident |
storeIncident(Job job,
Date timestamp,
String code,
Incident.Severity severity,
Map<String,String> descriptionParameters,
List<Tuple<String,String>> details)
Stores a new job incident.
|
static final String JOB_TYPE
Incident storeIncident(Job job, Date timestamp, String code, Incident.Severity severity, Map<String,String> descriptionParameters, List<Tuple<String,String>> details) throws IncidentServiceException, IllegalStateException
IllegalStateException - if no job related job existsIncidentServiceException - if there is a problem communicating with the underlying data storeIncident getIncident(long id) throws IncidentServiceException, NotFoundException
id - the incident indentifierIncidentServiceException - if there is a problem communicating with the underlying data storeNotFoundException - if there is no job incident with this incident identifierIncidentTree getIncidentsOfJob(long jobId, boolean cascade) throws NotFoundException, IncidentServiceException
jobId - the job identifiercascade - if true, return the incidents of the given job and those of of its descendants; if false, just return the
incidents of the given job, which means that the list returned by
IncidentTree.getDescendants() will always be emptyNotFoundException - if there is no incident with this job identifierIncidentServiceException - if there is a problem communicating with the underlying data storeList<Incident> getIncidentsOfJob(List<Long> jobIds) throws IncidentServiceException
jobIds - the job identifiersIncidentServiceException - if there is a problem communicating with the underlying data storeIncidentL10n getLocalization(long id, Locale locale) throws IncidentServiceException, NotFoundException
id - the incident identifierlocale - the localeNotFoundException - if there is no job incident with this incident identifierIncidentServiceException - if there is a problem communicating with the underlying data storeCopyright © 2009–2021 Opencast Project. All rights reserved.