1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.bookmarks.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="BookmarksFolderLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.bookmarks.service.impl.BookmarksFolderLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       BookmarksFolderLocalServiceUtil
45   * @generated
46   */
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.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.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deleteBookmarksFolder(
62          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.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.SystemException;
72  
73      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74      public com.liferay.portlet.bookmarks.model.BookmarksFolder getBookmarksFolder(
75          long folderId)
76          throws com.liferay.portal.PortalException,
77              com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getBookmarksFolders(
81          int start, int end) throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public int getBookmarksFoldersCount()
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
88          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder)
89          throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
92          com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder,
93          boolean merge) throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
96          long userId, long plid, long parentFolderId, java.lang.String name,
97          java.lang.String description, boolean addCommunityPermissions,
98          boolean addGuestPermissions)
99          throws com.liferay.portal.PortalException,
100             com.liferay.portal.SystemException;
101 
102     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
103         long userId, long plid, long parentFolderId, java.lang.String name,
104         java.lang.String description, java.lang.String[] communityPermissions,
105         java.lang.String[] guestPermissions)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
110         java.lang.String uuid, long userId, long plid, long parentFolderId,
111         java.lang.String name, java.lang.String description,
112         boolean addCommunityPermissions, boolean addGuestPermissions)
113         throws com.liferay.portal.PortalException,
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
117         java.lang.String uuid, long userId, long plid, long parentFolderId,
118         java.lang.String name, java.lang.String description,
119         java.lang.Boolean addCommunityPermissions,
120         java.lang.Boolean addGuestPermissions,
121         java.lang.String[] communityPermissions,
122         java.lang.String[] guestPermissions)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException;
125 
126     public void addFolderResources(
127         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
128         boolean addCommunityPermissions, boolean addGuestPermissions)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void addFolderResources(
133         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void addFolderResources(long folderId,
140         boolean addCommunityPermissions, boolean addGuestPermissions)
141         throws com.liferay.portal.PortalException,
142             com.liferay.portal.SystemException;
143 
144     public void addFolderResources(long folderId,
145         java.lang.String[] communityPermissions,
146         java.lang.String[] guestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException;
149 
150     public void deleteFolder(
151         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void deleteFolder(long folderId)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public void deleteFolders(long groupId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
165         long folderId)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170     public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(
171         long groupId, long parentFolderId, int start, int end)
172         throws com.liferay.portal.SystemException;
173 
174     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175     public int getFoldersCount(long groupId, long parentFolderId)
176         throws com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
180         long folderId) throws com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public void reIndex(java.lang.String[] ids)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public com.liferay.portal.kernel.search.Hits search(long companyId,
188         long groupId, long[] folderIds, java.lang.String keywords, int start,
189         int end) throws com.liferay.portal.SystemException;
190 
191     public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
192         long folderId, long parentFolderId, java.lang.String name,
193         java.lang.String description, boolean mergeWithParentFolder)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 }