1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.imagegallery.service;
24  
25  
26  /**
27   * <a href="IGImageServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.imagegallery.service.IGImageService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * @author Brian Wing Shun Chan
43   *
44   * @see com.liferay.portlet.imagegallery.service.IGImageService
45   *
46   */
47  public class IGImageServiceUtil {
48      public static com.liferay.portlet.imagegallery.model.IGImage addImage(
49          long folderId, java.lang.String name, java.lang.String description,
50          java.io.File file, java.lang.String contentType,
51          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
52          boolean addGuestPermissions)
53          throws com.liferay.portal.PortalException,
54              com.liferay.portal.SystemException, java.rmi.RemoteException {
55          return _service.addImage(folderId, name, description, file,
56              contentType, tagsEntries, addCommunityPermissions,
57              addGuestPermissions);
58      }
59  
60      public static com.liferay.portlet.imagegallery.model.IGImage addImage(
61          long folderId, java.lang.String name, java.lang.String description,
62          java.io.File file, java.lang.String contentType,
63          java.lang.String[] tagsEntries,
64          java.lang.String[] communityPermissions,
65          java.lang.String[] guestPermissions)
66          throws com.liferay.portal.PortalException,
67              com.liferay.portal.SystemException, java.rmi.RemoteException {
68          return _service.addImage(folderId, name, description, file,
69              contentType, tagsEntries, communityPermissions, guestPermissions);
70      }
71  
72      public static void deleteImage(long imageId)
73          throws com.liferay.portal.PortalException,
74              com.liferay.portal.SystemException, java.rmi.RemoteException {
75          _service.deleteImage(imageId);
76      }
77  
78      public static void deleteImageByFolderIdAndNameWithExtension(
79          long folderId, java.lang.String nameWithExtension)
80          throws com.liferay.portal.PortalException,
81              com.liferay.portal.SystemException, java.rmi.RemoteException {
82          _service.deleteImageByFolderIdAndNameWithExtension(folderId,
83              nameWithExtension);
84      }
85  
86      public static com.liferay.portlet.imagegallery.model.IGImage getImage(
87          long imageId)
88          throws com.liferay.portal.PortalException,
89              com.liferay.portal.SystemException, java.rmi.RemoteException {
90          return _service.getImage(imageId);
91      }
92  
93      public static com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
94          long folderId, java.lang.String nameWithExtension)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException, java.rmi.RemoteException {
97          return _service.getImageByFolderIdAndNameWithExtension(folderId,
98              nameWithExtension);
99      }
100 
101     public static com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
102         long largeImageId)
103         throws com.liferay.portal.PortalException,
104             com.liferay.portal.SystemException, java.rmi.RemoteException {
105         return _service.getImageByLargeImageId(largeImageId);
106     }
107 
108     public static com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
109         long smallImageId)
110         throws com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException, java.rmi.RemoteException {
112         return _service.getImageBySmallImageId(smallImageId);
113     }
114 
115     public static java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
116         long folderId)
117         throws com.liferay.portal.PortalException,
118             com.liferay.portal.SystemException, java.rmi.RemoteException {
119         return _service.getImages(folderId);
120     }
121 
122     public static com.liferay.portlet.imagegallery.model.IGImage updateImage(
123         long imageId, long folderId, java.lang.String name,
124         java.lang.String description, java.io.File file,
125         java.lang.String contentType, java.lang.String[] tagsEntries)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException, java.rmi.RemoteException {
128         return _service.updateImage(imageId, folderId, name, description, file,
129             contentType, tagsEntries);
130     }
131 
132     public static IGImageService getService() {
133         return _service;
134     }
135 
136     public void setService(IGImageService service) {
137         _service = service;
138     }
139 
140     private static IGImageService _service;
141 }