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