org.jtheque.films.services.impl
Class FilmAutoService

java.lang.Object
  extended by org.jtheque.films.services.impl.FilmAutoService
All Implemented Interfaces:
IFilmAutoService

public final class FilmAutoService
extends Object
implements IFilmAutoService

The auto service implementation.

Author:
Baptiste Wicht

Constructor Summary
FilmAutoService()
           
 
Method Summary
 Film getFilm(FilmResult selectedFilm)
          Fill a film with the information of the film result and return it.
 Collection<FilmResult> getFilms(Constants.Site site, String search)
          Return the films we found in a site for a specific search.
 void modifyFilm(FilmResult result, Film film, EditArguments args)
          Modify a film using a film found in a site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilmAutoService

public FilmAutoService()
Method Detail

getFilms

public Collection<FilmResult> getFilms(Constants.Site site,
                                       String search)
Description copied from interface: IFilmAutoService
Return the films we found in a site for a specific search.

Specified by:
getFilms in interface IFilmAutoService
Parameters:
site - The site to search in.
search - The film search.
Returns:
A List containing all the films found on the site for the search.

getFilm

public Film getFilm(FilmResult selectedFilm)
Description copied from interface: IFilmAutoService
Fill a film with the information of the film result and return it.

Specified by:
getFilm in interface IFilmAutoService
Parameters:
selectedFilm - The fim result to get the information from.
Returns:
A film filled with the information of the site.

modifyFilm

public void modifyFilm(FilmResult result,
                       Film film,
                       EditArguments args)
Description copied from interface: IFilmAutoService
Modify a film using a film found in a site.

Specified by:
modifyFilm in interface IFilmAutoService
Parameters:
result - The result to get the informations from.
film - The film to edit.
args - The arguments who describe the fields to edit.


Copyright © 2010 JTheque. All Rights Reserved.