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