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 BookmarksFolderLocalService {
50 public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
51 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.bookmarks.model.BookmarksFolder createBookmarksFolder(
55 long folderId);
56
57 public void deleteBookmarksFolder(long folderId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteBookmarksFolder(
62 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
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.BookmarksFolder getBookmarksFolder(
85 long folderId)
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.BookmarksFolder> getBookmarksFolders(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getBookmarksFoldersCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
99 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
103 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
104 boolean merge)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
108 java.lang.String uuid, long userId, long parentFolderId,
109 java.lang.String name, java.lang.String description,
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 addFolderResources(
115 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 public void addFolderResources(
121 com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
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 addFolderResources(long folderId,
128 boolean addCommunityPermissions, boolean addGuestPermissions)
129 throws com.liferay.portal.kernel.exception.PortalException,
130 com.liferay.portal.kernel.exception.SystemException;
131
132 public void addFolderResources(long folderId,
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 deleteFolder(
139 com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void deleteFolder(long folderId)
144 throws com.liferay.portal.kernel.exception.PortalException,
145 com.liferay.portal.kernel.exception.SystemException;
146
147 public void deleteFolders(long groupId)
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.BookmarksFolder> getCompanyFolders(
153 long companyId, int start, int end)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public int getCompanyFoldersCount(long companyId)
158 throws com.liferay.portal.kernel.exception.SystemException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
162 long folderId)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
168 long groupId)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
173 long groupId, long parentFolderId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
178 long groupId, long parentFolderId, int start, int end)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public int getFoldersCount(long groupId, long parentFolderId)
183 throws com.liferay.portal.kernel.exception.SystemException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
187 long folderId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
191 long folderId, long parentFolderId, java.lang.String name,
192 java.lang.String description, boolean mergeWithParentFolder,
193 com.liferay.portal.service.ServiceContext serviceContext)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196 }