Skip to content

Commit 3284bd4

Browse files
committed
[Init, Model, Test] - Updated README.md and changelog.md. Worked on models classes. Updated tests classes.
1 parent 8ef9567 commit 3284bd4

File tree

8 files changed

+362
-158
lines changed

8 files changed

+362
-158
lines changed

README.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ Media-Library is a RESTFUL API used to request easily all medias available in a
33
It can be considerate as a *register* to check presence of movie, CD, book, ... on the house.<br>
44
Media manages by Media Library are :
55

6-
| Media | Statement |
7-
| :-----:|-----------|
8-
| Movies | Release |
9-
| Series | Release |
10-
| Anime | Forecast |
11-
| Musics | Forecast |
12-
| Games | Forecast |
13-
| Books | Forecast |
14-
| Comics | Forecast |
15-
| Mangas | Forecast |
6+
| Media | Statement |
7+
| :-------:|-----------|
8+
| Movies | Release |
9+
| Series | Release |
10+
| Cartoon | Forecast |
11+
| Anime | Forecast |
12+
| Musics | Forecast |
13+
| Games | Forecast |
14+
| Books | Forecast |
15+
| Comics | Forecast |
16+
| Mangas | Forecast |
1617

1718
The statement is a representation of the current state of development of each media :
1819
- `Forecast` mean the media not working and appear in the future released.
@@ -54,9 +55,9 @@ The statement is a representation of the current state of development of each me
5455
- [x] directors : List of directors of the Movie.
5556
- [x] genres : List of genre of the Movie.
5657
- [x] supports : List of support available for the Movie. Video Tape, DVD, Blu-Ray.
57-
- [ ] poster : Poster of the Movie.
5858
- [x] spoken languages : List of languages spoken available on the Movie.
5959
- [x] subtitle languages : List of languages subtitled available on the Movie.
60+
- [ ] poster : Poster of the Movie.
6061

6162
#### Series content
6263
- [x] id : Identifier of the Series with the following format `[0-9]*`.
@@ -71,7 +72,7 @@ The statement is a representation of the current state of development of each me
7172
- [x] spoken languages : List of languages spoken available on the Series.
7273
- [x] subtitle languages : List of languages subtitled available on the Series.
7374
- [x] numberOfSeasons : Number of seasons for the series.
74-
- [x] currentSeason : Current season of the series.
75+
- [x] maxEpisodes : Number of episode available for all seasons of the series.
7576
- [x] numberOfEpisode : Number of episode available during the season.
7677
- [x] averageEpisodeRuntime : Average runtime for episodes on series (in minutes).
7778
- [x] startDate : Date of first release of the series.
@@ -84,7 +85,7 @@ The statement is a representation of the current state of development of each me
8485
- `mvn package` : Clean project.
8586

8687
## License
87-
This software is under GPLv3 license.
88+
Media-Library is under GPLv3 license.
8889

8990
## Authors
9091
- Nicolas GILLE <nic.gille@gmail.com>

changelog.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## V0.2.1 : Person Update - Released May 11, 2017
4+
5+
### Features
6+
- Add Interface `IPerson` and abstract class `Person` to manage _Human_ present on Media-Library like Actor, Director, Producer, ...
7+
- Refactor constructors of classes `Movies` and `Series` to change parameters order and regroup them by specific theme.
8+
- Add `Digital` value on `VideoSupport`.
9+
- Update class `Series` with new attribute : `maxEpisodes`.
10+
11+
### Bug Fixed
12+
- Fix bug about same first name or same last name for Person can't saved in Database.
13+
14+
---
15+
316
## V0.2 : Refactoring Update - Released May 10, 2017
417
Refactor all code to improve media extensibility.
518

src/main/java/fr/nicolasgille/medialibrary/models/video/Movie.java

