1   /**
2    * Copyright (c) 2000-2007 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   * <a href="IGImageLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.imagegallery.service.impl.IGImageLocalServiceImpl</code>.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.imagegallery.service.IGImageServiceFactory
48   * @see com.liferay.portlet.imagegallery.service.IGImageServiceUtil
49   *
50   */
51  public interface IGImageLocalService {
52      public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
53          com.liferay.portlet.imagegallery.model.IGImage model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
65          com.liferay.portlet.imagegallery.model.IGImage model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.imagegallery.model.IGImage addImage(
69          long userId, long folderId, java.lang.String description,
70          java.io.File file, java.lang.String contentType,
71          java.lang.String[] tagsEntries, boolean addCommunityPermissions,
72          boolean addGuestPermissions)
73          throws com.liferay.portal.SystemException, 
74              com.liferay.portal.PortalException;
75  
76      public com.liferay.portlet.imagegallery.model.IGImage addImage(
77          long userId, long folderId, java.lang.String description,
78          java.io.File file, java.lang.String contentType,
79          java.lang.String[] tagsEntries,
80          java.lang.String[] communityPermissions,
81          java.lang.String[] guestPermissions)
82          throws com.liferay.portal.SystemException, 
83              com.liferay.portal.PortalException;
84  
85      public com.liferay.portlet.imagegallery.model.IGImage addImage(
86          long userId, long folderId, java.lang.String description,
87          java.io.File file, java.lang.String contentType,
88          java.lang.String[] tagsEntries,
89          java.lang.Boolean addCommunityPermissions,
90          java.lang.Boolean addGuestPermissions,
91          java.lang.String[] communityPermissions,
92          java.lang.String[] guestPermissions)
93          throws com.liferay.portal.SystemException, 
94              com.liferay.portal.PortalException;
95  
96      public void addImageResources(long folderId, long imageId,
97          boolean addCommunityPermissions, boolean addGuestPermissions)
98          throws com.liferay.portal.SystemException, 
99              com.liferay.portal.PortalException;
100 
101     public void addImageResources(
102         com.liferay.portlet.imagegallery.model.IGFolder folder,
103         com.liferay.portlet.imagegallery.model.IGImage image,
104         boolean addCommunityPermissions, boolean addGuestPermissions)
105         throws com.liferay.portal.SystemException, 
106             com.liferay.portal.PortalException;
107 
108     public void addImageResources(long folderId, long imageId,
109         java.lang.String[] communityPermissions,
110         java.lang.String[] guestPermissions)
111         throws com.liferay.portal.SystemException, 
112             com.liferay.portal.PortalException;
113 
114     public void addImageResources(
115         com.liferay.portlet.imagegallery.model.IGFolder folder,
116         com.liferay.portlet.imagegallery.model.IGImage image,
117         java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.SystemException, 
120             com.liferay.portal.PortalException;
121 
122     public void deleteImage(long imageId)
123         throws com.liferay.portal.SystemException, 
124             com.liferay.portal.PortalException;
125 
126     public void deleteImage(
127         com.liferay.portlet.imagegallery.model.IGImage image)
128         throws com.liferay.portal.SystemException, 
129             com.liferay.portal.PortalException;
130 
131     public void deleteImages(long folderId)
132         throws com.liferay.portal.SystemException, 
133             com.liferay.portal.PortalException;
134 
135     public int getFoldersImagesCount(java.util.List folderIds)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List getGroupImages(long groupId, int begin, int end)
139         throws com.liferay.portal.SystemException;
140 
141     public java.util.List getGroupImages(long groupId, long userId, int begin,
142         int end) throws com.liferay.portal.SystemException;
143 
144     public int getGroupImagesCount(long groupId)
145         throws com.liferay.portal.SystemException;
146 
147     public int getGroupImagesCount(long groupId, long userId)
148         throws com.liferay.portal.SystemException;
149 
150     public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
151         throws com.liferay.portal.SystemException, 
152             com.liferay.portal.PortalException;
153 
154     public java.util.List getImages(long folderId)
155         throws com.liferay.portal.SystemException;
156 
157     public java.util.List getImages(long folderId, int begin, int end)
158         throws com.liferay.portal.SystemException;
159 
160     public java.util.List getImages(long folderId, int begin, int end,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException;
163 
164     public int getImagesCount(long folderId)
165         throws com.liferay.portal.SystemException;
166 
167     public java.util.List getNoAssetImages()
168         throws com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.imagegallery.model.IGImage updateImage(
171         long userId, long imageId, long folderId, java.lang.String description,
172         java.io.File file, java.lang.String contentType,
173         java.lang.String[] tagsEntries)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portal.PortalException;
176 
177     public void updateTagsAsset(long userId,
178         com.liferay.portlet.imagegallery.model.IGImage image,
179         java.lang.String[] tagsEntries)
180         throws com.liferay.portal.SystemException, 
181             com.liferay.portal.PortalException;
182 }