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