1
22
23 package com.liferay.portlet.tags.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface TagsAssetLocalService {
58 public com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
59 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
63 long assetId);
64
65 public void deleteTagsAsset(long assetId)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteTagsAsset(
70 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.tags.model.TagsAsset getTagsAsset(long assetId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
88 int start, int end) throws com.liferay.portal.SystemException;
89
90 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91 public int getTagsAssetsCount() throws com.liferay.portal.SystemException;
92
93 public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
94 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
95 throws com.liferay.portal.SystemException;
96
97 public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
98 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
99 throws com.liferay.portal.SystemException;
100
101 public void deleteAsset(long assetId)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException;
104
105 public void deleteAsset(java.lang.String className, long classPK)
106 throws com.liferay.portal.SystemException;
107
108 public void deleteAsset(com.liferay.portlet.tags.model.TagsAsset asset)
109 throws com.liferay.portal.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public com.liferay.portlet.tags.model.TagsAsset getAsset(
118 java.lang.String className, long classPK)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
124 java.lang.String languageId);
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
128 long[] entryIds, long[] notEntryIds, boolean andOperator,
129 boolean excludeZeroViewCount, int start, int end)
130 throws com.liferay.portal.SystemException;
131
132 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
133 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
134 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
135 boolean andOperator, boolean excludeZeroViewCount, int start, int end)
136 throws com.liferay.portal.SystemException;
137
138 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
139 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
140 long[] entryIds, long[] notEntryIds, boolean andOperator,
141 boolean excludeZeroViewCount, java.util.Date publishDate,
142 java.util.Date expirationDate, int start, int end)
143 throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
147 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
148 boolean andOperator, boolean excludeZeroViewCount,
149 java.util.Date publishDate, java.util.Date expirationDate, int start,
150 int end) throws com.liferay.portal.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
154 long[] entryIds, long[] notEntryIds, boolean andOperator,
155 java.lang.String orderByCol1, java.lang.String orderByCol2,
156 java.lang.String orderByType1, java.lang.String orderByType2,
157 boolean excludeZeroViewCount, java.util.Date publishDate,
158 java.util.Date expirationDate, int start, int end)
159 throws com.liferay.portal.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
163 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
164 boolean andOperator, java.lang.String orderByCol1,
165 java.lang.String orderByCol2, java.lang.String orderByType1,
166 java.lang.String orderByType2, boolean excludeZeroViewCount,
167 java.util.Date publishDate, java.util.Date expirationDate, int start,
168 int end) throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
172 boolean andOperator, boolean excludeZeroViewCount)
173 throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public int getAssetsCount(long groupId, long[] entryIds,
177 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
178 throws com.liferay.portal.SystemException;
179
180 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
182 boolean andOperator, boolean excludeZeroViewCount,
183 java.util.Date publishDate, java.util.Date expirationDate)
184 throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getAssetsCount(long groupId, long[] classNameIds,
188 long[] entryIds, long[] notEntryIds, boolean andOperator,
189 boolean excludeZeroViewCount, java.util.Date publishDate,
190 java.util.Date expirationDate)
191 throws com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
195 long companyId, int start, int end, java.lang.String languageId)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
200 long companyId, int start, int end)
201 throws com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public int getCompanyAssetsCount(long companyId)
205 throws com.liferay.portal.SystemException;
206
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
209 java.lang.String className, boolean asc, int start, int end)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
214 java.lang.String[] className, boolean asc, int start, int end)
215 throws com.liferay.portal.SystemException;
216
217 public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
218 java.lang.String className, long classPK)
219 throws com.liferay.portal.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.kernel.search.Hits search(long companyId,
223 java.lang.String portletId, java.lang.String keywords, int start,
224 int end) throws com.liferay.portal.SystemException;
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
228 long companyId, java.lang.String portletId, java.lang.String keywords,
229 java.lang.String languageId, int start, int end)
230 throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public int searchAssetDisplaysCount(long companyId,
234 java.lang.String portletId, java.lang.String keywords,
235 java.lang.String languageId) throws com.liferay.portal.SystemException;
236
237 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
238 long groupId, java.lang.String className, long classPK,
239 java.lang.String[] entryNames)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException;
242
243 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
244 long groupId, java.lang.String className, long classPK,
245 java.lang.String[] entryNames, java.util.Date startDate,
246 java.util.Date endDate, java.util.Date publishDate,
247 java.util.Date expirationDate, java.lang.String mimeType,
248 java.lang.String title, java.lang.String description,
249 java.lang.String summary, java.lang.String url, int height, int width,
250 java.lang.Integer priority)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException;
253
254 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
255 long groupId, java.lang.String className, long classPK,
256 java.lang.String[] entryNames, java.util.Date startDate,
257 java.util.Date endDate, java.util.Date publishDate,
258 java.util.Date expirationDate, java.lang.String mimeType,
259 java.lang.String title, java.lang.String description,
260 java.lang.String summary, java.lang.String url, int height, int width,
261 java.lang.Integer priority, boolean sync)
262 throws com.liferay.portal.PortalException,
263 com.liferay.portal.SystemException;
264
265 public void validate(java.lang.String className,
266 java.lang.String[] entryNames)
267 throws com.liferay.portal.PortalException;
268 }