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