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