1
2
3
4
5
6 package com.hack23.cia.service.impl.admin;
7
8 import com.hack23.cia.model.application.impl.common.Agency;
9 import com.hack23.cia.model.application.impl.common.ImageContent;
10 import com.hack23.cia.model.application.impl.common.Language;
11 import com.hack23.cia.model.application.impl.common.LanguageContent;
12 import com.hack23.cia.model.application.impl.common.Portal;
13
14 /***
15 * The Interface AdminService.
16 */
17 public interface AdminService {
18
19 /***
20 * Adds the agency language content.
21 *
22 * @param agency the agency
23 * @param language the language
24 * @param key the key
25 * @param content the content
26 * @return the agency
27 */
28 Agency addAgencyLanguageContent(Agency agency,Language language,String key, String content);
29
30 /***
31 * Adds the language.
32 *
33 * @param agency the agency
34 * @return the agency
35 */
36 Agency addLanguage(Agency agency);
37
38
39 /***
40 * Adds the language content.
41 *
42 * @param agency the agency
43 * @param language the language
44 * @return the language content
45 */
46 LanguageContent addLanguageContent(Agency agency, Language language);
47
48 /***
49 * Adds the portal.
50 *
51 * @param agency the agency
52 * @return the agency
53 */
54 Agency addPortal(Agency agency);
55
56 /***
57 * Creates the response time graph.
58 *
59 * @return the image content
60 */
61 ImageContent createResponseTimeGraph();
62
63 /***
64 * Delete language.
65 *
66 * @param agency the agency
67 * @param language the language
68 * @return the agency
69 */
70 Agency deleteLanguage(Agency agency, Language language);
71
72 /***
73 * Delete language content.
74 *
75 * @param agency the agency
76 * @param languageContent the language content
77 * @return the agency
78 */
79 Agency deleteLanguageContent(Agency agency, LanguageContent languageContent);
80
81 /***
82 * Delete portal.
83 *
84 * @param portal the portal
85 * @return the agency
86 */
87 Agency deletePortal(Portal portal);
88
89 /***
90 * Gets the recent actions graph.
91 *
92 * @return the recent actions graph
93 */
94 ImageContent getRecentActionsGraph();
95
96 /***
97 * Load agency.
98 *
99 * @return the agency
100 */
101 Agency loadAgency();
102
103 /***
104 * Load agency.
105 *
106 * @param agencyId the agency id
107 * @return the agency
108 */
109 Agency loadAgency(Long agencyId);
110
111 /***
112 * Start update job.
113 */
114 void startUpdateJob();
115
116 /***
117 * Update agency.
118 *
119 * @param agency the agency
120 * @return the agency
121 */
122 Agency updateAgency(Agency agency);
123
124 /***
125 * Update language.
126 *
127 * @param agency the agency
128 * @param language the language
129 * @return the agency
130 */
131 Agency updateLanguage(Agency agency, Language language);
132
133 /***
134 * Update language content.
135 *
136 * @param agency the agency
137 * @param languageContent the language content
138 * @return the agency
139 */
140 Agency updateLanguageContent(Agency agency, LanguageContent languageContent);
141
142 /***
143 * Update portal.
144 *
145 * @param portal the portal
146 * @return the portal
147 */
148 Portal updatePortal(Portal portal);
149 }