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