001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class RepositoryLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.Repository addRepository(
048 com.liferay.portal.model.Repository repository)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addRepository(repository);
051 }
052
053
059 public static com.liferay.portal.model.Repository createRepository(
060 long repositoryId) {
061 return getService().createRepository(repositoryId);
062 }
063
064
072 public static com.liferay.portal.model.Repository deleteRepository(
073 long repositoryId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteRepository(repositoryId);
077 }
078
079
086 public static com.liferay.portal.model.Repository deleteRepository(
087 com.liferay.portal.model.Repository repository)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteRepository(repository);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.Repository fetchRepository(
168 long repositoryId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchRepository(repositoryId);
171 }
172
173
181 public static com.liferay.portal.model.Repository getRepository(
182 long repositoryId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getRepository(repositoryId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portal.model.Repository getRepositoryByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getRepositoryByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portal.model.Repository> getRepositories(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getRepositories(start, end);
227 }
228
229
235 public static int getRepositoriesCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getRepositoriesCount();
238 }
239
240
247 public static com.liferay.portal.model.Repository updateRepository(
248 com.liferay.portal.model.Repository repository)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateRepository(repository);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portal.model.Repository addRepository(
272 long userId, long groupId, long classNameId, long parentFolderId,
273 java.lang.String name, java.lang.String description,
274 java.lang.String portletId,
275 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
276 boolean hidden, com.liferay.portal.service.ServiceContext serviceContext)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 return getService()
280 .addRepository(userId, groupId, classNameId, parentFolderId,
281 name, description, portletId, typeSettingsProperties, hidden,
282 serviceContext);
283 }
284
285
290 public static com.liferay.portal.model.Repository addRepository(
291 long userId, long groupId, long classNameId, long parentFolderId,
292 java.lang.String name, java.lang.String description,
293 java.lang.String portletId,
294 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
295 com.liferay.portal.service.ServiceContext serviceContext)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return getService()
299 .addRepository(userId, groupId, classNameId, parentFolderId,
300 name, description, portletId, typeSettingsProperties, serviceContext);
301 }
302
303 public static void checkRepository(long repositoryId)
304 throws com.liferay.portal.kernel.exception.SystemException {
305 getService().checkRepository(repositoryId);
306 }
307
308 public static void deleteRepositories(long groupId)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService().deleteRepositories(groupId);
312 }
313
314 public static com.liferay.portal.model.Repository fetchRepository(
315 long groupId, java.lang.String portletId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 return getService().fetchRepository(groupId, portletId);
318 }
319
320 public static com.liferay.portal.model.Repository fetchRepository(
321 long groupId, java.lang.String name, java.lang.String portletId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().fetchRepository(groupId, name, portletId);
324 }
325
326 public static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
327 long repositoryId)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException {
330 return getService().getLocalRepositoryImpl(repositoryId);
331 }
332
333 public static com.liferay.portal.kernel.repository.LocalRepository getLocalRepositoryImpl(
334 long folderId, long fileEntryId, long fileVersionId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService()
338 .getLocalRepositoryImpl(folderId, fileEntryId, fileVersionId);
339 }
340
341 public static com.liferay.portal.model.Repository getRepository(
342 long groupId, java.lang.String portletId)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 return getService().getRepository(groupId, portletId);
346 }
347
348 public static com.liferay.portal.model.Repository getRepository(
349 long groupId, java.lang.String name, java.lang.String portletId)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 return getService().getRepository(groupId, name, portletId);
353 }
354
355 public static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
356 long repositoryId)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 return getService().getRepositoryImpl(repositoryId);
360 }
361
362 public static com.liferay.portal.kernel.repository.Repository getRepositoryImpl(
363 long folderId, long fileEntryId, long fileVersionId)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException {
366 return getService()
367 .getRepositoryImpl(folderId, fileEntryId, fileVersionId);
368 }
369
370 public static com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties(
371 long repositoryId)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 return getService().getTypeSettingsProperties(repositoryId);
375 }
376
377 public static void updateRepository(long repositoryId,
378 java.lang.String name, java.lang.String description)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 getService().updateRepository(repositoryId, name, description);
382 }
383
384 public static RepositoryLocalService getService() {
385 if (_service == null) {
386 _service = (RepositoryLocalService)PortalBeanLocatorUtil.locate(RepositoryLocalService.class.getName());
387
388 ReferenceRegistry.registerReference(RepositoryLocalServiceUtil.class,
389 "_service");
390 }
391
392 return _service;
393 }
394
395
398 public void setService(RepositoryLocalService service) {
399 }
400
401 private static RepositoryLocalService _service;
402 }