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 getFolder(
086 long folderId)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService().getFolder(folderId);
090 }
091
092 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
093 long folderId)
094 throws com.liferay.portal.kernel.exception.PortalException,
095 com.liferay.portal.kernel.exception.SystemException {
096 return getService().getFolderIds(groupId, folderId);
097 }
098
099 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
100 long groupId)
101 throws com.liferay.portal.kernel.exception.SystemException {
102 return getService().getFolders(groupId);
103 }
104
105 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
106 long groupId, long parentFolderId)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().getFolders(groupId, parentFolderId);
109 }
110
111 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
112 long groupId, long parentFolderId, int status)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 return getService().getFolders(groupId, parentFolderId, status);
115 }
116
117 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
118 long groupId, long parentFolderId, int start, int end)
119 throws com.liferay.portal.kernel.exception.SystemException {
120 return getService().getFolders(groupId, parentFolderId, start, end);
121 }
122
123 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
124 long groupId, long parentFolderId, int status, int start, int end)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .getFolders(groupId, parentFolderId, status, start, end);
128 }
129
130 public static java.util.List<java.lang.Object> getFoldersAndArticles(
131 long groupId, long folderId, int status, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getService()
135 .getFoldersAndArticles(groupId, folderId, status, start,
136 end, obc);
137 }
138
139 public static java.util.List<java.lang.Object> getFoldersAndArticles(
140 long groupId, long folderId, int start, int end,
141 com.liferay.portal.kernel.util.OrderByComparator obc)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getService()
144 .getFoldersAndArticles(groupId, folderId, start, end, obc);
145 }
146
147 public static int getFoldersAndArticlesCount(long groupId,
148 java.util.List<java.lang.Long> folderIds, int status)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .getFoldersAndArticlesCount(groupId, folderIds, status);
152 }
153
154 public static int getFoldersAndArticlesCount(long groupId, long folderId)
155 throws com.liferay.portal.kernel.exception.SystemException {
156 return getService().getFoldersAndArticlesCount(groupId, folderId);
157 }
158
159 public static int getFoldersAndArticlesCount(long groupId, long folderId,
160 int status) throws com.liferay.portal.kernel.exception.SystemException {
161 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
162 }
163
164 public static int getFoldersCount(long groupId, long parentFolderId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().getFoldersCount(groupId, parentFolderId);
167 }
168
169 public static int getFoldersCount(long groupId, long parentFolderId,
170 int status) throws com.liferay.portal.kernel.exception.SystemException {
171 return getService().getFoldersCount(groupId, parentFolderId, status);
172 }
173
174 public static void getSubfolderIds(
175 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
176 throws com.liferay.portal.kernel.exception.SystemException {
177 getService().getSubfolderIds(folderIds, groupId, folderId);
178 }
179
180 public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
181 long folderId, boolean recurse)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().getSubfolderIds(groupId, folderId, recurse);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
187 long folderId, long parentFolderId,
188 com.liferay.portal.service.ServiceContext serviceContext)
189 throws com.liferay.portal.kernel.exception.PortalException,
190 com.liferay.portal.kernel.exception.SystemException {
191 return getService().moveFolder(folderId, parentFolderId, serviceContext);
192 }
193
194 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
195 long folderId, long parentFolderId,
196 com.liferay.portal.service.ServiceContext serviceContext)
197 throws com.liferay.portal.kernel.exception.PortalException,
198 com.liferay.portal.kernel.exception.SystemException {
199 return getService()
200 .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
201 }
202
203 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
204 long folderId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException {
207 return getService().moveFolderToTrash(folderId);
208 }
209
210 public static void restoreFolderFromTrash(long folderId)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException {
213 getService().restoreFolderFromTrash(folderId);
214 }
215
216 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
217 long folderId, long parentFolderId, java.lang.String name,
218 java.lang.String description, boolean mergeWithParentFolder,
219 com.liferay.portal.service.ServiceContext serviceContext)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException {
222 return getService()
223 .updateFolder(folderId, parentFolderId, name, description,
224 mergeWithParentFolder, serviceContext);
225 }
226
227 public static JournalFolderService getService() {
228 if (_service == null) {
229 _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
230
231 ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
232 "_service");
233 }
234
235 return _service;
236 }
237
238
241 public void setService(JournalFolderService service) {
242 }
243
244 private static JournalFolderService _service;
245 }