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