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.kernel.exception.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.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
93 com.liferay.portal.kernel.exception.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)
99 throws com.liferay.portal.kernel.exception.SystemException {
100 return getService().getIGFolders(start, end);
101 }
102
103 public static int getIGFoldersCount()
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getIGFoldersCount();
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
109 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().updateIGFolder(igFolder);
112 }
113
114 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
115 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().updateIGFolder(igFolder, merge);
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.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .addFolder(uuid, userId, parentFolderId, name, description,
128 serviceContext);
129 }
130
131 public static void addFolderResources(
132 com.liferay.portlet.imagegallery.model.IGFolder folder,
133 boolean addCommunityPermissions, boolean addGuestPermissions)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException {
136 getService()
137 .addFolderResources(folder, addCommunityPermissions,
138 addGuestPermissions);
139 }
140
141 public static void addFolderResources(
142 com.liferay.portlet.imagegallery.model.IGFolder folder,
143 java.lang.String[] communityPermissions,
144 java.lang.String[] guestPermissions)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException {
147 getService()
148 .addFolderResources(folder, communityPermissions, guestPermissions);
149 }
150
151 public static void addFolderResources(long folderId,
152 boolean addCommunityPermissions, boolean addGuestPermissions)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException {
155 getService()
156 .addFolderResources(folderId, addCommunityPermissions,
157 addGuestPermissions);
158 }
159
160 public static void addFolderResources(long folderId,
161 java.lang.String[] communityPermissions,
162 java.lang.String[] guestPermissions)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException {
165 getService()
166 .addFolderResources(folderId, communityPermissions, guestPermissions);
167 }
168
169 public static void deleteFolder(
170 com.liferay.portlet.imagegallery.model.IGFolder folder)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 getService().deleteFolder(folder);
174 }
175
176 public static void deleteFolder(long folderId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 getService().deleteFolder(folderId);
180 }
181
182 public static void deleteFolders(long groupId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 getService().deleteFolders(groupId);
186 }
187
188 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
189 long companyId, int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException {
191 return getService().getCompanyFolders(companyId, start, end);
192 }
193
194 public static int getCompanyFoldersCount(long companyId)
195 throws com.liferay.portal.kernel.exception.SystemException {
196 return getService().getCompanyFoldersCount(companyId);
197 }
198
199 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
200 long folderId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 return getService().getFolder(folderId);
204 }
205
206 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
207 long groupId, long parentFolderId, java.lang.String name)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException {
210 return getService().getFolder(groupId, parentFolderId, name);
211 }
212
213 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
214 long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().getFolders(groupId);
217 }
218
219 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
220 long groupId, long parentFolderId)
221 throws com.liferay.portal.kernel.exception.SystemException {
222 return getService().getFolders(groupId, parentFolderId);
223 }
224
225 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
226 long groupId, long parentFolderId, int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getFolders(groupId, parentFolderId, start, end);
229 }
230
231 public static int getFoldersCount(long groupId, long parentFolderId)
232 throws com.liferay.portal.kernel.exception.SystemException {
233 return getService().getFoldersCount(groupId, parentFolderId);
234 }
235
236 public static void getSubfolderIds(java.util.List<Long> folderIds,
237 long groupId, long folderId)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 getService().getSubfolderIds(folderIds, groupId, folderId);
240 }
241
242 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
243 long folderId, long parentFolderId, java.lang.String name,
244 java.lang.String description, boolean mergeWithParentFolder,
245 com.liferay.portal.service.ServiceContext serviceContext)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 return getService()
249 .updateFolder(folderId, parentFolderId, name, description,
250 mergeWithParentFolder, serviceContext);
251 }
252
253 public static IGFolderLocalService getService() {
254 if (_service == null) {
255 _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
256 }
257
258 return _service;
259 }
260
261 public void setService(IGFolderLocalService service) {
262 _service = service;
263 }
264
265 private static IGFolderLocalService _service;
266 }