001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
037 @AccessControlled
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface BookmarksEntryService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
063 long groupId, long folderId, java.lang.String name,
064 java.lang.String url, 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
069 public void deleteEntry(long entryId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
074 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
075 long groupId, long folderId, int start, int end)
076 throws com.liferay.portal.kernel.exception.SystemException;
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
080 long groupId, long folderId, int start, int end,
081 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
085 public int getEntriesCount(long groupId, long folderId)
086 throws com.liferay.portal.kernel.exception.SystemException;
087
088 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
089 public int getEntriesCount(long groupId, long folderId, int status)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
094 long entryId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public int getFoldersEntriesCount(long groupId,
100 java.util.List<java.lang.Long> folderIds)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
105 long groupId, int start, int end)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
111 long groupId, long userId, int start, int end)
112 throws com.liferay.portal.kernel.exception.PortalException,
113 com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
117 long groupId, long userId, long rootFolderId, int start, int end)
118 throws com.liferay.portal.kernel.exception.PortalException,
119 com.liferay.portal.kernel.exception.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public int getGroupEntriesCount(long groupId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public int getGroupEntriesCount(long groupId, long userId)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getGroupEntriesCount(long groupId, long userId, long rootFolderId)
133 throws com.liferay.portal.kernel.exception.PortalException,
134 com.liferay.portal.kernel.exception.SystemException;
135
136 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
137 long entryId, long parentFolderId)
138 throws com.liferay.portal.kernel.exception.PortalException,
139 com.liferay.portal.kernel.exception.SystemException;
140
141 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
142 long entryId, long parentFolderId)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryToTrash(
147 long entryId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
152 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public 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
161 public void restoreEntryFromTrash(long entryId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portal.kernel.search.Hits search(long groupId,
167 long creatorUserId, int status, int start, int end)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 public void subscribeEntry(long entryId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 public void unsubscribeEntry(long entryId)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException;
178
179 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
180 long entryId, long groupId, long folderId, java.lang.String name,
181 java.lang.String url, java.lang.String description,
182 com.liferay.portal.service.ServiceContext serviceContext)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException;
185 }