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