1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface ImageLocalService {
50 public com.liferay.portal.model.Image addImage(
51 com.liferay.portal.model.Image image)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.Image createImage(long imageId);
55
56 public void deleteImage(long imageId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteImage(com.liferay.portal.model.Image image)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 @SuppressWarnings("unchecked")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 @SuppressWarnings("unchecked")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @SuppressWarnings("unchecked")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException;
79
80 public long dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portal.model.Image getImage(long imageId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portal.model.Image> getImages(int start,
91 int end) throws com.liferay.portal.kernel.exception.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public int getImagesCount()
95 throws com.liferay.portal.kernel.exception.SystemException;
96
97 public com.liferay.portal.model.Image updateImage(
98 com.liferay.portal.model.Image image)
99 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public com.liferay.portal.model.Image updateImage(
102 com.liferay.portal.model.Image image, boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106 public com.liferay.portal.model.Image getCompanyLogo(long imageId);
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portal.model.Image getDefaultCompanyLogo();
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portal.model.Image getDefaultOrganizationLogo();
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portal.model.Image getDefaultSpacer();
116
117 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
118 public com.liferay.portal.model.Image getDefaultUserFemalePortrait();
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public com.liferay.portal.model.Image getDefaultUserMalePortrait();
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public com.liferay.portal.model.Image getImage(byte[] bytes)
125 throws com.liferay.portal.kernel.exception.PortalException,
126 com.liferay.portal.kernel.exception.SystemException;
127
128 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
129 public com.liferay.portal.model.Image getImage(java.io.File file)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public com.liferay.portal.model.Image getImage(java.io.InputStream is)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public com.liferay.portal.model.Image getImageOrDefault(long imageId);
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portal.model.Image> getImages()
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portal.model.Image> getImagesBySize(
147 int size) throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public boolean isNullOrDefaultSpacer(byte[] bytes);
151
152 public com.liferay.portal.model.Image updateImage(long imageId, byte[] bytes)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public com.liferay.portal.model.Image updateImage(long imageId,
157 java.io.File file)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 public com.liferay.portal.model.Image updateImage(long imageId,
162 java.io.InputStream is)
163 throws com.liferay.portal.kernel.exception.PortalException,
164 com.liferay.portal.kernel.exception.SystemException;
165
166 public com.liferay.portal.model.Image updateImage(long imageId,
167 byte[] bytes, java.lang.String type, int height, int width, int size)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170 }