|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.movies.services.impl.MoviesService
public final class MoviesService
A service for movies implementation.
| Field Summary |
|---|
| Fields inherited from interface org.jtheque.movies.services.able.IMoviesService |
|---|
DATA_TYPE |
| Constructor Summary | |
|---|---|
MoviesService()
|
|
| Method Summary | |
|---|---|
void |
addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
|
void |
clean(Collection<Movie> movies,
Collection<NameCleaner> cleaners)
Clean all the movies using the specified cleaners. |
void |
clean(Movie movie,
Collection<NameCleaner> cleaners)
Clean the specified movie title with the specified cleaners. |
void |
clearAll()
|
void |
create(Movie movie)
|
boolean |
delete(Movie movie)
|
boolean |
fileExists(String file)
Indicate if the specified file still exists in the application. |
boolean |
fileExistsInOtherMovie(Movie movie,
String file)
Indicate if the specified file exists in the application in an other movie than the specified one. |
void |
fillInformations(Set<Movie> movies,
boolean duration,
boolean resolution,
boolean image)
Fill the informations of the specified movies. |
Collection<Movie> |
getDatas()
|
String |
getDataType()
|
Movie |
getEmptyMovie()
Create an empty film. |
Movie |
getMovie(String title)
Return the movie of the specified title. |
Collection<Movie> |
getMovies()
Return the movies of the current collection. |
Set<Movie> |
getMovies(Category category,
boolean includeSubCategory)
Return all the movies of the specified category, including or not the movies of the subcategories. |
Collection<? extends Movie> |
getMoviesWithInvalidFiles()
Return all the movies with invalid files. |
void |
save(Movie movie)
|
void |
saveImage(Movie movie,
BufferedImage image)
Save the specified image and set it as the preview image of the movie. |
boolean |
thumbnailIsNotUsed(String name)
Indicate if a thumbnail is not used in any movies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MoviesService()
| Method Detail |
|---|
public Movie getEmptyMovie()
IMoviesService
getEmptyMovie in interface IMoviesServicepublic Collection<Movie> getMovies()
IMoviesService
getMovies in interface IMoviesService
public Set<Movie> getMovies(Category category,
boolean includeSubCategory)
IMoviesService
getMovies in interface IMoviesServicecategory - The category to get the movies from.includeSubCategory - boolean tag indicating if we must include (true) the subcategories or not (false).
@Transactional public boolean delete(Movie movie)
delete in interface org.jtheque.primary.services.able.DataService<Movie>@Transactional public void save(Movie movie)
save in interface org.jtheque.primary.services.able.DataService<Movie>@Transactional public void create(Movie movie)
create in interface org.jtheque.primary.services.able.DataService<Movie>
public void clean(Movie movie,
Collection<NameCleaner> cleaners)
IMoviesService
clean in interface IMoviesServicemovie - The movie to clean.cleaners - The cleaners to use to clean the movie's title.
public void clean(Collection<Movie> movies,
Collection<NameCleaner> cleaners)
IMoviesService
clean in interface IMoviesServicemovies - The movies to clean.cleaners - The cleaners to use to clean the movies.public boolean fileExists(String file)
IMoviesService
fileExists in interface IMoviesServicefile - The file to test.
public boolean fileExistsInOtherMovie(Movie movie,
String file)
IMoviesService
fileExistsInOtherMovie in interface IMoviesServicemovie - The movie to exclude from the search.file - The file to search for.
public void saveImage(Movie movie,
BufferedImage image)
IMoviesService
saveImage in interface IMoviesServicemovie - The movie to set the image to. .image - The image to save.
public void fillInformations(Set<Movie> movies,
boolean duration,
boolean resolution,
boolean image)
IMoviesService
fillInformations in interface IMoviesServicemovies - The movies to fill the informations for.duration - A boolean tag indicating if we must fill the duration (true) or not (false).resolution - A boolean tag indicating if we must fill the resolution (true) or not (false).image - A boolean tag indicating if we must fill the image (true) or not (false).public Movie getMovie(String title)
IMoviesService
getMovie in interface IMoviesServicetitle - The title to search for.
public boolean thumbnailIsNotUsed(String name)
IMoviesService
thumbnailIsNotUsed in interface IMoviesServicename - The name of the thumbnail.
public Collection<? extends Movie> getMoviesWithInvalidFiles()
IMoviesService
getMoviesWithInvalidFiles in interface IMoviesServicepublic Collection<Movie> getDatas()
getDatas in interface org.jtheque.core.managers.persistence.able.DataContainer<Movie>public void addDataListener(org.jtheque.core.managers.persistence.able.DataListener listener)
addDataListener in interface org.jtheque.core.managers.persistence.able.DataContainer<Movie>public String getDataType()
getDataType in interface org.jtheque.core.managers.persistence.able.DataContainer<Movie>@Transactional public void clearAll()
clearAll in interface org.jtheque.core.managers.persistence.able.DataContainer<Movie>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||