org.mythtv.services.api.channel.impl
Class ChannelTemplate

java.lang.Object
  extended by org.mythtv.services.api.AbstractOperations
      extended by org.mythtv.services.api.channel.impl.ChannelTemplate
All Implemented Interfaces:
ChannelOperations

public class ChannelTemplate
extends AbstractOperations
implements ChannelOperations

Author:
Daniel Frey

Nested Class Summary
static class ChannelTemplate.Endpoint
           
 
Field Summary
 
Fields inherited from class org.mythtv.services.api.AbstractOperations
formatter
 
Constructor Summary
ChannelTemplate(org.springframework.web.client.RestOperations restOperations, String apiUrlBase)
           
 
Method Summary
 org.springframework.http.ResponseEntity<Bool> addDBChannel(int multiplexId, int sourceId, int channelId, String callSign, String channelName, String channelNumber, int serviceId, int atscMajorChannel, int atscMinorChannel, boolean userEIT, boolean visible, String frequencyId, String icon, String format, String xmltvId, String defaultAuthority)
          - POST
 org.springframework.http.ResponseEntity<Int> addVideoSource(String sourceName, String grabber, String userId, String frequencyTable, String lineupId, String password, boolean useEit, String configPath, int nitId)
          - POST
 org.springframework.http.ResponseEntity<Int> fetchChannelsFromSource(int sourceId, int cardId, boolean waitForFinish, ETagInfo etag)
          - GET
