1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
51 public interface IGImageLocalService {
52 public com.liferay.portlet.imagegallery.model.IGImage addIGImage(
53 com.liferay.portlet.imagegallery.model.IGImage igImage)
54 throws com.liferay.portal.SystemException;
55
56 public void deleteIGImage(long imageId)
57 throws com.liferay.portal.SystemException,
58 com.liferay.portal.PortalException;
59
60 public void deleteIGImage(
61 com.liferay.portlet.imagegallery.model.IGImage igImage)
62 throws com.liferay.portal.SystemException;
63
64 public java.util.List<Object> dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException;
67
68 public java.util.List<Object> dynamicQuery(
69 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
70 int end) throws com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.imagegallery.model.IGImage getIGImage(
73 long imageId)
74 throws com.liferay.portal.SystemException,
75 com.liferay.portal.PortalException;
76
77 public com.liferay.portlet.imagegallery.model.IGImage updateIGImage(
78 com.liferay.portlet.imagegallery.model.IGImage igImage)
79 throws com.liferay.portal.SystemException;
80
81 public com.liferay.portlet.imagegallery.model.IGImage addImage(
82 long userId, long folderId, java.lang.String name,
83 java.lang.String description, java.io.File file,
84 java.lang.String contentType, java.lang.String[] tagsEntries,
85 boolean addCommunityPermissions, boolean addGuestPermissions)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.imagegallery.model.IGImage addImage(
90 java.lang.String uuid, long userId, long folderId,
91 java.lang.String name, java.lang.String description, java.io.File file,
92 java.lang.String contentType, java.lang.String[] tagsEntries,
93 boolean addCommunityPermissions, boolean addGuestPermissions)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.imagegallery.model.IGImage addImage(
98 long userId, long folderId, java.lang.String name,
99 java.lang.String description, java.io.File file,
100 java.lang.String contentType, java.lang.String[] tagsEntries,
101 java.lang.String[] communityPermissions,
102 java.lang.String[] guestPermissions)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.imagegallery.model.IGImage addImage(
107 java.lang.String uuid, long userId, long folderId,
108 java.lang.String name, java.lang.String description, java.io.File file,
109 java.lang.String contentType, java.lang.String[] tagsEntries,
110 java.lang.Boolean addCommunityPermissions,
111 java.lang.Boolean addGuestPermissions,
112 java.lang.String[] communityPermissions,
113 java.lang.String[] guestPermissions)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException;
116
117 public void addImageResources(long folderId, long imageId,
118 boolean addCommunityPermissions, boolean addGuestPermissions)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public void addImageResources(
123 com.liferay.portlet.imagegallery.model.IGFolder folder,
124 com.liferay.portlet.imagegallery.model.IGImage image,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 public void addImageResources(long folderId, long imageId,
130 java.lang.String[] communityPermissions,
131 java.lang.String[] guestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 public void addImageResources(
136 com.liferay.portlet.imagegallery.model.IGFolder folder,
137 com.liferay.portlet.imagegallery.model.IGImage image,
138 java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void deleteImage(long imageId)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void deleteImage(
148 com.liferay.portlet.imagegallery.model.IGImage image)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public void deleteImages(long folderId)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public int getFoldersImagesCount(java.util.List<Long> folderIds)
157 throws com.liferay.portal.SystemException;
158
159 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
160 long groupId, int start, int end)
161 throws com.liferay.portal.SystemException;
162
163 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getGroupImages(
164 long groupId, long userId, int start, int end)
165 throws com.liferay.portal.SystemException;
166
167 public int getGroupImagesCount(long groupId)
168 throws com.liferay.portal.SystemException;
169
170 public int getGroupImagesCount(long groupId, long userId)
171 throws com.liferay.portal.SystemException;
172
173 public com.liferay.portlet.imagegallery.model.IGImage getImage(long imageId)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException;
176
177 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom1ImageId(
178 long custom1ImageId)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException;
181
182 public com.liferay.portlet.imagegallery.model.IGImage getImageByCustom2ImageId(
183 long custom2ImageId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException;
186
187 public com.liferay.portlet.imagegallery.model.IGImage getImageByFolderIdAndNameWithExtension(
188 long folderId, java.lang.String nameWithExtension)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 public com.liferay.portlet.imagegallery.model.IGImage getImageByLargeImageId(
193 long largeImageId)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException;
196
197 public com.liferay.portlet.imagegallery.model.IGImage getImageBySmallImageId(
198 long smallImageId)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException;
201
202 public com.liferay.portlet.imagegallery.model.IGImage getImageByUuidAndGroupId(
203 java.lang.String uuid, long groupId)
204 throws com.liferay.portal.PortalException,
205 com.liferay.portal.SystemException;
206
207 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
208 long folderId) throws com.liferay.portal.SystemException;
209
210 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
211 long folderId, int start, int end)
212 throws com.liferay.portal.SystemException;
213
214 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getImages(
215 long folderId, int start, int end,
216 com.liferay.portal.kernel.util.OrderByComparator obc)
217 throws com.liferay.portal.SystemException;
218
219 public int getImagesCount(long folderId)
220 throws com.liferay.portal.SystemException;
221
222 public java.util.List<com.liferay.portlet.imagegallery.model.IGImage> getNoAssetImages()
223 throws com.liferay.portal.SystemException;
224
225 public com.liferay.portlet.imagegallery.model.IGImage updateImage(
226 long userId, long imageId, long folderId, java.lang.String name,
227 java.lang.String description, java.io.File file,
228 java.lang.String contentType, java.lang.String[] tagsEntries)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException;
231
232 public void updateTagsAsset(long userId,
233 com.liferay.portlet.imagegallery.model.IGImage image,
234 java.lang.String[] tagsEntries)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException;
237 }