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 com.liferay.portlet.journal.model.JournalArticleImage getJournalArticleImage(
76          long articleImageId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getJournalArticleImage(articleImageId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getJournalArticleImages(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getJournalArticleImages(start, end);
85      }
86  
87      public static int getJournalArticleImagesCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getJournalArticleImagesCount();
90      }
91  
92      public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
93          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage)
94          throws com.liferay.portal.SystemException {
95          return getService().updateJournalArticleImage(journalArticleImage);
96      }
97  
98      public static com.liferay.portlet.journal.model.JournalArticleImage updateJournalArticleImage(
99          com.liferay.portlet.journal.model.JournalArticleImage journalArticleImage,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateJournalArticleImage(journalArticleImage, merge);
102     }
103 
104     public static void addArticleImageId(long articleImageId, long groupId,
105         java.lang.String articleId, double version, java.lang.String elName,
106         java.lang.String languageId)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException {
109         getService()
110             .addArticleImageId(articleImageId, groupId, articleId, version,
111             elName, languageId);
112     }
113 
114     public static void deleteArticleImage(long articleImageId)
115         throws com.liferay.portal.SystemException {
116         getService().deleteArticleImage(articleImageId);
117     }
118 
119     public static void deleteArticleImage(
120         com.liferay.portlet.journal.model.JournalArticleImage articleImage)
121         throws com.liferay.portal.SystemException {
122         getService().deleteArticleImage(articleImage);
123     }
124 
125     public static void deleteArticleImage(long groupId,
126         java.lang.String articleId, double version, java.lang.String elName,
127         java.lang.String languageId) throws com.liferay.portal.SystemException {
128         getService()
129             .deleteArticleImage(groupId, articleId, version, elName, languageId);
130     }
131 
132     public static void deleteImages(long groupId, java.lang.String articleId,
133         double version) throws com.liferay.portal.SystemException {
134         getService().deleteImages(groupId, articleId, version);
135     }
136 
137     public static com.liferay.portlet.journal.model.JournalArticleImage getArticleImage(
138         long articleImageId)
139         throws com.liferay.portal.PortalException,
140             com.liferay.portal.SystemException {
141         return getService().getArticleImage(articleImageId);
142     }
143 
144     public static long getArticleImageId(long groupId,
145         java.lang.String articleId, double version, java.lang.String elName,
146         java.lang.String languageId) throws com.liferay.portal.SystemException {
147         return getService()
148                    .getArticleImageId(groupId, articleId, version, elName,
149             languageId);
150     }
151 
152     public static long getArticleImageId(long groupId,
153         java.lang.String articleId, double version, java.lang.String elName,
154         java.lang.String languageId, boolean tempImage)
155         throws com.liferay.portal.SystemException {
156         return getService()
157                    .getArticleImageId(groupId, articleId, version, elName,
158             languageId, tempImage);
159     }
160 
161     public static java.util.List<com.liferay.portlet.journal.model.JournalArticleImage> getArticleImages(
162         long groupId) throws com.liferay.portal.SystemException {
163         return getService().getArticleImages(groupId);
164     }
165 
166     public static JournalArticleImageLocalService getService() {
167         if (_service == null) {
168             _service = (JournalArticleImageLocalService)PortalBeanLocatorUtil.locate(JournalArticleImageLocalService.class.getName());
169         }
170 
171         return _service;
172     }
173 
174     public void setService(JournalArticleImageLocalService service) {
175         _service = service;
176     }
177 
178     private static JournalArticleImageLocalService _service;
179 }