001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface BookmarksFolderLocalService {
043 public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
044 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
048 long folderId);
049
050 public void deleteBookmarksFolder(long folderId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteBookmarksFolder(
055 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
081 long folderId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolderByUuidAndGroupId(
087 java.lang.String uuid, long groupId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
093 int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public int getBookmarksFoldersCount()
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
101 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
105 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
106 boolean merge)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
110 long userId, long parentFolderId, java.lang.String name,
111 java.lang.String description,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public void addFolderResources(
117 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.kernel.exception.PortalException,
120 com.liferay.portal.kernel.exception.SystemException;
121
122 public void addFolderResources(
123 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
124 java.lang.String[] communityPermissions,
125 java.lang.String[] guestPermissions)
126 throws com.liferay.portal.kernel.exception.PortalException,
127 com.liferay.portal.kernel.exception.SystemException;
128
129 public void addFolderResources(long folderId,
130 boolean addCommunityPermissions, boolean addGuestPermissions)
131 throws com.liferay.portal.kernel.exception.PortalException,
132 com.liferay.portal.kernel.exception.SystemException;
133
134 public void addFolderResources(long folderId,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException;
139
140 public void deleteFolder(
141 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
142 throws com.liferay.portal.kernel.exception.PortalException,
143 com.liferay.portal.kernel.exception.SystemException;
144
145 public void deleteFolder(long folderId)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException;
148
149 public void deleteFolders(long groupId)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException;
152
153 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
154 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getCompanyFolders(
155 long companyId, int start, int end)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public int getCompanyFoldersCount(long companyId)
160 throws com.liferay.portal.kernel.exception.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
164 long folderId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
170 long groupId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
175 long groupId, long parentFolderId)
176 throws com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
180 long groupId, long parentFolderId, int start, int end)
181 throws com.liferay.portal.kernel.exception.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getFoldersCount(long groupId, long parentFolderId)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
189 long groupId, long folderId)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
193 long folderId, long parentFolderId, java.lang.String name,
194 java.lang.String description, boolean mergeWithParentFolder,
195 com.liferay.portal.service.ServiceContext serviceContext)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198 }