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 BookmarksFolderService 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.BookmarksFolder addFolder(
063 long parentFolderId, java.lang.String name,
064 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 deleteFolder(long folderId)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073 public void deleteFolder(long folderId, boolean includeTrashedEntries)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
078 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
079 long folderId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<java.lang.Long> getFolderIds(long groupId,
085 long folderId)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException;
088
089 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
090 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
091 long groupId)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
095 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
096 long groupId, long parentFolderId)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
101 long groupId, long parentFolderId, int start, int end)
102 throws com.liferay.portal.kernel.exception.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
106 long groupId, long parentFolderId, int status, int start, int end)
107 throws com.liferay.portal.kernel.exception.SystemException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
111 long folderId)
112 throws com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
116 long folderId, int status)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
121 long folderId, int status, int start, int end)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public int getFoldersAndEntriesCount(long groupId, long folderId)
126 throws com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public int getFoldersAndEntriesCount(long groupId, long folderId, int status)
130 throws com.liferay.portal.kernel.exception.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public int getFoldersCount(long groupId, long parentFolderId)
134 throws com.liferay.portal.kernel.exception.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public int getFoldersCount(long groupId, long parentFolderId, int status)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
142 long groupId, long folderId)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
147 long folderId, boolean recurse)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(
151 long folderId, long parentFolderId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
156 long folderId, long parentFolderId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
161 long folderId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 public void restoreFolderFromTrash(long folderId)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public void subscribeFolder(long groupId, long folderId)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException;
172
173 public void unsubscribeFolder(long groupId, long folderId)
174 throws com.liferay.portal.kernel.exception.PortalException,
175 com.liferay.portal.kernel.exception.SystemException;
176
177 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
178 long folderId, long parentFolderId, java.lang.String name,
179 java.lang.String description, boolean mergeWithParentFolder,
180 com.liferay.portal.service.ServiceContext serviceContext)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183 }