1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
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  /**
22   * <a href="JournalArticleImageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * <p>
30   * This class provides static methods for the
31   * {@link JournalArticleImageLocalService} bean. The static methods of
32   * this class calls the same methods of the bean instance. It's convenient to be
33   * able to just write one line to call a method on a bean instead of writing a
34   * lookup call and a method call.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       JournalArticleImageLocalService
39   * @generated
40   */
41  public class JournalArticleImageLocalServiceUtil {
42      public static com.liferay.portlet.journal.model.JournalArticleImage addJournalArticleImage(
43          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
44          throws com.liferay.portal.SystemException {
45          return getService().addJournalArticleImage(journalArticleImage);
46      }
47  
48      public static com.liferay.portlet.journal.model.JournalArticleImage createJournalArticleImage(
49          long articleImageId) {
50          return getService().createJournalArticleImage(articleImageId);
51      }
52  
53      public static void deleteJournalArticleImage(long articleImageId)
54          throws com.liferay.portal.PortalException,
55              com.liferay.portal.SystemException {
56          getService().deleteJournalArticleImage(articleImageId);
57      }
58  
59      public static void deleteJournalArticleImage(
60          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
61          throws com.liferay.portal.SystemException {
62          getService().deleteJournalArticleImage(journalArticleImage);
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.JournalArticleImage getJournalArticleImage(
96          long articleImageId)
97          throws com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException {
99          return getService().getJournalArticleImage(articleImageId);
100     }
101 
102     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getJournalArticleImages(
103         int start, int end) throws com.liferay.portal.SystemException {
104         return getService().getJournalArticleImages(start, end);
105     }
106 
107     public static int getJournalArticleImagesCount()
108         throws com.liferay.portal.SystemException {
109         return getService().getJournalArticleImagesCount();
110     }
111 
112     public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
113         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
114         throws com.liferay.portal.SystemException {
115         return getService().updateJournalArticleImage(journalArticleImage);
116     }
117 
118     public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
119         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
120         boolean merge) throws com.liferay.portal.SystemException {
121         return getService().updateJournalArticleImage(journalArticleImage, merge);
122     }
123 
124     public static void addArticleImageId(long articleImageId, long groupId,
125         java.lang.String articleId, double version,
126         java.lang.String elInstanceId, java.lang.String elName,
127         java.lang.String languageId)
128         throws com.liferay.portal.PortalException,
129             com.liferay.portal.SystemException {
130         getService()
131             .addArticleImageId(articleImageId, groupId, articleId, version,
132             elInstanceId, elName, languageId);
133     }
134 
135     public static void deleteArticleImage(long articleImageId)
136         throws com.liferay.portal.SystemException {
137         getService().deleteArticleImage(articleImageId);
138     }
139 
140     public static void deleteArticleImage(
141         com.liferay.portlet.journal.model.JournalArticleImage articleImage)
142         throws com.liferay.portal.SystemException {
143         getService().deleteArticleImage(articleImage);
144     }
145 
146     public static void deleteArticleImage(long groupId,
147         java.lang.String articleId, double version,
148         java.lang.String elInstanceId, java.lang.String elName,
149         java.lang.String languageId) throws com.liferay.portal.SystemException {
150         getService()
151             .deleteArticleImage(groupId, articleId, version, elInstanceId,
152             elName, languageId);
153     }
154 
155     public static void deleteImages(long groupId, java.lang.String articleId,
156         double version) throws com.liferay.portal.SystemException {
157         getService().deleteImages(groupId, articleId, version);
158     }
159 
160     public static com.liferay.portlet.journal.model.JournalArticleImage getArticleImage(
161         long articleImageId)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException {
164         return getService().getArticleImage(articleImageId);
165     }
166 
167     public static long getArticleImageId(long groupId,
168         java.lang.String articleId, double version,
169         java.lang.String elInstanceId, java.lang.String elName,
170         java.lang.String languageId) throws com.liferay.portal.SystemException {
171         return getService()
172                    .getArticleImageId(groupId, articleId, version,
173             elInstanceId, elName, languageId);
174     }
175 
176     public static long getArticleImageId(long groupId,
177         java.lang.String articleId, double version,
178         java.lang.String elInstanceId, java.lang.String elName,
179         java.lang.String languageId, boolean tempImage)
180         throws com.liferay.portal.SystemException {
181         return getService()
182                    .getArticleImageId(groupId, articleId, version,
183             elInstanceId, elName, languageId, tempImage);
184     }
185 
186     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
187         long groupId) throws com.liferay.portal.SystemException {
188         return getService().getArticleImages(groupId);
189     }
190 
191     public static JournalArticleImageLocalService getService() {
192         if (_service == null) {
193             _service = (JournalArticleImageLocalService)PortalBeanLocatorUtil.locate(JournalArticleImageLocalService.class.getName());
194 
195             ReferenceRegistry.registerReference(JournalArticleImageLocalServiceUtil.class,
196                 "_service");
197             MethodCache.remove(JournalArticleImageLocalService.class);
198         }
199 
200         return _service;
201     }
202 
203     public void setService(JournalArticleImageLocalService service) {
204         MethodCache.remove(JournalArticleImageLocalService.class);
205 
206         _service = service;
207 
208         ReferenceRegistry.registerReference(JournalArticleImageLocalServiceUtil.class,
209             "_service");
210         MethodCache.remove(JournalArticleImageLocalService.class);
211     }
212 
213     private static JournalArticleImageLocalService _service;
214 }