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 BookmarksEntryServiceUtil {
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.BookmarksEntry addEntry(
059 long groupId, long folderId, java.lang.String name,
060 java.lang.String url, 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 .addEntry(groupId, folderId, name, url, description,
066 serviceContext);
067 }
068
069 public static void deleteEntry(long entryId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 getService().deleteEntry(entryId);
073 }
074
075 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
076 long groupId, long folderId, int start, int end)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return getService().getEntries(groupId, folderId, start, end);
079 }
080
081 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
082 long groupId, long folderId, int start, int end,
083 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getService()
086 .getEntries(groupId, folderId, start, end, orderByComparator);
087 }
088
089 public static int getEntriesCount(long groupId, long folderId)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return getService().getEntriesCount(groupId, folderId);
092 }
093
094 public static com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
095 long entryId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().getEntry(entryId);
099 }
100
101 public static int getFoldersEntriesCount(long groupId,
102 java.util.List<java.lang.Long> folderIds)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getService().getFoldersEntriesCount(groupId, folderIds);
105 }
106
107 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
108 long groupId, int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getGroupEntries(groupId, start, end);
111 }
112
113 public static java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
114 long groupId, long userId, int start, int end)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService().getGroupEntries(groupId, userId, start, end);
117 }
118
119 public static int getGroupEntriesCount(long groupId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().getGroupEntriesCount(groupId);
122 }
123
124 public static int getGroupEntriesCount(long groupId, long userId)
125 throws com.liferay.portal.kernel.exception.SystemException {
126 return getService().getGroupEntriesCount(groupId, userId);
127 }
128
129 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
130 long entryId, long parentFolderId)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException {
133 return getService().moveEntry(entryId, parentFolderId);
134 }
135
136 public static com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
137 long entryId, long parentFolderId)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getService().moveEntryFromTrash(entryId, parentFolderId);
141 }
142
143 public static void moveEntryToTrash(long entryId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException {
146 getService().moveEntryToTrash(entryId);
147 }
148
149 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
150 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException {
153 return getService().openEntry(entry);
154 }
155
156 public static com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
157 long entryId)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException {
160 return getService().openEntry(entryId);
161 }
162
163 public static void restoreEntryFromTrash(long entryId)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException {
166 getService().restoreEntryFromTrash(entryId);
167 }
168
169 public static void subscribeEntry(long entryId)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 getService().subscribeEntry(entryId);
173 }
174
175 public static void unsubscribeEntry(long entryId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 getService().unsubscribeEntry(entryId);
179 }
180
181 public static com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
182 long entryId, long groupId, long folderId, java.lang.String name,
183 java.lang.String url, java.lang.String description,
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 .updateEntry(entryId, groupId, folderId, name, url,
189 description, serviceContext);
190 }
191
192 public static BookmarksEntryService getService() {
193 if (_service == null) {
194 _service = (BookmarksEntryService)PortalBeanLocatorUtil.locate(BookmarksEntryService.class.getName());
195
196 ReferenceRegistry.registerReference(BookmarksEntryServiceUtil.class,
197 "_service");
198 }
199
200 return _service;
201 }
202
203
206 public void setService(BookmarksEntryService service) {
207 }
208
209 private static BookmarksEntryService _service;
210 }