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
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface BookmarksEntryService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
065 long groupId, long folderId, java.lang.String name,
066 java.lang.String url, java.lang.String description,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteEntry(long entryId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getEntries(
077 long groupId, long folderId, int start, int end)
078 throws com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public 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
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public int getEntriesCount(long groupId, long folderId)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
092 long entryId)
093 throws com.liferay.portal.kernel.exception.PortalException,
094 com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getFoldersEntriesCount(long groupId,
098 java.util.List<java.lang.Long> folderIds)
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
102 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
103 long groupId, int start, int end)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> getGroupEntries(
108 long groupId, long userId, int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public int getGroupEntriesCount(long groupId)
113 throws com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int getGroupEntriesCount(long groupId, long userId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntry(
120 long entryId, long parentFolderId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException;
123
124 public com.liferay.portlet.bookmarks.model.BookmarksEntry moveEntryFromTrash(
125 long entryId, long parentFolderId)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void moveEntryToTrash(long entryId)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
134 com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
139 long entryId)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void restoreEntryFromTrash(long entryId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public void subscribeEntry(long entryId)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException;
150
151 public void unsubscribeEntry(long entryId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
156 long entryId, long groupId, long folderId, java.lang.String name,
157 java.lang.String url, java.lang.String description,
158 com.liferay.portal.service.ServiceContext serviceContext)
159 throws com.liferay.portal.kernel.exception.PortalException,
160 com.liferay.portal.kernel.exception.SystemException;
161 }