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