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 java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
124 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
125 boolean andOperator, boolean excludeZeroViewCount,
126 java.util.Date publishDate, java.util.Date expirationDate, int start,
127 int end) 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 groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
138 boolean andOperator, java.lang.String orderByCol1,
139 java.lang.String orderByCol2, java.lang.String orderByType1,
140 java.lang.String orderByType2, boolean excludeZeroViewCount,
141 java.util.Date publishDate, java.util.Date expirationDate, int start,
142 int end) throws com.liferay.portal.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
146 long[] entryIds, long[] notEntryIds, boolean andOperator,
147 boolean excludeZeroViewCount, java.util.Date publishDate,
148 java.util.Date expirationDate, int start, int end)
149 throws com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
153 long[] entryIds, long[] notEntryIds, boolean andOperator,
154 boolean excludeZeroViewCount, int start, int end)
155 throws com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
159 long[] entryIds, long[] notEntryIds, boolean andOperator,
160 java.lang.String orderByCol1, java.lang.String orderByCol2,
161 java.lang.String orderByType1, java.lang.String orderByType2,
162 boolean excludeZeroViewCount, java.util.Date publishDate,
163 java.util.Date expirationDate, int start, int end)
164 throws com.liferay.portal.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public int getAssetsCount(long groupId, long[] entryIds,
168 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public int getAssetsCount(long groupId, long[] classNameIds,
173 long[] entryIds, long[] notEntryIds, boolean andOperator,
174 boolean excludeZeroViewCount, java.util.Date publishDate,
175 java.util.Date expirationDate)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
180 boolean andOperator, boolean excludeZeroViewCount)
181 throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
185 boolean andOperator, boolean excludeZeroViewCount,
186 java.util.Date publishDate, java.util.Date expirationDate)
187 throws com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
191 java.lang.String languageId);
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[] categoryNames, 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[] categoryNames, java.lang.String[] entryNames,
246 boolean visible, java.util.Date startDate, java.util.Date endDate,
247 java.util.Date publishDate, java.util.Date expirationDate,
248 java.lang.String mimeType, java.lang.String title,
249 java.lang.String description, java.lang.String summary,
250 java.lang.String url, int height, int width, 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[] categoryNames, java.lang.String[] entryNames,
257 boolean visible, java.util.Date startDate, java.util.Date endDate,
258 java.util.Date publishDate, java.util.Date expirationDate,
259 java.lang.String mimeType, java.lang.String title,
260 java.lang.String description, java.lang.String summary,
261 java.lang.String url, int height, int width,
262 java.lang.Integer priority, boolean sync)
263 throws com.liferay.portal.PortalException,
264 com.liferay.portal.SystemException;
265
266 public com.liferay.portlet.tags.model.TagsAsset updateVisible(
267 java.lang.String className, long classPK, boolean visible)
268 throws com.liferay.portal.PortalException,
269 com.liferay.portal.SystemException;
270
271 public void validate(java.lang.String className,
272 java.lang.String[] entryNames)
273 throws com.liferay.portal.PortalException;
274 }