001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class JournalFolderServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
059 long groupId, long parentFolderId, java.lang.String name,
060 java.lang.String description,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addFolder(groupId, parentFolderId, name, description,
066 serviceContext);
067 }
068
069 public static void deleteFolder(long folderId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 getService().deleteFolder(folderId);
073 }
074
075 public static void deleteFolder(long folderId, boolean includeTrashedEntries)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 getService().deleteFolder(folderId, includeTrashedEntries);
079 }
080
081 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
082 long folderId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return getService().getFolder(folderId);
086 }
087
088 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
089 long folderId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService().getFolderIds(groupId, folderId);
093 }
094
095 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
096 long groupId)
097 throws com.liferay.portal.kernel.exception.SystemException {
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 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().getFolders(groupId, parentFolderId);
105 }
106
107 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
108 long groupId, long parentFolderId, int status)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getFolders(groupId, parentFolderId, status);
111 }
112
113 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
114 long groupId, long parentFolderId, int start, int end)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService().getFolders(groupId, parentFolderId, start, end);
117 }
118
119 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
120 long groupId, long parentFolderId, int status, int start, int end)
121 throws com.liferay.portal.kernel.exception.SystemException {
122 return getService()
123 .getFolders(groupId, parentFolderId, status, start, end);
124 }
125
126 public static java.util.List<java.lang.Object> getFoldersAndArticles(
127 long groupId, long folderId, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator obc)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getService()
131 .getFoldersAndArticles(groupId, folderId, start, end, obc);
132 }
133
134 public static int getFoldersAndArticlesCount(long groupId,
135 java.util.List<java.lang.Long> folderIds, int status)
136 throws com.liferay.portal.kernel.exception.SystemException {
137 return getService()
138 .getFoldersAndArticlesCount(groupId, folderIds, status);
139 }
140
141 public static int getFoldersAndArticlesCount(long groupId, long folderId)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 return getService().getFoldersAndArticlesCount(groupId, folderId);
144 }
145
146 public static int getFoldersAndArticlesCount(long groupId, long folderId,
147 int status) throws com.liferay.portal.kernel.exception.SystemException {
148 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
149 }
150
151 public static int getFoldersCount(long groupId, long parentFolderId)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getService().getFoldersCount(groupId, parentFolderId);
154 }
155
156 public static void getSubfolderIds(
157 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
158 throws com.liferay.portal.kernel.exception.SystemException {
159 getService().getSubfolderIds(folderIds, groupId, folderId);
160 }
161
162 public static java.util.List<java.lang.Long> getSubfolderIds(long groupId,
163 long folderId, boolean recurse)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().getSubfolderIds(groupId, folderId, recurse);
166 }
167
168 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
169 long folderId, long parentFolderId,
170 com.liferay.portal.service.ServiceContext serviceContext)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().moveFolder(folderId, parentFolderId, serviceContext);
174 }
175
176 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
177 long folderId, long parentFolderId,
178 com.liferay.portal.service.ServiceContext serviceContext)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService()
182 .moveFolderFromTrash(folderId, parentFolderId, serviceContext);
183 }
184
185 public static void moveFolderToTrash(long folderId)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 getService().moveFolderToTrash(folderId);
189 }
190
191 public static void restoreFolderFromTrash(long folderId)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 getService().restoreFolderFromTrash(folderId);
195 }
196
197 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
198 long folderId, long parentFolderId, java.lang.String name,
199 java.lang.String description, boolean mergeWithParentFolder,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 return getService()
204 .updateFolder(folderId, parentFolderId, name, description,
205 mergeWithParentFolder, serviceContext);
206 }
207
208 public static JournalFolderService getService() {
209 if (_service == null) {
210 _service = (JournalFolderService)PortalBeanLocatorUtil.locate(JournalFolderService.class.getName());
211
212 ReferenceRegistry.registerReference(JournalFolderServiceUtil.class,
213 "_service");
214 }
215
216 return _service;
217 }
218
219
222 public void setService(JournalFolderService service) {
223 }
224
225 private static JournalFolderService _service;
226 }