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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.tags.model.TagsAsset getTagsAsset(long assetId)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
80 int start, int end) throws com.liferay.portal.SystemException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public int getTagsAssetsCount() throws com.liferay.portal.SystemException;
84
85 public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
86 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
87 throws com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
90 com.liferay.portlet.tags.model.TagsAsset tagsAsset, boolean merge)
91 throws com.liferay.portal.SystemException;
92
93 public void deleteAsset(long assetId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public void deleteAsset(java.lang.String className, long classPK)
98 throws com.liferay.portal.SystemException;
99
100 public void deleteAsset(com.liferay.portlet.tags.model.TagsAsset asset)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.tags.model.TagsAsset getAsset(long assetId)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public com.liferay.portlet.tags.model.TagsAsset getAsset(
110 java.lang.String className, long classPK)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
116 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
117 boolean andOperator, boolean excludeZeroViewCount,
118 java.util.Date publishDate, java.util.Date expirationDate, int start,
119 int end) throws com.liferay.portal.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
123 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
124 boolean andOperator, 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, java.lang.String orderByCol1,
131 java.lang.String orderByCol2, java.lang.String orderByType1,
132 java.lang.String orderByType2, boolean excludeZeroViewCount,
133 java.util.Date publishDate, java.util.Date expirationDate, int start,
134 int end) throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
138 long[] entryIds, long[] notEntryIds, boolean andOperator,
139 boolean excludeZeroViewCount, java.util.Date publishDate,
140 java.util.Date expirationDate, int start, int end)
141 throws com.liferay.portal.SystemException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
145 long[] entryIds, long[] notEntryIds, boolean andOperator,
146 boolean excludeZeroViewCount, int start, int end)
147 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 int getAssetsCount(long groupId, long[] entryIds,
160 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
161 throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public int getAssetsCount(long groupId, long[] classNameIds,
165 long[] entryIds, long[] notEntryIds, boolean andOperator,
166 boolean excludeZeroViewCount, java.util.Date publishDate,
167 java.util.Date expirationDate)
168 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[] 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 com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
183 java.lang.String languageId);
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
187 long companyId, int start, int end, java.lang.String languageId)
188 throws com.liferay.portal.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
192 long companyId, int start, int end)
193 throws com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getCompanyAssetsCount(long companyId)
197 throws com.liferay.portal.SystemException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTopViewedAssets(
201 java.lang.String className, boolean asc, int start, int end)
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 public com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
210 java.lang.String className, long classPK)
211 throws com.liferay.portal.SystemException;
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public com.liferay.portal.kernel.search.Hits search(long companyId,
215 java.lang.String portletId, java.lang.String keywords, int start,
216 int end) throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
220 long companyId, java.lang.String portletId, java.lang.String keywords,
221 java.lang.String languageId, int start, int end)
222 throws com.liferay.portal.SystemException;
223
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int searchAssetDisplaysCount(long companyId,
226 java.lang.String portletId, java.lang.String keywords,
227 java.lang.String languageId) throws com.liferay.portal.SystemException;
228
229 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
230 long groupId, java.lang.String className, long classPK,
231 java.lang.String[] entryNames)
232 throws com.liferay.portal.PortalException,
233 com.liferay.portal.SystemException;
234
235 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
236 long groupId, java.lang.String className, long classPK,
237 java.lang.String[] entryNames, java.util.Date startDate,
238 java.util.Date endDate, java.util.Date publishDate,
239 java.util.Date expirationDate, java.lang.String mimeType,
240 java.lang.String title, java.lang.String description,
241 java.lang.String summary, java.lang.String url, int height, int width,
242 java.lang.Integer priority)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException;
245
246 public com.liferay.portlet.tags.model.TagsAsset updateAsset(long userId,
247 long groupId, java.lang.String className, long classPK,
248 java.lang.String[] entryNames, java.util.Date startDate,
249 java.util.Date endDate, java.util.Date publishDate,
250 java.util.Date expirationDate, java.lang.String mimeType,
251 java.lang.String title, java.lang.String description,
252 java.lang.String summary, java.lang.String url, int height, int width,
253 java.lang.Integer priority, boolean sync)
254 throws com.liferay.portal.PortalException,
255 com.liferay.portal.SystemException;
256
257 public void validate(java.lang.String className,
258 java.lang.String[] entryNames)
259 throws com.liferay.portal.PortalException;
260 }