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