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