001
014
015 package com.liferay.portlet.asset.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class AssetEntryServiceUtil {
038
043 public static com.liferay.portlet.asset.model.AssetEntry fetchEntry(
044 long entryId)
045 throws com.liferay.portal.kernel.exception.PortalException {
046 return getService().fetchEntry(entryId);
047 }
048
049
054 public static java.lang.String getBeanIdentifier() {
055 return getService().getBeanIdentifier();
056 }
057
058 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
059 long companyId, int start, int end) {
060 return getService().getCompanyEntries(companyId, start, end);
061 }
062
063 public static int getCompanyEntriesCount(long companyId) {
064 return getService().getCompanyEntriesCount(companyId);
065 }
066
067 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
068 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
069 throws com.liferay.portal.kernel.exception.PortalException {
070 return getService().getEntries(entryQuery);
071 }
072
073 public static int getEntriesCount(
074 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().getEntriesCount(entryQuery);
077 }
078
079 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
080 long entryId)
081 throws com.liferay.portal.kernel.exception.PortalException {
082 return getService().getEntry(entryId);
083 }
084
085 public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
086 java.lang.String className, long classPK)
087 throws com.liferay.portal.kernel.exception.PortalException {
088 return getService().incrementViewCounter(className, classPK);
089 }
090
091
096 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
097 getService().setBeanIdentifier(beanIdentifier);
098 }
099
100
106 @Deprecated
107 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
108 long groupId, java.lang.String className, long classPK,
109 java.lang.String classUuid, long classTypeId, long[] categoryIds,
110 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
111 java.util.Date endDate, java.util.Date expirationDate,
112 java.lang.String mimeType, java.lang.String title,
113 java.lang.String description, java.lang.String summary,
114 java.lang.String url, java.lang.String layoutUuid, int height,
115 int width, java.lang.Integer priority, boolean sync)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService()
118 .updateEntry(groupId, className, classPK, classUuid,
119 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
120 expirationDate, mimeType, title, description, summary, url,
121 layoutUuid, height, width, priority, sync);
122 }
123
124
130 @Deprecated
131 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
132 long groupId, java.lang.String className, long classPK,
133 java.lang.String classUuid, long classTypeId, long[] categoryIds,
134 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
135 java.util.Date endDate, java.util.Date publishDate,
136 java.util.Date expirationDate, java.lang.String mimeType,
137 java.lang.String title, java.lang.String description,
138 java.lang.String summary, java.lang.String url,
139 java.lang.String layoutUuid, int height, int width,
140 java.lang.Integer priority, boolean sync)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 return getService()
143 .updateEntry(groupId, className, classPK, classUuid,
144 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
145 publishDate, expirationDate, mimeType, title, description, summary,
146 url, layoutUuid, height, width, priority, sync);
147 }
148
149 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
150 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
151 java.lang.String className, long classPK, java.lang.String classUuid,
152 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
153 boolean visible, java.util.Date startDate, java.util.Date endDate,
154 java.util.Date expirationDate, java.lang.String mimeType,
155 java.lang.String title, java.lang.String description,
156 java.lang.String summary, java.lang.String url,
157 java.lang.String layoutUuid, int height, int width,
158 java.lang.Integer priority)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 return getService()
161 .updateEntry(groupId, createDate, modifiedDate, className,
162 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
163 startDate, endDate, expirationDate, mimeType, title, description,
164 summary, url, layoutUuid, height, width, priority);
165 }
166
167
173 @Deprecated
174 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
175 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
176 java.lang.String className, long classPK, java.lang.String classUuid,
177 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
178 boolean visible, java.util.Date startDate, java.util.Date endDate,
179 java.util.Date expirationDate, java.lang.String mimeType,
180 java.lang.String title, java.lang.String description,
181 java.lang.String summary, java.lang.String url,
182 java.lang.String layoutUuid, int height, int width,
183 java.lang.Integer priority, boolean sync)
184 throws com.liferay.portal.kernel.exception.PortalException {
185 return getService()
186 .updateEntry(groupId, createDate, modifiedDate, className,
187 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
188 startDate, endDate, expirationDate, mimeType, title, description,
189 summary, url, layoutUuid, height, width, priority, sync);
190 }
191
192 public static AssetEntryService getService() {
193 if (_service == null) {
194 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
195
196 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
197 "_service");
198 }
199
200 return _service;
201 }
202
203
206 @Deprecated
207 public void setService(AssetEntryService service) {
208 }
209
210 private static AssetEntryService _service;
211 }