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.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface TagsAssetLocalService {
54 public com.liferay.portlet.tags.model.TagsAsset addTagsAsset(
55 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.tags.model.TagsAsset createTagsAsset(
59 long assetId);
60
61 public void deleteTagsAsset(long assetId)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteTagsAsset(
66 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 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) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.tags.model.TagsAsset getTagsAsset(long assetId)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portal.PortalException;
81
82 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
83 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getTagsAssets(
84 int start, int end) throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public int getTagsAssetsCount() throws com.liferay.portal.SystemException;
88
89 public com.liferay.portlet.tags.model.TagsAsset updateTagsAsset(
90 com.liferay.portlet.tags.model.TagsAsset tagsAsset)
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 com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
116 java.lang.String languageId);
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
120 long[] entryIds, long[] notEntryIds, boolean andOperator,
121 boolean excludeZeroViewCount, int start, int end)
122 throws 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, int start, int end)
128 throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
132 long[] entryIds, long[] notEntryIds, boolean andOperator,
133 boolean excludeZeroViewCount, java.util.Date publishDate,
134 java.util.Date expirationDate, 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, 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 java.lang.String orderByCol1, java.lang.String orderByCol2,
148 java.lang.String orderByType1, java.lang.String orderByType2,
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 groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
156 boolean andOperator, java.lang.String orderByCol1,
157 java.lang.String orderByCol2, java.lang.String orderByType1,
158 java.lang.String orderByType2, boolean excludeZeroViewCount,
159 java.util.Date publishDate, java.util.Date expirationDate, int start,
160 int end) throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
164 boolean andOperator, boolean excludeZeroViewCount)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public int getAssetsCount(long groupId, long[] entryIds,
169 long[] notEntryIds, boolean andOperator, boolean excludeZeroViewCount)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public int getAssetsCount(long[] entryIds, long[] notEntryIds,
174 boolean andOperator, boolean excludeZeroViewCount,
175 java.util.Date publishDate, java.util.Date expirationDate)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public int getAssetsCount(long groupId, long[] classNameIds,
180 long[] entryIds, long[] notEntryIds, boolean andOperator,
181 boolean excludeZeroViewCount, java.util.Date publishDate,
182 java.util.Date expirationDate)
183 throws com.liferay.portal.SystemException;
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 }