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