001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class JournalFolderServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
063 long groupId, long parentFolderId, java.lang.String name,
064 java.lang.String description,
065 com.liferay.portal.service.ServiceContext serviceContext)
066 throws com.liferay.portal.kernel.exception.PortalException,
067 com.liferay.portal.kernel.exception.SystemException {
068 return getService()
069 .addFolder(groupId, parentFolderId, name, description,
070 serviceContext);
071 }
072
073 public static void deleteFolder(long folderId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 getService().deleteFolder(folderId);
077 }
078
079 public static void deleteFolder(long folderId, boolean includeTrashedEntries)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 getService().deleteFolder(folderId, includeTrashedEntries);
083 }
084
085 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
086 long folderId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService().fetchFolder(folderId);
090 }
091
092 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
093 long folderId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getFolder(folderId);
097 }
098
099 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
100 long folderId)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 return getService().getFolderIds(groupId, folderId);
104 }
105
106 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
107 long groupId)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().getFolders(groupId);
110 }
111
112 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
113 long groupId, long parentFolderId)
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getService().getFolders(groupId, parentFolderId);
116 }
117
118 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
119 long groupId, long parentFolderId, int status)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().getFolders(groupId, parentFolderId, status);
122 }
123
124 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
125 long groupId, long parentFolderId, int start, int end)
126 throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().getFolders(groupId, parentFolderId, start, end);
128 }
129
130 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
131 long groupId, long parentFolderId, int status, int start, int end)
132 throws com.liferay.portal.kernel.exception.SystemException {
133 return getService()
134 .getFolders(groupId, parentFolderId, status, start, end);
135 }
136
137 public static java.util.List<java.lang.Object> getFoldersAndArticles(
138 long groupId, long folderId, int status, int start, int end,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getService()
142 .getFoldersAndArticles(groupId, folderId, status, start,
143 end, obc);
144 }
145
146 public static java.util.List<java.lang.Object> getFoldersAndArticles(
147 long groupId, long folderId, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .getFoldersAndArticles(groupId, folderId, start, end, obc);
152 }
153
154 public static java.util.List<java.lang.Object> getFoldersAndArticles(
155 long groupId, long userId, long folderId, int status, int start,
156 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService()
159 .getFoldersAndArticles(groupId, userId, folderId, status,
160 start, end, obc);
161 }
162
163 public static int getFoldersAndArticlesCount(long groupId,
164 java.util.List<java.lang.Long> folderIds, int status)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService()
167 .getFoldersAndArticlesCount(groupId, folderIds, status);
168 }
169
170 public static int getFoldersAndArticlesCount(long groupId, long folderId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().getFoldersAndArticlesCount(groupId, folderId);
173 }
174
175 public static int getFoldersAndArticlesCount(long groupId, long folderId,
176 int status) throws com.liferay.portal.kernel.exception.SystemException {
177 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
178 }
179
180 public static int getFoldersAndArticlesCount(long groupId, long userId,
181 long folderId, int status)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService()
184 .getFoldersAndArticlesCount(groupId, userId, folderId, status);
185 }
186
187 public static int getFoldersCount(long groupId, long parentFolderId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().getFoldersCount(groupId, parentFolderId);
190 }
191
192 public static int getFoldersCount(long groupId, long parentFolderId,
193 int status) throws com.liferay.portal.kernel.exception.SystemException {
194 return getService().getFoldersCount(groupId, parentFolderId, status);
195 }
196
197
201 public static void getSubfolderIds(
202 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
203 throws com.liferay.portal.kernel.exception.SystemException {
204 getService().getSubfolderIds(folderIds, groupId, folderId);
205 }
206
207 public static void getSubfolderIds(
208 java.util.List<java.lang.Long> folderIds, long groupId, long folderId,
209 boolean recurse)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 getService().getSubfolderIds(folderIds, groupId, folderId, recurse);
212 }
213
214 public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
215 long folderId, boolean recurse)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getSubfolderIds(groupId, folderId, recurse);
218 }
219
220 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
221 long folderId, long parentFolderId,
222 com.liferay.portal.service.ServiceContext serviceContext)
223 throws com.liferay.portal.kernel.exception.PortalException,
224 com.liferay.portal.kernel.exception.SystemException {
225 return getService().moveFolder(folderId, parentFolderId, serviceContext);
226 }
227
228 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
229 long folderId, long parentFolderId,
230 com.liferay.portal.service.ServiceContext serviceContext)
231 throws com.liferay.portal.kernel.exception.PortalException,
232 com.liferay.portal.kernel.exception.SystemException {
233 return getService()
234 .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
235 }
236
237 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
238 long folderId)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException {
241 return getService().moveFolderToTrash(folderId);
242 }
243
244 public static void restoreFolderFromTrash(long folderId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 getService().restoreFolderFromTrash(folderId);
248 }
249
250 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
251 long folderId, long parentFolderId, java.lang.String name,
252 java.lang.String description, boolean mergeWithParentFolder,
253 com.liferay.portal.service.ServiceContext serviceContext)
254 throws com.liferay.portal.kernel.exception.PortalException,
255 com.liferay.portal.kernel.exception.SystemException {
256 return getService()
257 .updateFolder(folderId, parentFolderId, name, description,
258 mergeWithParentFolder, serviceContext);
259 }
260
261 public static JournalFolderService getService() {
262 if (_service == null) {
263 _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
264
265 ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
266 "_service");
267 }
268
269 return _service;
270 }
271
272
275 public void setService(JournalFolderService service) {
276 }
277
278 private static JournalFolderService _service;
279 }