1
19
20 package com.liferay.portlet.journal.service;
21
22
23
44 public class JournalStructureLocalServiceUtil {
45 public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
46 com.liferay.portlet.journal.model.JournalStructure journalStructure)
47 throws com.liferay.portal.SystemException {
48 return getService().addJournalStructure(journalStructure);
49 }
50
51 public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
52 long id) {
53 return getService().createJournalStructure(id);
54 }
55
56 public static void deleteJournalStructure(long id)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteJournalStructure(id);
60 }
61
62 public static void deleteJournalStructure(
63 com.liferay.portlet.journal.model.JournalStructure journalStructure)
64 throws com.liferay.portal.SystemException {
65 getService().deleteJournalStructure(journalStructure);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
81 long id)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getJournalStructure(id);
85 }
86
87 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getJournalStructures(start, end);
90 }
91
92 public static int getJournalStructuresCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getJournalStructuresCount();
95 }
96
97 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
98 com.liferay.portlet.journal.model.JournalStructure journalStructure)
99 throws com.liferay.portal.SystemException {
100 return getService().updateJournalStructure(journalStructure);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
104 long userId, java.lang.String structureId, boolean autoStructureId,
105 long plid, java.lang.String name, java.lang.String description,
106 java.lang.String xsd, boolean addCommunityPermissions,
107 boolean addGuestPermissions)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException {
110 return getService()
111 .addStructure(userId, structureId, autoStructureId, plid,
112 name, description, xsd, addCommunityPermissions, addGuestPermissions);
113 }
114
115 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
116 java.lang.String uuid, long userId, java.lang.String structureId,
117 boolean autoStructureId, long plid, java.lang.String name,
118 java.lang.String description, java.lang.String xsd,
119 boolean addCommunityPermissions, boolean addGuestPermissions)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 return getService()
123 .addStructure(uuid, userId, structureId, autoStructureId,
124 plid, name, description, xsd, addCommunityPermissions,
125 addGuestPermissions);
126 }
127
128 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
129 long userId, java.lang.String structureId, boolean autoStructureId,
130 long plid, java.lang.String name, java.lang.String description,
131 java.lang.String xsd, java.lang.String[] communityPermissions,
132 java.lang.String[] guestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService()
136 .addStructure(userId, structureId, autoStructureId, plid,
137 name, description, xsd, communityPermissions, guestPermissions);
138 }
139
140 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
141 java.lang.String uuid, long userId, java.lang.String structureId,
142 boolean autoStructureId, long plid, java.lang.String name,
143 java.lang.String description, java.lang.String xsd,
144 java.lang.Boolean addCommunityPermissions,
145 java.lang.Boolean addGuestPermissions,
146 java.lang.String[] communityPermissions,
147 java.lang.String[] guestPermissions)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException {
150 return getService()
151 .addStructure(uuid, userId, structureId, autoStructureId,
152 plid, name, description, xsd, addCommunityPermissions,
153 addGuestPermissions, communityPermissions, guestPermissions);
154 }
155
156 public static com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
157 java.lang.String uuid, long userId, java.lang.String structureId,
158 boolean autoStructureId, long groupId, java.lang.String name,
159 java.lang.String description, java.lang.String xsd,
160 java.lang.Boolean addCommunityPermissions,
161 java.lang.Boolean addGuestPermissions,
162 java.lang.String[] communityPermissions,
163 java.lang.String[] guestPermissions)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException {
166 return getService()
167 .addStructureToGroup(uuid, userId, structureId,
168 autoStructureId, groupId, name, description, xsd,
169 addCommunityPermissions, addGuestPermissions, communityPermissions,
170 guestPermissions);
171 }
172
173 public static void addStructureResources(long groupId,
174 java.lang.String structureId, boolean addCommunityPermissions,
175 boolean addGuestPermissions)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException {
178 getService()
179 .addStructureResources(groupId, structureId,
180 addCommunityPermissions, addGuestPermissions);
181 }
182
183 public static void addStructureResources(
184 com.liferay.portlet.journal.model.JournalStructure structure,
185 boolean addCommunityPermissions, boolean addGuestPermissions)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 getService()
189 .addStructureResources(structure, addCommunityPermissions,
190 addGuestPermissions);
191 }
192
193 public static void addStructureResources(long groupId,
194 java.lang.String structureId, java.lang.String[] communityPermissions,
195 java.lang.String[] guestPermissions)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 getService()
199 .addStructureResources(groupId, structureId, communityPermissions,
200 guestPermissions);
201 }
202
203 public static void addStructureResources(
204 com.liferay.portlet.journal.model.JournalStructure structure,
205 java.lang.String[] communityPermissions,
206 java.lang.String[] guestPermissions)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 getService()
210 .addStructureResources(structure, communityPermissions,
211 guestPermissions);
212 }
213
214 public static void checkNewLine(long groupId, java.lang.String structureId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 getService().checkNewLine(groupId, structureId);
218 }
219
220 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
221 long userId, long groupId, java.lang.String oldStructureId,
222 java.lang.String newStructureId, boolean autoStructureId)
223 throws com.liferay.portal.PortalException,
224 com.liferay.portal.SystemException {
225 return getService()
226 .copyStructure(userId, groupId, oldStructureId,
227 newStructureId, autoStructureId);
228 }
229
230 public static void deleteStructure(long groupId,
231 java.lang.String structureId)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 getService().deleteStructure(groupId, structureId);
235 }
236
237 public static void deleteStructure(
238 com.liferay.portlet.journal.model.JournalStructure structure)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException {
241 getService().deleteStructure(structure);
242 }
243
244 public static void deleteStructures(long groupId)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 getService().deleteStructures(groupId);
248 }
249
250 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
251 long id)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 return getService().getStructure(id);
255 }
256
257 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
258 long groupId, java.lang.String structureId)
259 throws com.liferay.portal.PortalException,
260 com.liferay.portal.SystemException {
261 return getService().getStructure(groupId, structureId);
262 }
263
264 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
265 throws com.liferay.portal.SystemException {
266 return getService().getStructures();
267 }
268
269 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
270 long groupId) throws com.liferay.portal.SystemException {
271 return getService().getStructures(groupId);
272 }
273
274 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
275 long groupId, int start, int end)
276 throws com.liferay.portal.SystemException {
277 return getService().getStructures(groupId, start, end);
278 }
279
280 public static int getStructuresCount(long groupId)
281 throws com.liferay.portal.SystemException {
282 return getService().getStructuresCount(groupId);
283 }
284
285 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
286 long companyId, long groupId, java.lang.String keywords, int start,
287 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
288 throws com.liferay.portal.SystemException {
289 return getService().search(companyId, groupId, keywords, start, end, obc);
290 }
291
292 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
293 long companyId, long groupId, java.lang.String structureId,
294 java.lang.String name, java.lang.String description,
295 boolean andOperator, int start, int end,
296 com.liferay.portal.kernel.util.OrderByComparator obc)
297 throws com.liferay.portal.SystemException {
298 return getService()
299 .search(companyId, groupId, structureId, name, description,
300 andOperator, start, end, obc);
301 }
302
303 public static int searchCount(long companyId, long groupId,
304 java.lang.String keywords) throws com.liferay.portal.SystemException {
305 return getService().searchCount(companyId, groupId, keywords);
306 }
307
308 public static int searchCount(long companyId, long groupId,
309 java.lang.String structureId, java.lang.String name,
310 java.lang.String description, boolean andOperator)
311 throws com.liferay.portal.SystemException {
312 return getService()
313 .searchCount(companyId, groupId, structureId, name,
314 description, andOperator);
315 }
316
317 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
318 long groupId, java.lang.String structureId, java.lang.String name,
319 java.lang.String description, java.lang.String xsd)
320 throws com.liferay.portal.PortalException,
321 com.liferay.portal.SystemException {
322 return getService()
323 .updateStructure(groupId, structureId, name, description, xsd);
324 }
325
326 public static JournalStructureLocalService getService() {
327 if (_service == null) {
328 throw new RuntimeException(
329 "JournalStructureLocalService is not set");
330 }
331
332 return _service;
333 }
334
335 public void setService(JournalStructureLocalService service) {
336 _service = service;
337 }
338
339 private static JournalStructureLocalService _service;
340 }