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