1   /**
2    * Copyright (c) 2000-2007 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   * <a href="BookmarksEntryLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.bookmarks.service.impl.BookmarksEntryLocalServiceImpl</code>.
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
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.bookmarks.service.BookmarksEntryServiceFactory
48   * @see com.liferay.portlet.bookmarks.service.BookmarksEntryServiceUtil
49   *
50   */
51  public interface BookmarksEntryLocalService {
52      public com.liferay.portlet.bookmarks.model.BookmarksEntry addBookmarksEntry(
53          com.liferay.portlet.bookmarks.model.BookmarksEntry 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.BookmarksEntry updateBookmarksEntry(
65          com.liferay.portlet.bookmarks.model.BookmarksEntry model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
69          long userId, long folderId, java.lang.String name,
70          java.lang.String url, java.lang.String comments,
71          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
72          boolean addGuestPermissions)
73          throws com.liferay.portal.SystemException, 
74              com.liferay.portal.PortalException;
75  
76      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
77          long userId, long folderId, java.lang.String name,
78          java.lang.String url, java.lang.String comments,
79          java.lang.String[] tagsEntries,
80          java.lang.String[] communityPermissions,
81          java.lang.String[] guestPermissions)
82          throws com.liferay.portal.SystemException, 
83              com.liferay.portal.PortalException;
84  
85      public com.liferay.portlet.bookmarks.model.BookmarksEntry addEntry(
86          long userId, long folderId, java.lang.String name,
87          java.lang.String url, java.lang.String comments,
88          java.lang.String[] tagsEntries,
89          java.lang.Boolean addCommunityPermissions,
90          java.lang.Boolean addGuestPermissions,
91          java.lang.String[] communityPermissions,
92          java.lang.String[] guestPermissions)
93          throws com.liferay.portal.SystemException, 
94              com.liferay.portal.PortalException;
95  
96      public void addEntryResources(long folderId, long entryId,
97          boolean addCommunityPermissions, boolean addGuestPermissions)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portal.PortalException;
100 
101     public void addEntryResources(
102         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
103         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
104         boolean addCommunityPermissions, boolean addGuestPermissions)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portal.PortalException;
107 
108     public void addEntryResources(long folderId, long entryId,
109         java.lang.String[] communityPermissions,
110         java.lang.String[] guestPermissions)
111         throws com.liferay.portal.SystemException, 
112             com.liferay.portal.PortalException;
113 
114     public void addEntryResources(
115         com.liferay.portlet.bookmarks.model.BookmarksFolder folder,
116         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public void deleteEntries(long folderId)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portal.PortalException;
125 
126     public void deleteEntry(long entryId)
127         throws com.liferay.portal.SystemException, 
128             com.liferay.portal.PortalException;
129 
130     public void deleteEntry(
131         com.liferay.portlet.bookmarks.model.BookmarksEntry entry)
132         throws com.liferay.portal.SystemException, 
133             com.liferay.portal.PortalException;
134 
135     public java.util.List getEntries(long folderId, int begin, int end)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List getEntries(long folderId, int begin, int end,
139         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140         throws com.liferay.portal.SystemException;
141 
142     public int getEntriesCount(long folderId)
143         throws com.liferay.portal.SystemException;
144 
145     public com.liferay.portlet.bookmarks.model.BookmarksEntry getEntry(
146         long entryId)
147         throws com.liferay.portal.SystemException, 
148             com.liferay.portal.PortalException;
149 
150     public int getFoldersEntriesCount(java.util.List folderIds)
151         throws com.liferay.portal.SystemException;
152 
153     public java.util.List getGroupEntries(long groupId, int begin, int end)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List getGroupEntries(long groupId, long userId, int begin,
157         int end) throws com.liferay.portal.SystemException;
158 
159     public int getGroupEntriesCount(long groupId)
160         throws com.liferay.portal.SystemException;
161 
162     public int getGroupEntriesCount(long groupId, long userId)
163         throws com.liferay.portal.SystemException;
164 
165     public java.util.List getNoAssetEntries()
166         throws com.liferay.portal.SystemException;
167 
168     public com.liferay.portlet.bookmarks.model.BookmarksEntry openEntry(
169         long entryId)
170         throws com.liferay.portal.SystemException, 
171             com.liferay.portal.PortalException;
172 
173     public com.liferay.portlet.bookmarks.model.BookmarksEntry updateEntry(
174         long userId, long entryId, long folderId, java.lang.String name,
175         java.lang.String url, java.lang.String comments,
176         java.lang.String[] tagsEntries)
177         throws com.liferay.portal.SystemException, 
178             com.liferay.portal.PortalException;
179 
180     public void updateTagsAsset(long userId,
181         com.liferay.portlet.bookmarks.model.BookmarksEntry entry,
182         java.lang.String[] tagsEntries)
183         throws com.liferay.portal.SystemException, 
184             com.liferay.portal.PortalException;
185 }