001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class JournalStructureLocalServiceUtil {
033 public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
034 com.liferay.portlet.journal.model.JournalStructure journalStructure)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addJournalStructure(journalStructure);
037 }
038
039 public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
040 long id) {
041 return getService().createJournalStructure(id);
042 }
043
044 public static void deleteJournalStructure(long id)
045 throws com.liferay.portal.kernel.exception.PortalException,
046 com.liferay.portal.kernel.exception.SystemException {
047 getService().deleteJournalStructure(id);
048 }
049
050 public static void deleteJournalStructure(
051 com.liferay.portlet.journal.model.JournalStructure journalStructure)
052 throws com.liferay.portal.kernel.exception.SystemException {
053 getService().deleteJournalStructure(journalStructure);
054 }
055
056 @SuppressWarnings("unchecked")
057 public static java.util.List dynamicQuery(
058 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059 throws com.liferay.portal.kernel.exception.SystemException {
060 return getService().dynamicQuery(dynamicQuery);
061 }
062
063 @SuppressWarnings("unchecked")
064 public static java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException {
067 return getService().dynamicQuery(dynamicQuery, start, end);
068 }
069
070 @SuppressWarnings("unchecked")
071 public static java.util.List dynamicQuery(
072 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073 int end,
074 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075 throws com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078 }
079
080 public static long dynamicQueryCount(
081 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 return getService().dynamicQueryCount(dynamicQuery);
084 }
085
086 public static com.liferay.portlet.journal.model.JournalStructure getJournalStructure(
087 long id)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService().getJournalStructure(id);
091 }
092
093 public static com.liferay.portlet.journal.model.JournalStructure getJournalStructureByUuidAndGroupId(
094 java.lang.String uuid, long groupId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService().getJournalStructureByUuidAndGroupId(uuid, groupId);
098 }
099
100 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
101 int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getJournalStructures(start, end);
104 }
105
106 public static int getJournalStructuresCount()
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getJournalStructuresCount();
109 }
110
111 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
112 com.liferay.portlet.journal.model.JournalStructure journalStructure)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().updateJournalStructure(journalStructure);
115 }
116
117 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
118 com.liferay.portlet.journal.model.JournalStructure journalStructure,
119 boolean merge)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateJournalStructure(journalStructure, merge);
122 }
123
124 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
125 long userId, long groupId, java.lang.String structureId,
126 boolean autoStructureId, java.lang.String parentStructureId,
127 java.lang.String name, java.lang.String description,
128 java.lang.String xsd,
129 com.liferay.portal.service.ServiceContext serviceContext)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService()
133 .addStructure(userId, groupId, structureId, autoStructureId,
134 parentStructureId, name, description, xsd, serviceContext);
135 }
136
137 public static void addStructureResources(long groupId,
138 java.lang.String structureId, boolean addCommunityPermissions,
139 boolean addGuestPermissions)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException {
142 getService()
143 .addStructureResources(groupId, structureId,
144 addCommunityPermissions, addGuestPermissions);
145 }
146
147 public static void addStructureResources(
148 com.liferay.portlet.journal.model.JournalStructure structure,
149 boolean addCommunityPermissions, boolean addGuestPermissions)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 getService()
153 .addStructureResources(structure, addCommunityPermissions,
154 addGuestPermissions);
155 }
156
157 public static void addStructureResources(long groupId,
158 java.lang.String structureId, java.lang.String[] communityPermissions,
159 java.lang.String[] guestPermissions)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 getService()
163 .addStructureResources(groupId, structureId, communityPermissions,
164 guestPermissions);
165 }
166
167 public static void addStructureResources(
168 com.liferay.portlet.journal.model.JournalStructure structure,
169 java.lang.String[] communityPermissions,
170 java.lang.String[] guestPermissions)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 getService()
174 .addStructureResources(structure, communityPermissions,
175 guestPermissions);
176 }
177
178 public static void checkNewLine(long groupId, java.lang.String structureId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 getService().checkNewLine(groupId, structureId);
182 }
183
184 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
185 long userId, long groupId, java.lang.String oldStructureId,
186 java.lang.String newStructureId, boolean autoStructureId)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException {
189 return getService()
190 .copyStructure(userId, groupId, oldStructureId,
191 newStructureId, autoStructureId);
192 }
193
194 public static void deleteStructure(long groupId,
195 java.lang.String structureId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 getService().deleteStructure(groupId, structureId);
199 }
200
201 public static void deleteStructure(
202 com.liferay.portlet.journal.model.JournalStructure structure)
203 throws com.liferay.portal.kernel.exception.PortalException,
204 com.liferay.portal.kernel.exception.SystemException {
205 getService().deleteStructure(structure);
206 }
207
208 public static void deleteStructures(long groupId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 getService().deleteStructures(groupId);
212 }
213
214 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
215 long id)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException {
218 return getService().getStructure(id);
219 }
220
221 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
222 long groupId, java.lang.String structureId)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getService().getStructure(groupId, structureId);
226 }
227
228 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().getStructures();
231 }
232
233 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
234 long groupId)
235 throws com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
242 return getService().getStructures(groupId, start, end);
243 }
244
245 public static int getStructuresCount(long groupId)
246 throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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)
270 throws com.liferay.portal.kernel.exception.SystemException {
271 return getService().searchCount(companyId, groupId, keywords);
272 }
273
274 public static int searchCount(long companyId, long groupId,
275 java.lang.String structureId, java.lang.String name,
276 java.lang.String description, boolean andOperator)
277 throws com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .searchCount(companyId, groupId, structureId, name,
280 description, andOperator);
281 }
282
283 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
284 long groupId, java.lang.String structureId,
285 java.lang.String parentStructureId, java.lang.String name,
286 java.lang.String description, java.lang.String xsd,
287 com.liferay.portal.service.ServiceContext serviceContext)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException {
290 return getService()
291 .updateStructure(groupId, structureId, parentStructureId,
292 name, description, xsd, serviceContext);
293 }
294
295 public static JournalStructureLocalService getService() {
296 if (_service == null) {
297 _service = (JournalStructureLocalService)PortalBeanLocatorUtil.locate(JournalStructureLocalService.class.getName());
298 }
299
300 return _service;
301 }
302
303 public void setService(JournalStructureLocalService service) {
304 _service = service;
305 }
306
307 private static JournalStructureLocalService _service;
308 }