protected  String getApiUrlBase()
           
 org.springframework.http.ResponseEntity<ChannelInfoWrapper> getChannelInfo(int channelId, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(int sourceId, int startIndex, int count, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<LineupList> getDDLineupList(String source, String userId, String password, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoMultiplexWrapper> getVideoMultiplex(int multiplexId, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoMultiplexList> getVideoMultiplexList(int sourceId, int startIndex, int count, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoSourceWrapper> getVideoSource(int sourceId, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<VideoSourceList> getVideoSourceList(ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<StringList> getXmltvIdList(int sourceId, ETagInfo etag)
          - GET
 org.springframework.http.ResponseEntity<Bool> removeDBChannel(int channelId)
          - POST
 org.springframework.http.ResponseEntity<Bool> removeVideoSource(int sourceId)
          - POST
 org.springframework.http.ResponseEntity<Bool> updateDBChannel(int multiplexId, int sourceId, int channelId, String callSign, String channelName, String channelNumber, int serviceId, int atscMajorChannel, int atscMinorChannel, boolean useEIT, boolean visible, String frequencyId, String icon, String format, String xmltvId, String defaultAuthority)
          - POST
 org.springframework.http.ResponseEntity<Bool> updateVideoSource(int sourceId, String sourceName, String grabber, String userId, String frequencyTable, String lineupId, String password, boolean userEIT, String configPath, int nitId)
          - POST
 
Methods inherited from class org.mythtv.services.api.AbstractOperations
buildUri, buildUri, buildUri, convertUtcAndFormat, getRequestEntity, handleResponseEtag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelTemplate

public ChannelTemplate(org.springframework.web.client.RestOperations restOperations,
                       String apiUrlBase)
Method Detail

addDBChannel

public org.springframework.http.ResponseEntity<Bool> addDBChannel(int multiplexId,
                                                                  int sourceId,
                                                                  int channelId,
                                                                  String callSign,
                                                                  String channelName,
                                                                  String channelNumber,
                                                                  int serviceId,
                                                                  int atscMajorChannel,
                                                                  int atscMinorChannel,
                                                                  boolean userEIT,
                                                                  boolean visible,
                                                                  String frequencyId,
                                                                  String icon,
                                                                  String format,
                                                                  String xmltvId,
                                                                  String defaultAuthority)
                                                           throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
addDBChannel in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

addVideoSource

public org.springframework.http.ResponseEntity<Int> addVideoSource(String sourceName,
                                                                   String grabber,
                                                                   String userId,
                                                                   String frequencyTable,
                                                                   String lineupId,
                                                                   String password,
                                                                   boolean useEit,
                                                                   String configPath,
                                                                   int nitId)
                                                            throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
addVideoSource in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

fetchChannelsFromSource

public org.springframework.http.ResponseEntity<Int> fetchChannelsFromSource(int sourceId,
                                                                            int cardId,
                                                                            boolean waitForFinish,
                                                                            ETagInfo etag)
                                                                     throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
fetchChannelsFromSource in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getChannelInfo

public org.springframework.http.ResponseEntity<ChannelInfoWrapper> getChannelInfo(int channelId,
                                                                                  ETagInfo etag)
                                                                           throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getChannelInfo in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getChannelInfoList

public org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(int sourceId,
                                                                                   int startIndex,
                                                                                   int count,
                                                                                   ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getChannelInfoList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getChannelInfoList

public org.springframework.http.ResponseEntity<ChannelInfoList> getChannelInfoList(ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getChannelInfoList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getDDLineupList

public org.springframework.http.ResponseEntity<LineupList> getDDLineupList(String source,
                                                                           String userId,
                                                                           String password,
                                                                           ETagInfo etag)
                                                                    throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getDDLineupList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoMultiplex

public org.springframework.http.ResponseEntity<VideoMultiplexWrapper> getVideoMultiplex(int multiplexId,
                                                                                        ETagInfo etag)
                                                                                 throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getVideoMultiplex in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoMultiplexList

public org.springframework.http.ResponseEntity<VideoMultiplexList> getVideoMultiplexList(int sourceId,
                                                                                         int startIndex,
                                                                                         int count,
                                                                                         ETagInfo etag)
                                                                                  throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getVideoMultiplexList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoSource

public org.springframework.http.ResponseEntity<VideoSourceWrapper> getVideoSource(int sourceId,
                                                                                  ETagInfo etag)
                                                                           throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getVideoSource in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getVideoSourceList

public org.springframework.http.ResponseEntity<VideoSourceList> getVideoSourceList(ETagInfo etag)
                                                                            throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getVideoSourceList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getXmltvIdList

public org.springframework.http.ResponseEntity<StringList> getXmltvIdList(int sourceId,
                                                                          ETagInfo etag)
                                                                   throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- GET

Specified by:
getXmltvIdList in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

removeDBChannel

public org.springframework.http.ResponseEntity<Bool> removeDBChannel(int channelId)
                                                              throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
removeDBChannel in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

removeVideoSource

public org.springframework.http.ResponseEntity<Bool> removeVideoSource(int sourceId)
                                                                throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
removeVideoSource in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

updateDBChannel

public org.springframework.http.ResponseEntity<Bool> updateDBChannel(int multiplexId,
                                                                     int sourceId,
                                                                     int channelId,
                                                                     String callSign,
                                                                     String channelName,
                                                                     String channelNumber,
                                                                     int serviceId,
                                                                     int atscMajorChannel,
                                                                     int atscMinorChannel,
                                                                     boolean useEIT,
                                                                     boolean visible,
                                                                     String frequencyId,
                                                                     String icon,
                                                                     String format,
                                                                     String xmltvId,
                                                                     String defaultAuthority)
                                                              throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
updateDBChannel in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

updateVideoSource

public org.springframework.http.ResponseEntity<Bool> updateVideoSource(int sourceId,
                                                                       String sourceName,
                                                                       String grabber,
                                                                       String userId,
                                                                       String frequencyTable,
                                                                       String lineupId,
                                                                       String password,
                                                                       boolean userEIT,
                                                                       String configPath,
                                                                       int nitId)
                                                                throws MythServiceApiRuntimeException
Description copied from interface: ChannelOperations
- POST

Specified by:
updateVideoSource in interface ChannelOperations
Returns:
Throws:
MythServiceApiRuntimeException

getApiUrlBase

protected String getApiUrlBase()
Overrides:
getApiUrlBase in class AbstractOperations
Returns:


Copyright © 2012. All Rights Reserved.