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