View Javadoc
1   /******************************************************************************
2    * RestDetailedVideo.java - Client facing domain object
3    * 
4    * BuckoVidLib - The BuckoSoft Video Library
5    * Copyright(c) 2015 - Dick Balaska
6    * 
7    */
8   package com.buckosoft.BuckoVidLib.domain.rest;
9   
10  import java.util.ArrayList;
11  import java.util.Collection;
12  
13  import javax.xml.bind.annotation.XmlRootElement;
14  
15  import com.buckosoft.BuckoVidLib.domain.Director;
16  import com.buckosoft.BuckoVidLib.domain.Genre;
17  import com.buckosoft.BuckoVidLib.domain.Role;
18  import com.buckosoft.BuckoVidLib.domain.Writer;
19  
20  
21  /** Client facing DetailedVideo domain object.
22   * @author dick
23   * @since 2015-03-25
24   */
25  @XmlRootElement(name="DetailedVideo")
26  public class RestDetailedVideo {
27  	private String	title;
28  	private	int		year;
29  	private	String	hashKey;
30  	private	String	studio;
31  	private	String	summary;
32  	private	String	tagline;
33  	private	Collection<Genre> 			genres = new ArrayList<Genre>();
34  	private	Collection<Writer>			writers = new ArrayList<Writer>();
35  	private	Collection<Director>		directors = new ArrayList<Director>();
36  	private	Collection<Role>			roles = new ArrayList<Role>();
37  	private	Collection<RestActor>		actors = new ArrayList<RestActor>();
38  	private	Collection<RestTVSeason>	seasons = new ArrayList<RestTVSeason>();
39  	
40  	/**
41  	 * @return the title
42  	 */
43  	public String getTitle() {
44  		return title;
45  	}
46  	/**
47  	 * @param title the title to set
48  	 */
49  	public void setTitle(String title) {
50  		this.title = title;
51  	}
52  	/**
53  	 * @return the year
54  	 */
55  	public int getYear() {
56  		return year;
57  	}
58  	/**
59  	 * @param year the year to set
60  	 */
61  	public void setYear(int year) {
62  		this.year = year;
63  	}
64  	/**
65  	 * @return the hashKey
66  	 */
67  	public String getHashKey() {
68  		return hashKey;
69  	}
70  	/**
71  	 * @param hashKey the hashKey to set
72  	 */
73  	public void setHashKey(String hashKey) {
74  		this.hashKey = hashKey;
75  	}
76  	/**
77  	 * @return the studio
78  	 */
79  	public String getStudio() {
80  		return studio;
81  	}
82  	/**
83  	 * @param studio the studio to set
84  	 */
85  	public void setStudio(String studio) {
86  		this.studio = studio;
87  	}
88  	/**
89  	 * @return the summary
90  	 */
91  	public String getSummary() {
92  		return summary;
93  	}
94  	/**
95  	 * @param summary the summary to set
96  	 */
97  	public void setSummary(String summary) {
98  		this.summary = summary;
99  	}
100 	/**
101 	 * @return the tagline
102 	 */
103 	public String getTagline() {
104 		return tagline;
105 	}
106 	/**
107 	 * @param tagLine the tagline to set
108 	 */
109 	public void setTagline(String tagline) {
110 		this.tagline = tagline;
111 	}
112 	/**
113 	 * @return the genres
114 	 */
115 	public Collection<Genre> getGenres() {
116 		return genres;
117 	}
118 	/**
119 	 * @param genres the genres to set
120 	 */
121 	public void setGenres(Collection<Genre> genres) {
122 		this.genres = genres;
123 	}
124 	/**
125 	 * @return the writers
126 	 */
127 	public Collection<Writer> getWriters() {
128 		return writers;
129 	}
130 	/**
131 	 * @param writers the writers to set
132 	 */
133 	public void setWriters(Collection<Writer> writers) {
134 		this.writers = writers;
135 	}
136 	/**
137 	 * @return the directors
138 	 */
139 	public Collection<Director> getDirectors() {
140 		return directors;
141 	}
142 	/**
143 	 * @param directors the directors to set
144 	 */
145 	public void setDirectors(Collection<Director> directors) {
146 		this.directors = directors;
147 	}
148 	/**
149 	 * @return the roles
150 	 */
151 	public Collection<Role> getRoles() {
152 		return roles;
153 	}
154 	/**
155 	 * @param roles the roles to set
156 	 */
157 	public void setRoles(Collection<Role> roles) {
158 		this.roles = roles;
159 	}
160 	/**
161 	 * @return the actors
162 	 */
163 	public Collection<RestActor> getActors() {
164 		return actors;
165 	}
166 	/**
167 	 * @param actors the actors to set
168 	 */
169 	public void setActors(Collection<RestActor> actors) {
170 		this.actors = actors;
171 	}
172 
173 	public void addActor(RestActor actor) {
174 		this.actors.add(actor);
175 	}
176 
177 	public Collection<RestTVSeason> getSeasons() {
178 		return seasons;
179 	}
180 	public void setSeasons(Collection<RestTVSeason> seasons) {
181 		this.seasons = seasons;
182 	}
183 	public void addSeason(RestTVSeason season) {
184 		this.seasons.add(season);
185 	}
186 	
187 }