001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface AssetEntryLocalService {
043 public com.liferay.portlet.asset.model.AssetEntry addAssetEntry(
044 com.liferay.portlet.asset.model.AssetEntry assetEntry)
045 throws com.liferay.portal.kernel.exception.SystemException;
046
047 public com.liferay.portlet.asset.model.AssetEntry createAssetEntry(
048 long entryId);
049
050 public void deleteAssetEntry(long entryId)
051 throws com.liferay.portal.kernel.exception.PortalException,
052 com.liferay.portal.kernel.exception.SystemException;
053
054 public void deleteAssetEntry(
055 com.liferay.portlet.asset.model.AssetEntry assetEntry)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 @SuppressWarnings("unchecked")
059 public java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException;
062
063 @SuppressWarnings("unchecked")
064 public java.util.List dynamicQuery(
065 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066 int end) throws com.liferay.portal.kernel.exception.SystemException;
067
068 @SuppressWarnings("unchecked")
069 public java.util.List dynamicQuery(
070 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
071 int end,
072 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
073 throws com.liferay.portal.kernel.exception.SystemException;
074
075 public long dynamicQueryCount(
076 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
077 throws com.liferay.portal.kernel.exception.SystemException;
078
079 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
080 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry(
081 long entryId)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
086 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAssetEntries(
087 int start, int end)
088 throws com.liferay.portal.kernel.exception.SystemException;
089
090 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
091 public int getAssetEntriesCount()
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
095 com.liferay.portlet.asset.model.AssetEntry assetEntry)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public com.liferay.portlet.asset.model.AssetEntry updateAssetEntry(
099 com.liferay.portlet.asset.model.AssetEntry assetEntry, boolean merge)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public void deleteEntry(com.liferay.portlet.asset.model.AssetEntry entry)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 public void deleteEntry(long entryId)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException;
109
110 public void deleteEntry(java.lang.String className, long classPK)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getAncestorEntries(
116 long entryId)
117 throws com.liferay.portal.kernel.exception.PortalException,
118 com.liferay.portal.kernel.exception.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getChildEntries(
122 long entryId)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
128 long companyId, int start, int end)
129 throws com.liferay.portal.kernel.exception.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public int getCompanyEntriesCount(long companyId)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
137 long companyId, int start, int end, java.lang.String languageId)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
142 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public int getEntriesCount(
147 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public com.liferay.portlet.asset.model.AssetEntry getEntry(long entryId)
152 throws com.liferay.portal.kernel.exception.PortalException,
153 com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.asset.model.AssetEntry getEntry(long groupId,
157 java.lang.String classUuid)
158 throws com.liferay.portal.kernel.exception.PortalException,
159 com.liferay.portal.kernel.exception.SystemException;
160
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public com.liferay.portlet.asset.model.AssetEntry getEntry(
163 java.lang.String className, long classPK)
164 throws com.liferay.portal.kernel.exception.PortalException,
165 com.liferay.portal.kernel.exception.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public com.liferay.portlet.asset.model.AssetEntry getNextEntry(long entryId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public com.liferay.portlet.asset.model.AssetEntry getParentEntry(
174 long entryId)
175 throws com.liferay.portal.kernel.exception.PortalException,
176 com.liferay.portal.kernel.exception.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.asset.model.AssetEntry getPreviousEntry(
180 long entryId)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
186 java.lang.String className, boolean asc, int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public java.util.List<com.liferay.portlet.asset.model.AssetEntry> getTopViewedEntries(
191 java.lang.String[] className, boolean asc, int start, int end)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 public void incrementViewCounter(long userId, java.lang.String className,
195 long classPK)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199 public void incrementViewCounter(long userId, java.lang.String className,
200 long classPK, int increment)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public com.liferay.portal.kernel.search.Hits search(long companyId,
206 java.lang.String portletId, java.lang.String keywords, int start,
207 int end) throws com.liferay.portal.kernel.exception.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portal.kernel.search.Hits search(long companyId,
211 long[] groupIds, java.lang.String portletId, java.lang.String userName,
212 java.lang.String title, java.lang.String description,
213 java.lang.String assetCategoryIds, java.lang.String assetTagNames,
214 boolean andSearch, int start, int end)
215 throws com.liferay.portal.kernel.exception.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
219 long companyId, java.lang.String portletId, java.lang.String keywords,
220 java.lang.String languageId, int start, int end)
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public int searchEntryDisplaysCount(long companyId,
225 java.lang.String portletId, java.lang.String keywords,
226 java.lang.String languageId)
227 throws com.liferay.portal.kernel.exception.SystemException;
228
229 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
230 long groupId, java.lang.String className, long classPK,
231 long[] categoryIds, java.lang.String[] tagNames)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235 public com.liferay.portlet.asset.model.AssetEntry updateEntry(long userId,
236 long groupId, java.lang.String className, long classPK,
237 java.lang.String classUuid, long[] categoryIds,
238 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
239 java.util.Date endDate, java.util.Date publishDate,
240 java.util.Date expirationDate, java.lang.String mimeType,
241 java.lang.String title, java.lang.String description,
242 java.lang.String summary, java.lang.String url, int height, int width,
243 java.lang.Integer priority, boolean sync)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException;
246
247 public com.liferay.portlet.asset.model.AssetEntry updateVisible(
248 java.lang.String className, long classPK, boolean visible)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException;
251
252 public void validate(java.lang.String className, long[] categoryIds,
253 java.lang.String[] tagNames)
254 throws com.liferay.portal.kernel.exception.PortalException;
255 }