1
14
15 package com.liferay.portlet.bookmarks.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface BookmarksEntryLocalService {
50 public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
51 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.bookmarks.model.BookmarksEntry createBookmarksEntry(
55 long entryId);
56
57 public void deleteBookmarksEntry(long entryId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteBookmarksEntry(
62 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.bookmarks.model.BookmarksEntry getBookmarksEntry(
85 long entryId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getBookmarksEntries(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getBookmarksEntriesCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
99 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateBookmarksEntry(
103 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
108 java.lang.String uuid, long userId, long groupId, long folderId,
109 java.lang.String name, java.lang.String url, java.lang.String comments,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 public void addEntryResources(
115 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void addEntryResources(
121 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
122 java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException;
126
127 public void addEntryResources(long entryId,
128 boolean addCommunityPermissions, boolean addGuestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addEntryResources(long entryId,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public void deleteEntries(long groupId, long folderId)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteEntry(
143 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public void deleteEntry(long entryId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
153 long groupId, long folderId, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
158 long groupId, long folderId, int start, int end,
159 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public int getEntriesCount(long groupId, long folderId)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
168 long entryId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int getFoldersEntriesCount(long groupId,
174 java.util.List<Long> folderIds)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
179 long groupId, int start, int end)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
184 long groupId, long userId, int start, int end)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int getGroupEntriesCount(long groupId)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getGroupEntriesCount(long groupId, long userId)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getNoAssetEntries()
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
200 long entryId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203
204 public void updateAsset(long userId,
205 com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
206 long[] assetCategoryIds, java.lang.String[] assetTagNames)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException;
209
210 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
211 long userId, long entryId, long groupId, long folderId,
212 java.lang.String name, java.lang.String url, java.lang.String comments,
213 com.liferay.portal.service.ServiceContext serviceContext)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException;
216 }