001
014
015 package com.liferay.portlet.bookmarks.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface BookmarksFolderService extends BaseService {
045
050 public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
051 long parentFolderId, java.lang.String name,
052 java.lang.String description,
053 com.liferay.portal.service.ServiceContext serviceContext)
054 throws com.liferay.portal.kernel.exception.PortalException;
055
056 public void deleteFolder(long folderId)
057 throws com.liferay.portal.kernel.exception.PortalException;
058
059 public void deleteFolder(long folderId, boolean includeTrashedEntries)
060 throws com.liferay.portal.kernel.exception.PortalException;
061
062
067 public java.lang.String getBeanIdentifier();
068
069 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
070 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
071 long folderId)
072 throws com.liferay.portal.kernel.exception.PortalException;
073
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public java.util.List<java.lang.Long> getFolderIds(long groupId,
076 long folderId)
077 throws com.liferay.portal.kernel.exception.PortalException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
081 long groupId);
082
083 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
084 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
085 long groupId, long parentFolderId);
086
087 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
088 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
089 long groupId, long parentFolderId, int start, int end);
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
093 long groupId, long parentFolderId, int status, int start, int end);
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
097 long folderId);
098
099 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
101 long folderId, int status);
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<java.lang.Object> getFoldersAndEntries(long groupId,
105 long folderId, int status, int start, int end);
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public int getFoldersAndEntriesCount(long groupId, long folderId);
109
110 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
111 public int getFoldersAndEntriesCount(long groupId, long folderId, int status);
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public int getFoldersCount(long groupId, long parentFolderId);
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public int getFoldersCount(long groupId, long parentFolderId, int status);
118
119
123 @java.lang.Deprecated
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
126 long groupId, long folderId);
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
130 long groupId, long folderId, boolean recurse);
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
134 long folderId, boolean recurse);
135
136 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolder(
137 long folderId, long parentFolderId)
138 throws com.liferay.portal.kernel.exception.PortalException;
139
140 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderFromTrash(
141 long folderId, long parentFolderId)
142 throws com.liferay.portal.kernel.exception.PortalException;
143
144 public com.liferay.portlet.bookmarks.model.BookmarksFolder moveFolderToTrash(
145 long folderId)
146 throws com.liferay.portal.kernel.exception.PortalException;
147
148 public void restoreFolderFromTrash(long folderId)
149 throws com.liferay.portal.kernel.exception.PortalException;
150
151
156 public void setBeanIdentifier(java.lang.String beanIdentifier);
157
158 public void subscribeFolder(long groupId, long folderId)
159 throws com.liferay.portal.kernel.exception.PortalException;
160
161 public void unsubscribeFolder(long groupId, long folderId)
162 throws com.liferay.portal.kernel.exception.PortalException;
163
164 public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
165 long folderId, long parentFolderId, java.lang.String name,
166 java.lang.String description, boolean mergeWithParentFolder,
167 com.liferay.portal.service.ServiceContext serviceContext)
168 throws com.liferay.portal.kernel.exception.PortalException;
169 }