1
2
3
4
5 package com.hack23.cia.web.viewfactory.api.admin;
6
7 import com.hack23.cia.model.application.dto.common.UserSessionDTO;
8 import com.hack23.cia.model.application.impl.common.Agency;
9 import com.hack23.cia.model.application.impl.common.LanguageContent;
10 import com.hack23.cia.web.action.common.ControllerAction;
11
12 /***
13 * The Class LanguageContentModelAndView.
14 */
15 public class LanguageContentModelAndView extends AbstractAgencyModelAndView {
16
17 /***
18 * The Enum LanguageContentViewSpecification.
19 */
20 public enum LanguageContentViewSpecification {
21
22 /*** The Configure language content view. */
23 ConfigureLanguageContentView
24 }
25
26 /*** The Constant serialVersionUID. */
27 private static final long serialVersionUID = 1L;
28
29 /*** The language content. */
30 private final LanguageContent languageContent;
31
32 /*** The language content view specification. */
33 private final LanguageContentViewSpecification languageContentViewSpecification;
34
35 /***
36 * Instantiates a new language content model and view.
37 *
38 * @param userSessionDTO the user session dto
39 * @param controllerAction the controller action
40 * @param languageContentViewSpecification the language content view specification
41 * @param agency the agency
42 * @param languageContent the language content
43 */
44 public LanguageContentModelAndView(
45 final UserSessionDTO userSessionDTO,
46 final ControllerAction controllerAction,
47 final LanguageContentViewSpecification languageContentViewSpecification,
48 final Agency agency, final LanguageContent languageContent) {
49 super(userSessionDTO, controllerAction, agency);
50 this.languageContentViewSpecification = languageContentViewSpecification;
51 this.languageContent = languageContent;
52 }
53
54 /***
55 * Gets the language content.
56 *
57 * @return the language content
58 */
59 public final LanguageContent getLanguageContent() {
60 return languageContent;
61 }
62
63 /***
64 * Gets the language content view specification.
65 *
66 * @return the language content view specification
67 */
68 public final LanguageContentViewSpecification getLanguageContentViewSpecification() {
69 return languageContentViewSpecification;
70 }
71
72
73
74
75
76
77
78 @Override
79 public final String getViewSpecificationDescription() {
80 return languageContentViewSpecification.toString();
81 }
82
83 }