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