1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class JournalContentSearchLocalServiceUtil {
42 public static com.liferay.portlet.journal.model.JournalContentSearch addJournalContentSearch(
43 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
44 throws com.liferay.portal.SystemException {
45 return getService().addJournalContentSearch(journalContentSearch);
46 }
47
48 public static com.liferay.portlet.journal.model.JournalContentSearch createJournalContentSearch(
49 long contentSearchId) {
50 return getService().createJournalContentSearch(contentSearchId);
51 }
52
53 public static void deleteJournalContentSearch(long contentSearchId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 getService().deleteJournalContentSearch(contentSearchId);
57 }
58
59 public static void deleteJournalContentSearch(
60 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
61 throws com.liferay.portal.SystemException {
62 getService().deleteJournalContentSearch(journalContentSearch);
63 }
64
65 @SuppressWarnings("rawtypes")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("rawtypes")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("rawtypes")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static int dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portlet.journal.model.JournalContentSearch getJournalContentSearch(
96 long contentSearchId)
97 throws com.liferay.portal.PortalException,
98 com.liferay.portal.SystemException {
99 return getService().getJournalContentSearch(contentSearchId);
100 }
101
102 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getJournalContentSearchs(
103 int start, int end) throws com.liferay.portal.SystemException {
104 return getService().getJournalContentSearchs(start, end);
105 }
106
107 public static int getJournalContentSearchsCount()
108 throws com.liferay.portal.SystemException {
109 return getService().getJournalContentSearchsCount();
110 }
111
112 public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
113 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
114 throws com.liferay.portal.SystemException {
115 return getService().updateJournalContentSearch(journalContentSearch);
116 }
117
118 public static com.liferay.portlet.journal.model.JournalContentSearch updateJournalContentSearch(
119 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
120 boolean merge) throws com.liferay.portal.SystemException {
121 return getService()
122 .updateJournalContentSearch(journalContentSearch, merge);
123 }
124
125 public static void checkContentSearches(long companyId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 getService().checkContentSearches(companyId);
129 }
130
131 public static void deleteArticleContentSearch(long groupId,
132 boolean privateLayout, long layoutId, java.lang.String portletId,
133 java.lang.String articleId)
134 throws com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 getService()
137 .deleteArticleContentSearch(groupId, privateLayout, layoutId,
138 portletId, articleId);
139 }
140
141 public static void deleteArticleContentSearches(long groupId,
142 java.lang.String articleId) throws com.liferay.portal.SystemException {
143 getService().deleteArticleContentSearches(groupId, articleId);
144 }
145
146 public static void deleteLayoutContentSearches(long groupId,
147 boolean privateLayout, long layoutId)
148 throws com.liferay.portal.SystemException {
149 getService()
150 .deleteLayoutContentSearches(groupId, privateLayout, layoutId);
151 }
152
153 public static void deleteOwnerContentSearches(long groupId,
154 boolean privateLayout) throws com.liferay.portal.SystemException {
155 getService().deleteOwnerContentSearches(groupId, privateLayout);
156 }
157
158 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches()
159 throws com.liferay.portal.SystemException {
160 return getService().getArticleContentSearches();
161 }
162
163 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
164 long groupId, java.lang.String articleId)
165 throws com.liferay.portal.SystemException {
166 return getService().getArticleContentSearches(groupId, articleId);
167 }
168
169 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> getArticleContentSearches(
170 java.lang.String articleId) throws com.liferay.portal.SystemException {
171 return getService().getArticleContentSearches(articleId);
172 }
173
174 public static java.util.List<java.lang.Long> getLayoutIds(long groupId,
175 boolean privateLayout, java.lang.String articleId)
176 throws com.liferay.portal.SystemException {
177 return getService().getLayoutIds(groupId, privateLayout, articleId);
178 }
179
180 public static int getLayoutIdsCount(long groupId, boolean privateLayout,
181 java.lang.String articleId) throws com.liferay.portal.SystemException {
182 return getService().getLayoutIdsCount(groupId, privateLayout, articleId);
183 }
184
185 public static int getLayoutIdsCount(java.lang.String articleId)
186 throws com.liferay.portal.SystemException {
187 return getService().getLayoutIdsCount(articleId);
188 }
189
190 public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
191 long groupId, boolean privateLayout, long layoutId,
192 java.lang.String portletId, java.lang.String articleId)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 return getService()
196 .updateContentSearch(groupId, privateLayout, layoutId,
197 portletId, articleId);
198 }
199
200 public static com.liferay.portlet.journal.model.JournalContentSearch updateContentSearch(
201 long groupId, boolean privateLayout, long layoutId,
202 java.lang.String portletId, java.lang.String articleId, boolean purge)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 return getService()
206 .updateContentSearch(groupId, privateLayout, layoutId,
207 portletId, articleId, purge);
208 }
209
210 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> updateContentSearch(
211 long groupId, boolean privateLayout, long layoutId,
212 java.lang.String portletId, java.lang.String[] articleIds)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 return getService()
216 .updateContentSearch(groupId, privateLayout, layoutId,
217 portletId, articleIds);
218 }
219
220 public static JournalContentSearchLocalService getService() {
221 if (_service == null) {
222 _service = (JournalContentSearchLocalService)PortalBeanLocatorUtil.locate(JournalContentSearchLocalService.class.getName());
223
224 ReferenceRegistry.registerReference(JournalContentSearchLocalServiceUtil.class,
225 "_service");
226 MethodCache.remove(JournalContentSearchLocalService.class);
227 }
228
229 return _service;
230 }
231
232 public void setService(JournalContentSearchLocalService service) {
233 MethodCache.remove(JournalContentSearchLocalService.class);
234
235 _service = service;
236
237 ReferenceRegistry.registerReference(JournalContentSearchLocalServiceUtil.class,
238 "_service");
239 MethodCache.remove(JournalContentSearchLocalService.class);
240 }
241
242 private static JournalContentSearchLocalService _service;
243 }