+60-56
Original file line numberDiff line numberDiff line change
@@ -124,93 +124,97 @@ public Movie() {}
124124
* Title of the movie.
125125
* @param originalTitle
126126
* Original title of the movie.
127-
* @param genres
128-
* List of all genres for the movie.
129-
* @param releaseDate
130-
* Date of release of the movie.
131-
* @param runtime
132-
* Duration of the movie in minute.
133127
* @param synopsis
134128
* Synopsis of the movie.
135129
* @param mainActors
136130
* Main actors of the movie.
137-
* @param producers
138-
* List of all producers of the movie.
139131
* @param directors
140132
* List of all directors of the movie.
133+
* @param producers
134+
* List of all producers of the movie.
135+
* @param genres
136+
* List of all genres for the movie.
141137
* @param supports
142138
* Supports present for the movie.
143139
* @param languagesSpoken
144140
* List of languages spoken available on movie.
145141
* @param subtitles
146142
* List of subtitle languages available on movie.
143+
* @param releaseDate
144+
* Date of release of the movie.
145+
* @param runtime
146+
* Duration of the movie in minute.
147147
* @since 1.0
148148
* @version 1.0
149149
*/
150-
public Movie(String title, String originalTitle, List<VideoGenre> genres, Calendar releaseDate, int runtime, String synopsis,
151-
Set<Actor> mainActors, Set<Producer> producers, Set<Director> directors, List<VideoSupport> supports,
152-
List<LanguageCode> languagesSpoken, List<LanguageCode> subtitles) {
153-
super.title = title;
150+
public Movie(String title, String originalTitle, String synopsis,
151+
Set<Actor> mainActors, Set<Director> directors, Set<Producer> producers,
152+
List<VideoGenre> genres, List<VideoSupport> supports,
153+
List<LanguageCode> languagesSpoken, List<LanguageCode> subtitles,
154+
Calendar releaseDate, int runtime) {
155+
super.title = title;
154156
super.originalTitle = originalTitle;
155-
super.genres = genres;
156-
this.releaseDate = releaseDate;
157-
this.runtime = runtime;
158-
super.synopsis = synopsis;
159-
this.mainActors = mainActors;
160-
super.supports = supports;
161-
this.directors = directors;
162-
this.producers = producers;
163-
super.subtitles = subtitles;
157+
super.synopsis = synopsis;
158+
this.mainActors = mainActors;
159+
this.directors = directors;
160+
this.producers = producers;
161+
super.genres = genres;
162+
super.supports = supports;
164163
super.languagesSpoken = languagesSpoken;
164+
super.subtitles = subtitles;
165+
this.releaseDate = releaseDate;
166+
this.runtime = runtime;
165167
}
166168

167169
/**
168170
* Constructor of the movie object.
169171
* This constructor is used to stored information retrieve from the persistent system.
170172
*
171-
* @param id
172-
* identifier of the movie.
173173
* @param title
174174
* Title of the movie.
175-
* @param genres
176-
* List of all genres of the movie.
177-
* @param releaseDate
178-
* Date of release of the movie.
179-
* @param runtime
180-
* Duration of the movie in minute.
175+
* @param originalTitle
176+
* Original title of the movie.
181177
* @param synopsis
182178
* Synopsis of the movie.
183179
* @param mainActors
184180
* Main actors of the movie.
185-
* @param producers
186-
* List of all producers of the movie.
187181
* @param directors
188182
* List of all directors of the movie.
183+
* @param producers
184+
* List of all producers of the movie.
185+
* @param genres
186+
* List of all genres for the movie.
189187
* @param supports
190188
* Supports present for the movie.
191189
* @param languagesSpoken
192190
* List of languages spoken available on movie.
193191
* @param subtitles
194192
* List of subtitle languages available on movie.
193+
* @param releaseDate
194+
* Date of release of the movie.
195+
* @param runtime
196+
* Duration of the movie in minute.
195197
* @since 1.0
196198
* @version 1.0
197199
*/
198-
public Movie(long id, String title, String originalTitle, List<VideoGenre> genres, Calendar releaseDate, int runtime, String synopsis,
199-
Set<Actor> mainActors, Set<Producer> producers, Set<Director> directors, List<VideoSupport> supports,
200-
List<LanguageCode> languagesSpoken, List<LanguageCode> subtitles) {
201-
super.id = id;
202-
super.title = title;
200+
public Movie(long id, String title, String originalTitle, String synopsis,
201+
Set<Actor> mainActors, Set<Director> directors, Set<Producer> producers,
202+
List<VideoGenre> genres, List<VideoSupport> supports,
203+
List<LanguageCode> languagesSpoken, List<LanguageCode> subtitles,
204+
Calendar releaseDate, int runtime) {
205+
super.id = id;
206+
super.title = title;
203207
super.originalTitle = originalTitle;
204-
super.genres = genres;
205-
this.releaseDate = releaseDate;
206-
this.runtime = runtime;
207-
super.synopsis = synopsis;
208-
this.mainActors = mainActors;
209-
super.supports = supports;
210-
this.directors = directors;
211-
this.producers = producers;
212-
super.subtitles = subtitles;
208+
super.synopsis = synopsis;
209+
this.mainActors = mainActors;
210+
this.directors = directors;
211+
this.producers = producers;
212+
super.genres = genres;
213+
super.supports = supports;
213214
super.languagesSpoken = languagesSpoken;
215+
super.subtitles = subtitles;
216+
this.releaseDate = releaseDate;
217+
this.runtime = runtime;
214218
}
215219

216220
/**
@@ -222,19 +226,19 @@ public Movie(long id, String title, String originalTitle, List<VideoGenre> genre
222226
* @version 1.0
223227
*/
224228
public Movie(Movie movie) {
225-
super.id = movie.getId();
226-
super.title = movie.getTitle();
229+
super.id = movie.getId();
230+
super.title = movie.getTitle();
227231
super.originalTitle = movie.getOriginalTitle();
228-
super.genres = movie.getGenres();
229-
this.releaseDate = movie.getReleaseDate();
230-
this.runtime = movie.getRuntime();
231-
super.synopsis = movie.getSynopsis();
232-
this.mainActors = movie.getMainActors();
233-
super.supports = movie.getSupports();
234-
this.directors = movie.getDirectors();
235-
this.producers = movie.getProducers();
236-
super.subtitles = movie.getSubtitles();
232+
super.synopsis = movie.getSynopsis();
233+
this.mainActors = movie.getMainActors();
234+
super.genres = movie.getGenres();
235+
super.supports = movie.getSupports();
236+
this.directors = movie.getDirectors();
237+
this.producers = movie.getProducers();
237238
super.languagesSpoken = movie.getLanguagesSpoken();
239+
super.subtitles = movie.getSubtitles();
240+
this.releaseDate = movie.getReleaseDate();
241+
this.runtime = movie.getRuntime();
238242
}
239243

240244
/**

0 commit comments

Comments
 (0)