001
014
015 package com.liferay.portlet.bookmarks.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 BookmarksFolderServiceUtil {
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.bookmarks.model.BookmarksFolder addFolder(
063 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(parentFolderId, name, description, serviceContext);
070 }
071
072 public static void deleteFolder(long folderId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteFolder(folderId);
076 }
077
078 public static void deleteFolder(long folderId, boolean includeTrashedEntries)
079 throws com.liferay.portal.kernel.exception.PortalException,
080 com.liferay.portal.kernel.exception.SystemException {
081 getService().deleteFolder(folderId, includeTrashedEntries);
082 }
083
084 public static com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
085 long folderId)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 return getService().getFolder(folderId);
089 }
090
091 public static java.util.List<java.lang.Long> getFolderIds(long groupId,
092 long folderId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException {
095 return getService().getFolderIds(groupId, folderId);
096 }
097
098 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
099 long groupId)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().getFolders(groupId);
102 }
103
104 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
105 long groupId, long parentFolderId)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().getFolders(groupId, parentFolderId);
108 }
109
110 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
111 long groupId, long parentFolderId, int start, int end)
112 throws com.liferay.portal.kernel.exception.SystemException {
113 return getService().getFolders(groupId, parentFolderId, start, end);
114 }
115
116 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
117 long groupId, long parentFolderId, int status, int start, int end)
118 throws com.liferay.portal.kernel.exception.SystemException {
119 return getService()
120 .getFolders(groupId, parentFolderId, status, start, end);
121 }
122
123 public static java.util.List<java.lang.Object> getFoldersAndEntries(
124 long groupId, long folderId)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getService().getFoldersAndEntries(groupId, folderId);
127 }
128
129 public static java.util.List<java.lang.Object> getFoldersAndEntries(
130 long groupId, long folderId, int status)
131 throws com.liferay.portal.kernel.exception.SystemException {
132 return getService().getFoldersAndEntries(groupId, folderId, status);
133 }
134
135 public static java.util.List<java.lang.Object> getFoldersAndEntries(
136 long groupId, long folderId, int status, int start, int end)
137 throws com.liferay.portal.kernel.exception.SystemException {
138 return getService()
139 .getFoldersAndEntries(groupId, folderId, status, start, end);
140 }
141
142 public static int getFoldersAndEntriesCount(long groupId, long folderId)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService().getFoldersAndEntriesCount(groupId, folderId);
145 }
146
147 public static int getFoldersAndEntriesCount(long groupId, long folderId,
148 int status) throws com.liferay.portal.kernel.exception.SystemException {
149 return getService().getFoldersAndEntriesCount(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.bookmarks.model.BookmarksFolder moveFolder(
175 long folderId, long parentFolderId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().moveFolder(folderId, parentFolderId);
179 }
180
181 public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
182 long folderId, long parentFolderId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().moveFolderFromTrash(folderId, parentFolderId);
186 }
187
188 public static com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
189 long folderId)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().moveFolderToTrash(folderId);
193 }
194
195 public static void restoreFolderFromTrash(long folderId)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException {
198 getService().restoreFolderFromTrash(folderId);
199 }
200
201 public static void subscribeFolder(long groupId, long folderId)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 getService().subscribeFolder(groupId, folderId);
205 }
206
207 public static void unsubscribeFolder(long groupId, long folderId)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException {
210 getService().unsubscribeFolder(groupId, folderId);
211 }
212
213 public static com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
214 long folderId, long parentFolderId, java.lang.String name,
215 java.lang.String description, boolean mergeWithParentFolder,
216 com.liferay.portal.service.ServiceContext serviceContext)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException {
219 return getService()
220 .updateFolder(folderId, parentFolderId, name, description,
221 mergeWithParentFolder, serviceContext);
222 }
223
224 public static BookmarksFolderService getService() {
225 if (_service == null) {
226 _service = (BookmarksFolderService)PortalBeanLocatorUtil.locate(BookmarksFolderService.class.getName());
227
228 ReferenceRegistry.registerReference(BookmarksFolderServiceUtil.class,
229 "_service");
230 }
231
232 return _service;
233 }
234
235
238 public void setService(BookmarksFolderService service) {
239 }
240
241 private static BookmarksFolderService _service;
242 }