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