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 addStructure(
107 long userId, java.lang.String structureId, boolean autoStructureId,
108 long plid, java.lang.String name, java.lang.String description,
109 java.lang.String xsd, boolean addCommunityPermissions,
110 boolean addGuestPermissions)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException {
113 return getService()
114 .addStructure(userId, structureId, autoStructureId, plid,
115 name, description, xsd, addCommunityPermissions, addGuestPermissions);
116 }
117
118 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
119 java.lang.String uuid, long userId, java.lang.String structureId,
120 boolean autoStructureId, long plid, java.lang.String name,
121 java.lang.String description, java.lang.String xsd,
122 boolean addCommunityPermissions, boolean addGuestPermissions)
123 throws com.liferay.portal.PortalException,
124 com.liferay.portal.SystemException {
125 return getService()
126 .addStructure(uuid, userId, structureId, autoStructureId,
127 plid, name, description, xsd, addCommunityPermissions,
128 addGuestPermissions);
129 }
130
131 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
132 long userId, java.lang.String structureId, boolean autoStructureId,
133 long plid, java.lang.String name, java.lang.String description,
134 java.lang.String xsd, java.lang.String[] communityPermissions,
135 java.lang.String[] guestPermissions)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 return getService()
139 .addStructure(userId, structureId, autoStructureId, plid,
140 name, description, xsd, communityPermissions, guestPermissions);
141 }
142
143 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
144 java.lang.String uuid, long userId, java.lang.String structureId,
145 boolean autoStructureId, long plid, java.lang.String name,
146 java.lang.String description, java.lang.String xsd,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addStructure(uuid, userId, structureId, autoStructureId,
155 plid, name, description, xsd, addCommunityPermissions,
156 addGuestPermissions, communityPermissions, guestPermissions);
157 }
158
159 public static com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
160 java.lang.String uuid, long userId, java.lang.String structureId,
161 boolean autoStructureId, long groupId, java.lang.String name,
162 java.lang.String description, java.lang.String xsd,
163 java.lang.Boolean addCommunityPermissions,
164 java.lang.Boolean addGuestPermissions,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException {
169 return getService()
170 .addStructureToGroup(uuid, userId, structureId,
171 autoStructureId, groupId, name, description, xsd,
172 addCommunityPermissions, addGuestPermissions, communityPermissions,
173 guestPermissions);
174 }
175
176 public static void addStructureResources(long groupId,
177 java.lang.String structureId, boolean addCommunityPermissions,
178 boolean addGuestPermissions)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 getService()
182 .addStructureResources(groupId, structureId,
183 addCommunityPermissions, addGuestPermissions);
184 }
185
186 public static void addStructureResources(
187 com.liferay.portlet.journal.model.JournalStructure structure,
188 boolean addCommunityPermissions, boolean addGuestPermissions)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService()
192 .addStructureResources(structure, addCommunityPermissions,
193 addGuestPermissions);
194 }
195
196 public static void addStructureResources(long groupId,
197 java.lang.String structureId, java.lang.String[] communityPermissions,
198 java.lang.String[] guestPermissions)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException {
201 getService()
202 .addStructureResources(groupId, structureId, communityPermissions,
203 guestPermissions);
204 }
205
206 public static void addStructureResources(
207 com.liferay.portlet.journal.model.JournalStructure structure,
208 java.lang.String[] communityPermissions,
209 java.lang.String[] guestPermissions)
210 throws com.liferay.portal.PortalException,
211 com.liferay.portal.SystemException {
212 getService()
213 .addStructureResources(structure, communityPermissions,
214 guestPermissions);
215 }
216
217 public static void checkNewLine(long groupId, java.lang.String structureId)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException {
220 getService().checkNewLine(groupId, structureId);
221 }
222
223 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
224 long userId, long groupId, java.lang.String oldStructureId,
225 java.lang.String newStructureId, boolean autoStructureId)
226 throws com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException {
228 return getService()
229 .copyStructure(userId, groupId, oldStructureId,
230 newStructureId, autoStructureId);
231 }
232
233 public static void deleteStructure(long groupId,
234 java.lang.String structureId)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException {
237 getService().deleteStructure(groupId, structureId);
238 }
239
240 public static void deleteStructure(
241 com.liferay.portlet.journal.model.JournalStructure structure)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 getService().deleteStructure(structure);
245 }
246
247 public static void deleteStructures(long groupId)
248 throws com.liferay.portal.PortalException,
249 com.liferay.portal.SystemException {
250 getService().deleteStructures(groupId);
251 }
252
253 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
254 long id)
255 throws com.liferay.portal.PortalException,
256 com.liferay.portal.SystemException {
257 return getService().getStructure(id);
258 }
259
260 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
261 long groupId, java.lang.String structureId)
262 throws com.liferay.portal.PortalException,
263 com.liferay.portal.SystemException {
264 return getService().getStructure(groupId, structureId);
265 }
266
267 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
268 throws com.liferay.portal.SystemException {
269 return getService().getStructures();
270 }
271
272 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
273 long groupId) throws com.liferay.portal.SystemException {
274 return getService().getStructures(groupId);
275 }
276
277 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
278 long groupId, int start, int end)
279 throws com.liferay.portal.SystemException {
280 return getService().getStructures(groupId, start, end);
281 }
282
283 public static int getStructuresCount(long groupId)
284 throws com.liferay.portal.SystemException {
285 return getService().getStructuresCount(groupId);
286 }
287
288 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
289 long companyId, long groupId, java.lang.String keywords, int start,
290 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
291 throws com.liferay.portal.SystemException {
292 return getService().search(companyId, groupId, keywords, start, end, obc);
293 }
294
295 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
296 long companyId, long groupId, java.lang.String structureId,
297 java.lang.String name, java.lang.String description,
298 boolean andOperator, int start, int end,
299 com.liferay.portal.kernel.util.OrderByComparator obc)
300 throws com.liferay.portal.SystemException {
301 return getService()
302 .search(companyId, groupId, structureId, name, description,
303 andOperator, start, end, obc);
304 }
305
306 public static int searchCount(long companyId, long groupId,
307 java.lang.String keywords) throws com.liferay.portal.SystemException {
308 return getService().searchCount(companyId, groupId, keywords);
309 }
310
311 public static int searchCount(long companyId, long groupId,
312 java.lang.String structureId, java.lang.String name,
313 java.lang.String description, boolean andOperator)
314 throws com.liferay.portal.SystemException {
315 return getService()
316 .searchCount(companyId, groupId, structureId, name,
317 description, andOperator);
318 }
319
320 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
321 long groupId, java.lang.String structureId, java.lang.String name,
322 java.lang.String description, java.lang.String xsd)
323 throws com.liferay.portal.PortalException,
324 com.liferay.portal.SystemException {
325 return getService()
326 .updateStructure(groupId, structureId, name, description, xsd);
327 }
328
329 public static JournalStructureLocalService getService() {
330 if (_service == null) {
331 throw new RuntimeException(
332 "JournalStructureLocalService is not set");
333 }
334
335 return _service;
336 }
337
338 public void setService(JournalStructureLocalService service) {
339 _service = service;
340 }
341
342 private static JournalStructureLocalService _service;
343 }