Class SchedulerServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.scheduler.remote.SchedulerServiceRemoteImpl
- All Implemented Interfaces:
org.opencastproject.scheduler.api.SchedulerService
public class SchedulerServiceRemoteImpl
extends org.opencastproject.serviceregistry.api.RemoteBase
implements org.opencastproject.scheduler.api.SchedulerService
A proxy to a remote series service.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.scheduler.api.SchedulerService
JOB_TYPE, WORKFLOW_CONFIG_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEvent(Date startDateTime, Date endDateTime, String captureAgentId, Set<String> userIds, org.opencastproject.mediapackage.MediaPackage mediaPackage, Map<String, String> wfProperties, Map<String, String> caMetadata, Optional<String> schedulingSource) addMultipleEvents(net.fortuna.ical4j.model.property.RRule rRule, Date start, Date end, Long duration, TimeZone tz, String captureAgentId, Set<String> userIds, org.opencastproject.mediapackage.MediaPackage templateMp, Map<String, String> wfProperties, Map<String, String> caMetadata, Optional<String> schedulingSource) List<org.opencastproject.mediapackage.MediaPackage> findConflictingEvents(String captureDeviceID, Date startDate, Date endDate) List<org.opencastproject.mediapackage.MediaPackage> findConflictingEvents(String captureAgentId, net.fortuna.ical4j.model.property.RRule rrule, Date startDate, Date endDate, long duration, TimeZone timezone) getCaptureAgentConfiguration(String eventId) Optional<org.opencastproject.mediapackage.MediaPackage> getCurrentRecording(String captureAgentId) org.opencastproject.metadata.dublincore.DublinCoreCataloggetDublinCore(String eventId) intorg.opencastproject.mediapackage.MediaPackagegetMediaPackage(String eventId) org.opencastproject.scheduler.api.RecordinggetScheduleLastModified(String agentId) org.opencastproject.scheduler.api.TechnicalMetadatagetTechnicalMetadata(String eventId) Optional<org.opencastproject.mediapackage.MediaPackage> getUpcomingRecording(String captureAgentId) getWorkflowConfig(String eventId) voidremoveEvent(String eventId) voidremoveRecording(String eventId) voidremoveScheduledRecordingsBeforeBuffer(long buffer) List<org.opencastproject.mediapackage.MediaPackage> search(Optional<String> captureAgentId, Optional<Date> startsFrom, Optional<Date> startsTo, Optional<Date> endFrom, Optional<Date> endTo) voidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient) voidupdateEvent(String eventId, Optional<Date> startDateTime, Optional<Date> endDateTime, Optional<String> captureAgentId, Optional<Set<String>> userIds, Optional<org.opencastproject.mediapackage.MediaPackage> mediaPackage, Optional<Map<String, String>> wfProperties, Optional<Map<String, String>> caMetadata) voidupdateEvent(String eventId, Optional<Date> startDateTime, Optional<Date> endDateTime, Optional<String> captureAgentId, Optional<Set<String>> userIds, Optional<org.opencastproject.mediapackage.MediaPackage> mediaPackage, Optional<Map<String, String>> wfProperties, Optional<Map<String, String>> caMetadata, boolean allowConflict) booleanupdateRecordingState(String mediapackageId, String state) Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
Constructor Details
-
SchedulerServiceRemoteImpl
public SchedulerServiceRemoteImpl()
-
-
Method Details
-
addEvent
public void addEvent(Date startDateTime, Date endDateTime, String captureAgentId, Set<String> userIds, org.opencastproject.mediapackage.MediaPackage mediaPackage, Map<String, String> wfProperties, Map<String, throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerConflictException, org.opencastproject.scheduler.api.SchedulerExceptionString> caMetadata, Optional<String> schedulingSource) - Specified by:
addEventin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerConflictExceptionorg.opencastproject.scheduler.api.SchedulerException
-
addMultipleEvents
public Map<String,net.fortuna.ical4j.model.Period> addMultipleEvents(net.fortuna.ical4j.model.property.RRule rRule, Date start, Date end, Long duration, TimeZone tz, String captureAgentId, Set<String> userIds, org.opencastproject.mediapackage.MediaPackage templateMp, Map<String, String> wfProperties, Map<String, throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerConflictException, org.opencastproject.scheduler.api.SchedulerExceptionString> caMetadata, Optional<String> schedulingSource) - Specified by:
addMultipleEventsin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerConflictExceptionorg.opencastproject.scheduler.api.SchedulerException
-
updateEvent
public void updateEvent(String eventId, Optional<Date> startDateTime, Optional<Date> endDateTime, Optional<String> captureAgentId, Optional<Set<String>> userIds, Optional<org.opencastproject.mediapackage.MediaPackage> mediaPackage, Optional<Map<String, String>> wfProperties, Optional<Map<String, throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerConflictException, org.opencastproject.scheduler.api.SchedulerExceptionString>> caMetadata) - Specified by:
updateEventin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerConflictExceptionorg.opencastproject.scheduler.api.SchedulerException
-
updateEvent
public void updateEvent(String eventId, Optional<Date> startDateTime, Optional<Date> endDateTime, Optional<String> captureAgentId, Optional<Set<String>> userIds, Optional<org.opencastproject.mediapackage.MediaPackage> mediaPackage, Optional<Map<String, String>> wfProperties, Optional<Map<String, throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerConflictException, org.opencastproject.scheduler.api.SchedulerExceptionString>> caMetadata, boolean allowConflict) - Specified by:
updateEventin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerConflictExceptionorg.opencastproject.scheduler.api.SchedulerException
-
removeEvent
public void removeEvent(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
removeEventin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getMediaPackage
public org.opencastproject.mediapackage.MediaPackage getMediaPackage(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getMediaPackagein interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getDublinCore
public org.opencastproject.metadata.dublincore.DublinCoreCatalog getDublinCore(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getDublinCorein interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getTechnicalMetadata
public org.opencastproject.scheduler.api.TechnicalMetadata getTechnicalMetadata(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getTechnicalMetadatain interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getWorkflowConfig
public Map<String,String> getWorkflowConfig(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getWorkflowConfigin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getCaptureAgentConfiguration
public Map<String,String> getCaptureAgentConfiguration(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getCaptureAgentConfigurationin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getEventCount
public int getEventCount() throws org.opencastproject.scheduler.api.SchedulerException, org.opencastproject.security.api.UnauthorizedException- Specified by:
getEventCountin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerExceptionorg.opencastproject.security.api.UnauthorizedException
-
getScheduleLastModified
public String getScheduleLastModified(String agentId) throws org.opencastproject.scheduler.api.SchedulerException - Specified by:
getScheduleLastModifiedin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerException
-
search
public List<org.opencastproject.mediapackage.MediaPackage> search(Optional<String> captureAgentId, Optional<Date> startsFrom, Optional<Date> startsTo, Optional<Date> endFrom, Optional<Date> endTo) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
searchin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getCurrentRecording
public Optional<org.opencastproject.mediapackage.MediaPackage> getCurrentRecording(String captureAgentId) throws org.opencastproject.scheduler.api.SchedulerException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getCurrentRecordingin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerExceptionorg.opencastproject.security.api.UnauthorizedException
-
getUpcomingRecording
public Optional<org.opencastproject.mediapackage.MediaPackage> getUpcomingRecording(String captureAgentId) throws org.opencastproject.scheduler.api.SchedulerException, org.opencastproject.security.api.UnauthorizedException - Specified by:
getUpcomingRecordingin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerExceptionorg.opencastproject.security.api.UnauthorizedException
-
findConflictingEvents
public List<org.opencastproject.mediapackage.MediaPackage> findConflictingEvents(String captureDeviceID, Date startDate, Date endDate) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
findConflictingEventsin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
findConflictingEvents
public List<org.opencastproject.mediapackage.MediaPackage> findConflictingEvents(String captureAgentId, net.fortuna.ical4j.model.property.RRule rrule, Date startDate, Date endDate, long duration, TimeZone timezone) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
findConflictingEventsin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getCalendar
public String getCalendar(Optional<String> captureAgentId, Optional<String> seriesId, Optional<Date> cutoff) throws org.opencastproject.scheduler.api.SchedulerException - Specified by:
getCalendarin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerException
-
removeScheduledRecordingsBeforeBuffer
public void removeScheduledRecordingsBeforeBuffer(long buffer) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
removeScheduledRecordingsBeforeBufferin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.scheduler.api.SchedulerException
-
updateRecordingState
public boolean updateRecordingState(String mediapackageId, String state) throws org.opencastproject.util.NotFoundException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
updateRecordingStatein interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getRecordingState
public org.opencastproject.scheduler.api.Recording getRecordingState(String id) throws org.opencastproject.util.NotFoundException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
getRecordingStatein interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.scheduler.api.SchedulerException
-
removeRecording
public void removeRecording(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.scheduler.api.SchedulerException - Specified by:
removeRecordingin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.scheduler.api.SchedulerException
-
getKnownRecordings
public Map<String,org.opencastproject.scheduler.api.Recording> getKnownRecordings() throws org.opencastproject.scheduler.api.SchedulerException- Specified by:
getKnownRecordingsin interfaceorg.opencastproject.scheduler.api.SchedulerService- Throws:
org.opencastproject.scheduler.api.SchedulerException
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient trustedHttpClient) - Overrides:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry) - Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase
-