1
19
20 package com.liferay.portlet.imagegallery.service;
21
22
23
44 public class IGFolderLocalServiceUtil {
45 public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
46 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
47 throws com.liferay.portal.SystemException {
48 return getService().addIGFolder(igFolder);
49 }
50
51 public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
52 long folderId) {
53 return getService().createIGFolder(folderId);
54 }
55
56 public static void deleteIGFolder(long folderId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteIGFolder(folderId);
60 }
61
62 public static void deleteIGFolder(
63 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
64 throws com.liferay.portal.SystemException {
65 getService().deleteIGFolder(igFolder);
66 }
67
68 public static java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
70 throws com.liferay.portal.SystemException {
71 return getService().dynamicQuery(dynamicQuery);
72 }
73
74 public static java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException {
77 return getService().dynamicQuery(dynamicQuery, start, end);
78 }
79
80 public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
81 long folderId)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getIGFolder(folderId);
85 }
86
87 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getIGFolders(start, end);
90 }
91
92 public static int getIGFoldersCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getIGFoldersCount();
95 }
96
97 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
98 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
99 throws com.liferay.portal.SystemException {
100 return getService().updateIGFolder(igFolder);
101 }
102
103 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
104 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
105 throws com.liferay.portal.SystemException {
106 return getService().updateIGFolder(igFolder, merge);
107 }
108
109 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
110 long userId, long parentFolderId, java.lang.String name,
111 java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException {
115 return getService()
116 .addFolder(userId, parentFolderId, name, description,
117 serviceContext);
118 }
119
120 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
121 java.lang.String uuid, long userId, long parentFolderId,
122 java.lang.String name, java.lang.String description,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addFolder(uuid, userId, parentFolderId, name, description,
128 serviceContext);
129 }
130
131 public static void addFolderResources(long folderId,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 getService()
136 .addFolderResources(folderId, addCommunityPermissions,
137 addGuestPermissions);
138 }
139
140 public static void addFolderResources(
141 com.liferay.portlet.imagegallery.model.IGFolder folder,
142 boolean addCommunityPermissions, boolean addGuestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 getService()
146 .addFolderResources(folder, addCommunityPermissions,
147 addGuestPermissions);
148 }
149
150 public static void addFolderResources(long folderId,
151 java.lang.String[] communityPermissions,
152 java.lang.String[] guestPermissions)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException {
155 getService()
156 .addFolderResources(folderId, communityPermissions, guestPermissions);
157 }
158
159 public static void addFolderResources(
160 com.liferay.portlet.imagegallery.model.IGFolder folder,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addFolderResources(folder, communityPermissions, guestPermissions);
167 }
168
169 public static void deleteFolder(long folderId)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 getService().deleteFolder(folderId);
173 }
174
175 public static void deleteFolder(
176 com.liferay.portlet.imagegallery.model.IGFolder folder)
177 throws com.liferay.portal.PortalException,
178 com.liferay.portal.SystemException {
179 getService().deleteFolder(folder);
180 }
181
182 public static void deleteFolders(long groupId)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService().deleteFolders(groupId);
186 }
187
188 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
189 long folderId)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 return getService().getFolder(folderId);
193 }
194
195 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
196 long groupId, long parentFolderId, java.lang.String name)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException {
199 return getService().getFolder(groupId, parentFolderId, name);
200 }
201
202 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
203 long groupId) throws com.liferay.portal.SystemException {
204 return getService().getFolders(groupId);
205 }
206
207 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
208 long groupId, long parentFolderId)
209 throws com.liferay.portal.SystemException {
210 return getService().getFolders(groupId, parentFolderId);
211 }
212
213 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
214 long groupId, long parentFolderId, int start, int end)
215 throws com.liferay.portal.SystemException {
216 return getService().getFolders(groupId, parentFolderId, start, end);
217 }
218
219 public static int getFoldersCount(long groupId, long parentFolderId)
220 throws com.liferay.portal.SystemException {
221 return getService().getFoldersCount(groupId, parentFolderId);
222 }
223
224 public static void getSubfolderIds(java.util.List<Long> folderIds,
225 long groupId, long folderId) throws com.liferay.portal.SystemException {
226 getService().getSubfolderIds(folderIds, groupId, folderId);
227 }
228
229 public static void reIndex(java.lang.String[] ids)
230 throws com.liferay.portal.SystemException {
231 getService().reIndex(ids);
232 }
233
234 public static com.liferay.portal.kernel.search.Hits search(long companyId,
235 long groupId, long[] folderIds, java.lang.String keywords, int start,
236 int end) throws com.liferay.portal.SystemException {
237 return getService()
238 .search(companyId, groupId, folderIds, keywords, start, end);
239 }
240
241 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
242 long folderId, long parentFolderId, java.lang.String name,
243 java.lang.String description, boolean mergeWithParentFolder,
244 com.liferay.portal.service.ServiceContext serviceContext)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 return getService()
248 .updateFolder(folderId, parentFolderId, name, description,
249 mergeWithParentFolder, serviceContext);
250 }
251
252 public static IGFolderLocalService getService() {
253 if (_service == null) {
254 throw new RuntimeException("IGFolderLocalService is not set");
255 }
256
257 return _service;
258 }
259
260 public void setService(IGFolderLocalService service) {
261 _service = service;
262 }
263
264 private static IGFolderLocalService _service;
265 }