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
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portal.model.Image getImage(long imageId)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portal.model.PersistedModel getPersistedModel(
161 java.io.Serializable primaryKeyObj)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portal.model.Image> getImages(int start,
179 int end) throws com.liferay.portal.kernel.exception.SystemException;
180
181
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public int getImagesCount()
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
198 public com.liferay.portal.model.Image updateImage(
199 com.liferay.portal.model.Image image)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 public com.liferay.portal.model.Image updateImage(
211 com.liferay.portal.model.Image image, boolean merge)
212 throws com.liferay.portal.kernel.exception.SystemException;
213
214
219 public java.lang.String getBeanIdentifier();
220
221
226 public void setBeanIdentifier(java.lang.String beanIdentifier);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public com.liferay.portal.model.Image getCompanyLogo(long imageId);
230
231 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
232 public com.liferay.portal.model.Image getDefaultCompanyLogo();
233
234 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
235 public com.liferay.portal.model.Image getDefaultOrganizationLogo();
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portal.model.Image getDefaultSpacer();
239
240 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241 public com.liferay.portal.model.Image getDefaultUserFemalePortrait();
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portal.model.Image getDefaultUserMalePortrait();
245
246 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247 public com.liferay.portal.model.Image getImage(byte[] bytes)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252 public com.liferay.portal.model.Image getImage(java.io.File file)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portal.model.Image getImage(java.io.InputStream is)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262 public com.liferay.portal.model.Image getImageOrDefault(long imageId);
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<com.liferay.portal.model.Image> getImages()
266 throws com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portal.model.Image> getImagesBySize(
270 int size) throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public boolean isNullOrDefaultSpacer(byte[] bytes);
274
275 public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public com.liferay.portal.model.Image updateImage(long imageId,
280 java.io.File file)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public com.liferay.portal.model.Image updateImage(long imageId,
285 java.io.InputStream is)
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 }