1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
47 public class IGFolderServiceUtil {
48 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
49 long parentFolderId, java.lang.String name,
50 java.lang.String description,
51 com.liferay.portal.service.ServiceContext serviceContext)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 return getService()
55 .addFolder(parentFolderId, name, description, serviceContext);
56 }
57
58 public static com.liferay.portlet.imagegallery.model.IGFolder copyFolder(
59 long sourceFolderId, long parentFolderId, java.lang.String name,
60 java.lang.String description,
61 com.liferay.portal.service.ServiceContext serviceContext)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException {
64 return getService()
65 .copyFolder(sourceFolderId, parentFolderId, name,
66 description, serviceContext);
67 }
68
69 public static void deleteFolder(long folderId)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException {
72 getService().deleteFolder(folderId);
73 }
74
75 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
76 long folderId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getFolder(folderId);
80 }
81
82 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
83 long groupId, long parentFolderId, java.lang.String name)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getFolder(groupId, parentFolderId, name);
87 }
88
89 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
90 long groupId, long parentFolderId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException {
93 return getService().getFolders(groupId, parentFolderId);
94 }
95
96 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
97 long folderId, long parentFolderId, java.lang.String name,
98 java.lang.String description, boolean mergeWithParentFolder)
99 throws com.liferay.portal.PortalException,
100 com.liferay.portal.SystemException {
101 return getService()
102 .updateFolder(folderId, parentFolderId, name, description,
103 mergeWithParentFolder);
104 }
105
106 public static IGFolderService getService() {
107 if (_service == null) {
108 throw new RuntimeException("IGFolderService is not set");
109 }
110
111 return _service;
112 }
113
114 public void setService(IGFolderService service) {
115 _service = service;
116 }
117
118 private static IGFolderService _service;
119 }