1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.bookmarks.service;
24  
25  
26  /**
27   * <a href="BookmarksFolderLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.bookmarks.service.impl.BookmarksFolderLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * 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.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceFactory
48   * @see com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil
49   *
50   */
51  public interface BookmarksFolderLocalService {
52      public com.liferay.portlet.bookmarks.model.BookmarksFolder addBookmarksFolder(
53          com.liferay.portlet.bookmarks.model.BookmarksFolder model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.bookmarks.model.BookmarksFolder updateBookmarksFolder(
65          com.liferay.portlet.bookmarks.model.BookmarksFolder model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence getBookmarksEntryPersistence();
69  
70      public void setBookmarksEntryPersistence(
71          com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence bookmarksEntryPersistence);
72  
73      public com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder getBookmarksEntryFinder();
74  
75      public void setBookmarksEntryFinder(
76          com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder bookmarksEntryFinder);
77  
78      public com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence getBookmarksFolderPersistence();
79  
80      public void setBookmarksFolderPersistence(
81          com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence bookmarksFolderPersistence);
82  
83      public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
84  
85      public void setResourcePersistence(
86          com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
87  
88      public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
89  
90      public void setResourceFinder(
91          com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
92  
93      public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
94  
95      public void setUserPersistence(
96          com.liferay.portal.service.persistence.UserPersistence userPersistence);
97  
98      public com.liferay.portal.service.persistence.UserFinder getUserFinder();
99  
100     public void setUserFinder(
101         com.liferay.portal.service.persistence.UserFinder userFinder);
102 
103     public com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence();
104 
105     public void setTagsEntryPersistence(
106         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence);
107 
108     public com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder();
109 
110     public void setTagsEntryFinder(
111         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder);
112 
113     public void afterPropertiesSet();
114 
115     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
116         long userId, long plid, long parentFolderId, java.lang.String name,
117         java.lang.String description, boolean addCommunityPermissions,
118         boolean addGuestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
123         java.lang.String uuid, long userId, long plid, long parentFolderId,
124         java.lang.String name, java.lang.String description,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.SystemException, 
127             com.liferay.portal.PortalException;
128 
129     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
130         long userId, long plid, long parentFolderId, java.lang.String name,
131         java.lang.String description, java.lang.String[] communityPermissions,
132         java.lang.String[] guestPermissions)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portal.PortalException;
135 
136     public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(
137         java.lang.String uuid, long userId, long plid, long parentFolderId,
138         java.lang.String name, java.lang.String description,
139         java.lang.Boolean addCommunityPermissions,
140         java.lang.Boolean addGuestPermissions,
141         java.lang.String[] communityPermissions,
142         java.lang.String[] guestPermissions)
143         throws com.liferay.portal.SystemException, 
144             com.liferay.portal.PortalException;
145 
146     public void addFolderResources(long folderId,
147         boolean addCommunityPermissions, boolean addGuestPermissions)
148         throws com.liferay.portal.SystemException, 
149             com.liferay.portal.PortalException;
150 
151     public void addFolderResources(
152         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
153         boolean addCommunityPermissions, boolean addGuestPermissions)
154         throws com.liferay.portal.SystemException, 
155             com.liferay.portal.PortalException;
156 
157     public void addFolderResources(long folderId,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.SystemException, 
161             com.liferay.portal.PortalException;
162 
163     public void addFolderResources(
164         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
165         java.lang.String[] communityPermissions,
166         java.lang.String[] guestPermissions)
167         throws com.liferay.portal.SystemException, 
168             com.liferay.portal.PortalException;
169 
170     public void deleteFolder(long folderId)
171         throws com.liferay.portal.SystemException, 
172             com.liferay.portal.PortalException;
173 
174     public void deleteFolder(
175         com.liferay.portlet.bookmarks.model.BookmarksFolder folder)
176         throws com.liferay.portal.SystemException, 
177             com.liferay.portal.PortalException;
178 
179     public void deleteFolders(long groupId)
180         throws com.liferay.portal.SystemException, 
181             com.liferay.portal.PortalException;
182 
183     public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(
184         long folderId)
185         throws com.liferay.portal.SystemException, 
186             com.liferay.portal.PortalException;
187 
188     public java.util.List getFolders(long groupId, long parentFolderId,
189         int begin, int end) throws com.liferay.portal.SystemException;
190 
191     public int getFoldersCount(long groupId, long parentFolderId)
192         throws com.liferay.portal.SystemException;
193 
194     public void getSubfolderIds(java.util.List folderIds, long groupId,
195         long folderId) throws com.liferay.portal.SystemException;
196 
197     public void reIndex(java.lang.String[] ids)
198         throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portal.kernel.search.Hits search(long companyId,
201         long groupId, long[] folderIds, java.lang.String keywords)
202         throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.bookmarks.model.BookmarksFolder updateFolder(
205         long folderId, long parentFolderId, java.lang.String name,
206         java.lang.String description, boolean mergeWithParentFolder)
207         throws com.liferay.portal.SystemException, 
208             com.liferay.portal.PortalException;
209 }