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.blogs.service;
24  
25  
26  /**
27   * <a href="BlogsEntryLocalService.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.blogs.service.impl.BlogsEntryLocalServiceImpl</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.blogs.service.BlogsEntryLocalServiceFactory
48   * @see com.liferay.portlet.blogs.service.BlogsEntryLocalServiceUtil
49   *
50   */
51  public interface BlogsEntryLocalService {
52      public com.liferay.portlet.blogs.model.BlogsEntry addBlogsEntry(
53          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
54          throws com.liferay.portal.SystemException;
55  
56      public void deleteBlogsEntry(long entryId)
57          throws com.liferay.portal.SystemException,
58              com.liferay.portal.PortalException;
59  
60      public void deleteBlogsEntry(
61          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portal.PortalException;
64  
65      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> dynamicQuery(
66          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> dynamicQuery(
70          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
71          int begin, int end) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.blogs.model.BlogsEntry updateBlogsEntry(
74          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
75          throws com.liferay.portal.SystemException;
76  
77      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
78          long plid, java.lang.String title, java.lang.String content,
79          int displayDateMonth, int displayDateDay, int displayDateYear,
80          int displayDateHour, int displayDateMinute,
81          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
82          boolean addGuestPermissions,
83          com.liferay.portal.theme.ThemeDisplay themeDisplay)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portal.PortalException;
86  
87      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
88          java.lang.String uuid, long userId, long plid, java.lang.String title,
89          java.lang.String content, int displayDateMonth, int displayDateDay,
90          int displayDateYear, int displayDateHour, int displayDateMinute,
91          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
92          boolean addGuestPermissions,
93          com.liferay.portal.theme.ThemeDisplay themeDisplay)
94          throws com.liferay.portal.SystemException,
95              com.liferay.portal.PortalException;
96  
97      public com.liferay.portlet.blogs.model.BlogsEntry addEntry(long userId,
98          long plid, java.lang.String title, java.lang.String content,
99          int displayDateMonth, int displayDateDay, int displayDateYear,
100         int displayDateHour, int displayDateMinute,
101         java.lang.String[] tagsEntries,
102         java.lang.String[] communityPermissions,
103         java.lang.String[] guestPermissions,
104         com.liferay.portal.theme.ThemeDisplay themeDisplay)
105         throws com.liferay.portal.SystemException,
106             com.liferay.portal.PortalException;
107 
108     public com.liferay.portlet.blogs.model.BlogsEntry addEntry(
109         java.lang.String uuid, long userId, long plid, java.lang.String title,
110         java.lang.String content, int displayDateMonth, int displayDateDay,
111         int displayDateYear, int displayDateHour, int displayDateMinute,
112         java.lang.String[] tagsEntries,
113         java.lang.Boolean addCommunityPermissions,
114         java.lang.Boolean addGuestPermissions,
115         java.lang.String[] communityPermissions,
116         java.lang.String[] guestPermissions,
117         com.liferay.portal.theme.ThemeDisplay themeDisplay)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portal.PortalException;
120 
121     public void addEntryResources(long entryId,
122         boolean addCommunityPermissions, boolean addGuestPermissions)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portal.PortalException;
125 
126     public void addEntryResources(
127         com.liferay.portlet.blogs.model.BlogsEntry entry,
128         boolean addCommunityPermissions, boolean addGuestPermissions)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portal.PortalException;
131 
132     public void addEntryResources(long entryId,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.SystemException,
136             com.liferay.portal.PortalException;
137 
138     public void addEntryResources(
139         com.liferay.portlet.blogs.model.BlogsEntry entry,
140         java.lang.String[] communityPermissions,
141         java.lang.String[] guestPermissions)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portal.PortalException;
144 
145     public void deleteEntries(long groupId)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portal.PortalException;
148 
149     public void deleteEntry(long entryId)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portal.PortalException;
152 
153     public void deleteEntry(com.liferay.portlet.blogs.model.BlogsEntry entry)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portal.PortalException;
156 
157     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
158         long companyId, int begin, int end)
159         throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getCompanyEntries(
162         long companyId, int begin, int end,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException;
165 
166     public int getCompanyEntriesCount(long companyId)
167         throws com.liferay.portal.SystemException;
168 
169     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long entryId)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portal.PortalException;
172 
173     public com.liferay.portlet.blogs.model.BlogsEntry getEntry(long groupId,
174         java.lang.String urlTitle)
175         throws com.liferay.portal.SystemException,
176             com.liferay.portal.PortalException;
177 
178     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
179         long groupId, int begin, int end)
180         throws com.liferay.portal.SystemException;
181 
182     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupEntries(
183         long groupId, int begin, int end,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException;
186 
187     public int getGroupEntriesCount(long groupId)
188         throws com.liferay.portal.SystemException;
189 
190     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getGroupUserEntries(
191         long groupId, long userId, int begin, int end)
192         throws com.liferay.portal.SystemException;
193 
194     public int getGroupUserEntriesCount(long groupId, long userId)
195         throws com.liferay.portal.SystemException;
196 
197     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getNoAssetEntries()
198         throws com.liferay.portal.SystemException;
199 
200     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> getOrganizationEntries(
201         long organizationId, int begin, int end)
202         throws com.liferay.portal.SystemException;
203 
204     public int getOrganizationEntriesCount(long organizationId)
205         throws com.liferay.portal.SystemException;
206 
207     public java.lang.String getUrlTitle(long entryId, java.lang.String title);
208 
209     public void reIndex(java.lang.String[] ids)
210         throws com.liferay.portal.SystemException;
211 
212     public com.liferay.portal.kernel.search.Hits search(long companyId,
213         long groupId, long userId, java.lang.String keywords)
214         throws com.liferay.portal.SystemException;
215 
216     public com.liferay.portlet.blogs.model.BlogsEntry updateEntry(long userId,
217         long entryId, java.lang.String title, java.lang.String content,
218         int displayDateMonth, int displayDateDay, int displayDateYear,
219         int displayDateHour, int displayDateMinute,
220         java.lang.String[] tagsEntries,
221         com.liferay.portal.theme.ThemeDisplay themeDisplay)
222         throws com.liferay.portal.SystemException,
223             com.liferay.portal.PortalException;
224 
225     public void updateTagsAsset(long userId,
226         com.liferay.portlet.blogs.model.BlogsEntry entry,
227         java.lang.String[] tagsEntries)
228         throws com.liferay.portal.SystemException,
229             com.liferay.portal.PortalException;
230 }