001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link JournalContentSearchLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       JournalContentSearchLocalService
030     * @generated
031     */
032    public class JournalContentSearchLocalServiceUtil {
033            public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
034                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addJournalContentSearch(journalContentSearch);
037            }
038    
039            public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
040                    long contentSearchId) {
041                    return getService().createJournalContentSearch(contentSearchId);
042            }
043    
044            public static void deleteJournalContentSearch(long contentSearchId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteJournalContentSearch(contentSearchId);
048            }
049    
050            public static void deleteJournalContentSearch(
051                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteJournalContentSearch(journalContentSearch);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
087                    long contentSearchId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getJournalContentSearch(contentSearchId);
091            }
092    
093            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getJournalContentSearchs(start, end);
097            }
098    
099            public static int getJournalContentSearchsCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getJournalContentSearchsCount();
102            }
103    
104            public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
105                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().updateJournalContentSearch(journalContentSearch);
108            }
109    
110            public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
111                    com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService()
115                                       .updateJournalContentSearch(journalContentSearch, merge);
116            }
117    
118            public static void checkContentSearches(long companyId)
119                    throws com.liferay.portal.kernel.exception.PortalException,
120                            com.liferay.portal.kernel.exception.SystemException {
121                    getService().checkContentSearches(companyId);
122            }
123    
124            public static void deleteArticleContentSearch(long groupId,
125                    boolean privateLayout, long layoutId, java.lang.String portletId,
126                    java.lang.String articleId)
127                    throws com.liferay.portal.kernel.exception.PortalException,
128                            com.liferay.portal.kernel.exception.SystemException {
129                    getService()
130                            .deleteArticleContentSearch(groupId, privateLayout, layoutId,
131                            portletId, articleId);
132            }
133    
134            public static void deleteArticleContentSearches(long groupId,
135                    java.lang.String articleId)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    getService().deleteArticleContentSearches(groupId, articleId);
138            }
139    
140            public static void deleteLayoutContentSearches(long groupId,
141                    boolean privateLayout, long layoutId)
142                    throws com.liferay.portal.kernel.exception.SystemException {
143                    getService()
144                            .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
145            }
146    
147            public static void deleteOwnerContentSearches(long groupId,
148                    boolean privateLayout)
149                    throws com.liferay.portal.kernel.exception.SystemException {
150                    getService().deleteOwnerContentSearches(groupId, privateLayout);
151            }
152    
153            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return getService().getArticleContentSearches();
156            }
157    
158            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
159                    long groupId, java.lang.String articleId)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return getService().getArticleContentSearches(groupId, articleId);
162            }
163    
164            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
165                    java.lang.String articleId)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return getService().getArticleContentSearches(articleId);
168            }
169    
170            public static java.util.List<java.lang.Long> getLayoutIds(long groupId,
171                    boolean privateLayout, java.lang.String articleId)
172                    throws com.liferay.portal.kernel.exception.SystemException {
173                    return getService().getLayoutIds(groupId, privateLayout, articleId);
174            }
175    
176            public static int getLayoutIdsCount(long groupId, boolean privateLayout,
177                    java.lang.String articleId)
178                    throws com.liferay.portal.kernel.exception.SystemException {
179                    return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
180            }
181    
182            public static int getLayoutIdsCount(java.lang.String articleId)
183                    throws com.liferay.portal.kernel.exception.SystemException {
184                    return getService().getLayoutIdsCount(articleId);
185            }
186    
187            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
188                    long groupId, boolean privateLayout, long layoutId,
189                    java.lang.String portletId, java.lang.String articleId)
190                    throws com.liferay.portal.kernel.exception.PortalException,
191                            com.liferay.portal.kernel.exception.SystemException {
192                    return getService()
193                                       .updateContentSearch(groupId, privateLayout, layoutId,
194                            portletId, articleId);
195            }
196    
197            public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
198                    long groupId, boolean privateLayout, long layoutId,
199                    java.lang.String portletId, java.lang.String articleId, boolean purge)
200                    throws com.liferay.portal.kernel.exception.PortalException,
201                            com.liferay.portal.kernel.exception.SystemException {
202                    return getService()
203                                       .updateContentSearch(groupId, privateLayout, layoutId,
204                            portletId, articleId, purge);
205            }
206    
207            public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
208                    long groupId, boolean privateLayout, long layoutId,
209                    java.lang.String portletId, java.lang.String[] articleIds)
210                    throws com.liferay.portal.kernel.exception.PortalException,
211                            com.liferay.portal.kernel.exception.SystemException {
212                    return getService()
213                                       .updateContentSearch(groupId, privateLayout, layoutId,
214                            portletId, articleIds);
215            }
216    
217            public static JournalContentSearchLocalService getService() {
218                    if (_service == null) {
219                            _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
220                    }
221    
222                    return _service;
223            }
224    
225            public void setService(JournalContentSearchLocalService service) {
226                    _service = service;
227            }
228    
229            private static JournalContentSearchLocalService _service;
230    }