001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface ImageLocalService extends PersistedModelLocalService {
039
044
045
052 public com.liferay.portal.model.Image addImage(
053 com.liferay.portal.model.Image image)
054 throws com.liferay.portal.kernel.exception.SystemException;
055
056
062 public com.liferay.portal.model.Image createImage(long imageId);
063
064
071 public void deleteImage(long imageId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075
081 public void deleteImage(com.liferay.portal.model.Image image)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public com.liferay.portal.model.Image fetchImage(long imageId)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150
158 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
159 public com.liferay.portal.model.Image getImage(long imageId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portal.model.Image> getImages(int start,
183 int end) throws com.liferay.portal.kernel.exception.SystemException;
184
185
191 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
192 public int getImagesCount()
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195
202 public com.liferay.portal.model.Image updateImage(
203 com.liferay.portal.model.Image image)
204 throws com.liferay.portal.kernel.exception.SystemException;
205
206
214 public com.liferay.portal.model.Image updateImage(
215 com.liferay.portal.model.Image image, boolean merge)
216 throws com.liferay.portal.kernel.exception.SystemException;
217
218
223 public java.lang.String getBeanIdentifier();
224
225
230 public void setBeanIdentifier(java.lang.String beanIdentifier);
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portal.model.Image getCompanyLogo(long imageId);
234
235 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236 public com.liferay.portal.model.Image getDefaultCompanyLogo();
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portal.model.Image getDefaultOrganizationLogo();
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public com.liferay.portal.model.Image getDefaultSpacer();
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portal.model.Image getDefaultUserFemalePortrait();
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portal.model.Image getDefaultUserMalePortrait();
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public com.liferay.portal.model.Image getImage(byte[] bytes)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public com.liferay.portal.model.Image getImage(java.io.File file)
257 throws com.liferay.portal.kernel.exception.PortalException,
258 com.liferay.portal.kernel.exception.SystemException;
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public com.liferay.portal.model.Image getImage(java.io.InputStream is)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public com.liferay.portal.model.Image getImage(java.io.InputStream is,
267 boolean cleanUpStream)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public com.liferay.portal.model.Image getImageOrDefault(long imageId);
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public java.util.List<com.liferay.portal.model.Image> getImages()
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portal.model.Image> getImagesBySize(
280 int size) throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public boolean isNullOrDefaultSpacer(byte[] bytes);
284
285 public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException;
288
289 public com.liferay.portal.model.Image updateImage(long imageId,
290 byte[] bytes, java.lang.String type, int height, int width, int size)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException;
293
294 public com.liferay.portal.model.Image updateImage(long imageId,
295 java.io.File file)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 public com.liferay.portal.model.Image updateImage(long imageId,
300 java.io.InputStream is)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 public com.liferay.portal.model.Image updateImage(long imageId,
305 java.io.InputStream is, boolean cleanUpStream)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308 }