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  
19  /**
20   * <a href="JournalArticleImageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link JournalArticleImageLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalArticleImageLocalService
37   * @generated
38   */
39  public class JournalArticleImageLocalServiceUtil {
40      public static com.liferay.portlet.journal.model.JournalArticleImage addJournalArticleImage(
41          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
42          throws com.liferay.portal.SystemException {
43          return getService().addJournalArticleImage(journalArticleImage);
44      }
45  
46      public static com.liferay.portlet.journal.model.JournalArticleImage createJournalArticleImage(
47          long articleImageId) {
48          return getService().createJournalArticleImage(articleImageId);
49      }
50  
51      public static void deleteJournalArticleImage(long articleImageId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteJournalArticleImage(articleImageId);
55      }
56  
57      public static void deleteJournalArticleImage(
58          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
59          throws com.liferay.portal.SystemException {
60          getService().deleteJournalArticleImage(journalArticleImage);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.journal.model.JournalArticleImage getJournalArticleImage(
91          long articleImageId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getJournalArticleImage(articleImageId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getJournalArticleImages(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getJournalArticleImages(start, end);
100     }
101 
102     public static int getJournalArticleImagesCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getJournalArticleImagesCount();
105     }
106 
107     public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
108         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
109         throws com.liferay.portal.SystemException {
110         return getService().updateJournalArticleImage(journalArticleImage);
111     }
112 
113     public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
114         com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
115         boolean merge) throws com.liferay.portal.SystemException {
116         return getService().updateJournalArticleImage(journalArticleImage, merge);
117     }
118 
119     public static void addArticleImageId(long articleImageId, long groupId,
120         java.lang.String articleId, double version,
121         java.lang.String elInstanceId, java.lang.String elName,
122         java.lang.String languageId)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.SystemException {
125         getService()
126             .addArticleImageId(articleImageId, groupId, articleId, version,
127             elInstanceId, elName, languageId);
128     }
129 
130     public static void deleteArticleImage(long articleImageId)
131         throws com.liferay.portal.SystemException {
132         getService().deleteArticleImage(articleImageId);
133     }
134 
135     public static void deleteArticleImage(
136         com.liferay.portlet.journal.model.JournalArticleImage articleImage)
137         throws com.liferay.portal.SystemException {
138         getService().deleteArticleImage(articleImage);
139     }
140 
141     public static void deleteArticleImage(long groupId,
142         java.lang.String articleId, double version,
143         java.lang.String elInstanceId, java.lang.String elName,
144         java.lang.String languageId) throws com.liferay.portal.SystemException {
145         getService()
146             .deleteArticleImage(groupId, articleId, version, elInstanceId,
147             elName, languageId);
148     }
149 
150     public static void deleteImages(long groupId, java.lang.String articleId,
151         double version) throws com.liferay.portal.SystemException {
152         getService().deleteImages(groupId, articleId, version);
153     }
154 
155     public static com.liferay.portlet.journal.model.JournalArticleImage getArticleImage(
156         long articleImageId)
157         throws com.liferay.portal.PortalException,
158             com.liferay.portal.SystemException {
159         return getService().getArticleImage(articleImageId);
160     }
161 
162     public static long getArticleImageId(long groupId,
163         java.lang.String articleId, double version,
164         java.lang.String elInstanceId, java.lang.String elName,
165         java.lang.String languageId) throws com.liferay.portal.SystemException {
166         return getService()
167                    .getArticleImageId(groupId, articleId, version,
168             elInstanceId, elName, languageId);
169     }
170 
171     public static long getArticleImageId(long groupId,
172         java.lang.String articleId, double version,
173         java.lang.String elInstanceId, java.lang.String elName,
174         java.lang.String languageId, boolean tempImage)
175         throws com.liferay.portal.SystemException {
176         return getService()
177                    .getArticleImageId(groupId, articleId, version,
178             elInstanceId, elName, languageId, tempImage);
179     }
180 
181     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
182         long groupId) throws com.liferay.portal.SystemException {
183         return getService().getArticleImages(groupId);
184     }
185 
186     public static JournalArticleImageLocalService getService() {
187         if (_service == null) {
188             _service = (JournalArticleImageLocalService)PortalBeanLocatorUtil.locate(JournalArticleImageLocalService.class.getName());
189         }
190 
191         return _service;
192     }
193 
194     public void setService(JournalArticleImageLocalService service) {
195         _service = service;
196     }
197 
198     private static JournalArticleImageLocalService _service;
199 }