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