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 java.util.List<Object> dynamicQuery(
76 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77 int end,
78 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79 throws com.liferay.portal.SystemException {
80 return getService()
81 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82 }
83
84 public static int dynamicQueryCount(
85 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86 throws com.liferay.portal.SystemException {
87 return getService().dynamicQueryCount(dynamicQuery);
88 }
89
90 public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
91 long id)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getJournalStructure(id);
95 }
96
97 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getJournalStructures(start, end);
100 }
101
102 public static int getJournalStructuresCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getJournalStructuresCount();
105 }
106
107 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
108 com.liferay.portlet.journal.model.JournalStructure journalStructure)
109 throws com.liferay.portal.SystemException {
110 return getService().updateJournalStructure(journalStructure);
111 }
112
113 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
114 com.liferay.portlet.journal.model.JournalStructure journalStructure,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateJournalStructure(journalStructure, merge);
117 }
118
119 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
120 long userId, long groupId, java.lang.String structureId,
121 boolean autoStructureId, java.lang.String parentStructureId,
122 java.lang.String name, java.lang.String description,
123 java.lang.String xsd,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws com.liferay.portal.PortalException,
126 com.liferay.portal.SystemException {
127 return getService()
128 .addStructure(userId, groupId, structureId, autoStructureId,
129 parentStructureId, name, description, xsd, serviceContext);
130 }
131
132 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
133 java.lang.String uuid, long userId, long groupId,
134 java.lang.String structureId, boolean autoStructureId,
135 java.lang.String parentStructureId, java.lang.String name,
136 java.lang.String description, java.lang.String xsd,
137 com.liferay.portal.service.ServiceContext serviceContext)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService()
141 .addStructure(uuid, userId, groupId, structureId,
142 autoStructureId, parentStructureId, name, description, xsd,
143 serviceContext);
144 }
145
146 public static void addStructureResources(long groupId,
147 java.lang.String structureId, boolean addCommunityPermissions,
148 boolean addGuestPermissions)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 getService()
152 .addStructureResources(groupId, structureId,
153 addCommunityPermissions, addGuestPermissions);
154 }
155
156 public static void addStructureResources(
157 com.liferay.portlet.journal.model.JournalStructure structure,
158 boolean addCommunityPermissions, boolean addGuestPermissions)
159 throws com.liferay.portal.PortalException,
160 com.liferay.portal.SystemException {
161 getService()
162 .addStructureResources(structure, addCommunityPermissions,
163 addGuestPermissions);
164 }
165
166 public static void addStructureResources(long groupId,
167 java.lang.String structureId, java.lang.String[] communityPermissions,
168 java.lang.String[] guestPermissions)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException {
171 getService()
172 .addStructureResources(groupId, structureId, communityPermissions,
173 guestPermissions);
174 }
175
176 public static void addStructureResources(
177 com.liferay.portlet.journal.model.JournalStructure structure,
178 java.lang.String[] communityPermissions,
179 java.lang.String[] guestPermissions)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 getService()
183 .addStructureResources(structure, communityPermissions,
184 guestPermissions);
185 }
186
187 public static void checkNewLine(long groupId, java.lang.String structureId)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException {
190 getService().checkNewLine(groupId, structureId);
191 }
192
193 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
194 long userId, long groupId, java.lang.String oldStructureId,
195 java.lang.String newStructureId, boolean autoStructureId)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 return getService()
199 .copyStructure(userId, groupId, oldStructureId,
200 newStructureId, autoStructureId);
201 }
202
203 public static void deleteStructure(long groupId,
204 java.lang.String structureId)
205 throws com.liferay.portal.PortalException,
206 com.liferay.portal.SystemException {
207 getService().deleteStructure(groupId, structureId);
208 }
209
210 public static void deleteStructure(
211 com.liferay.portlet.journal.model.JournalStructure structure)
212 throws com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException {
214 getService().deleteStructure(structure);
215 }
216
217 public static void deleteStructures(long groupId)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException {
220 getService().deleteStructures(groupId);
221 }
222
223 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
224 long id)
225 throws com.liferay.portal.PortalException,
226 com.liferay.portal.SystemException {
227 return getService().getStructure(id);
228 }
229
230 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
231 long groupId, java.lang.String structureId)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException {
234 return getService().getStructure(groupId, structureId);
235 }
236
237 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
238 throws com.liferay.portal.SystemException {
239 return getService().getStructures();
240 }
241
242 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
243 long groupId) throws com.liferay.portal.SystemException {
244 return getService().getStructures(groupId);
245 }
246
247 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
248 long groupId, int start, int end)
249 throws com.liferay.portal.SystemException {
250 return getService().getStructures(groupId, start, end);
251 }
252
253 public static int getStructuresCount(long groupId)
254 throws com.liferay.portal.SystemException {
255 return getService().getStructuresCount(groupId);
256 }
257
258 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
259 long companyId, long groupId, java.lang.String keywords, int start,
260 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
261 throws com.liferay.portal.SystemException {
262 return getService().search(companyId, groupId, keywords, start, end, obc);
263 }
264
265 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
266 long companyId, long groupId, java.lang.String structureId,
267 java.lang.String name, java.lang.String description,
268 boolean andOperator, int start, int end,
269 com.liferay.portal.kernel.util.OrderByComparator obc)
270 throws com.liferay.portal.SystemException {
271 return getService()
272 .search(companyId, groupId, structureId, name, description,
273 andOperator, start, end, obc);
274 }
275
276 public static int searchCount(long companyId, long groupId,
277 java.lang.String keywords) throws com.liferay.portal.SystemException {
278 return getService().searchCount(companyId, groupId, keywords);
279 }
280
281 public static int searchCount(long companyId, long groupId,
282 java.lang.String structureId, java.lang.String name,
283 java.lang.String description, boolean andOperator)
284 throws com.liferay.portal.SystemException {
285 return getService()
286 .searchCount(companyId, groupId, structureId, name,
287 description, andOperator);
288 }
289
290 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
291 long groupId, java.lang.String structureId,
292 java.lang.String parentStructureId, java.lang.String name,
293 java.lang.String description, java.lang.String xsd,
294 com.liferay.portal.service.ServiceContext serviceContext)
295 throws com.liferay.portal.PortalException,
296 com.liferay.portal.SystemException {
297 return getService()
298 .updateStructure(groupId, structureId, parentStructureId,
299 name, description, xsd, serviceContext);
300 }
301
302 public static JournalStructureLocalService getService() {
303 if (_service == null) {
304 _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
305 }
306
307 return _service;
308 }
309
310 public void setService(JournalStructureLocalService service) {
311 _service = service;
312 }
313
314 private static JournalStructureLocalService _service;
315 }