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 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
050 long companyId, int start, int end) {
051 return getService().getCompanyEntries(companyId, start, end);
052 }
053
054 public static int getCompanyEntriesCount(long companyId) {
055 return getService().getCompanyEntriesCount(companyId);
056 }
057
058 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
059 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService().getEntries(entryQuery);
062 }
063
064 public static int getEntriesCount(
065 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService().getEntriesCount(entryQuery);
068 }
069
070 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
071 long entryId)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 return getService().getEntry(entryId);
074 }
075
076
081 public static java.lang.String getOSGiServiceIdentifier() {
082 return getService().getOSGiServiceIdentifier();
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
097 @Deprecated
098 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
099 long groupId, java.lang.String className, long classPK,
100 java.lang.String classUuid, long classTypeId, long[] categoryIds,
101 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
102 java.util.Date endDate, java.util.Date expirationDate,
103 java.lang.String mimeType, java.lang.String title,
104 java.lang.String description, java.lang.String summary,
105 java.lang.String url, java.lang.String layoutUuid, int height,
106 int width, java.lang.Integer priority, boolean sync)
107 throws com.liferay.portal.kernel.exception.PortalException {
108 return getService()
109 .updateEntry(groupId, className, classPK, classUuid,
110 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
111 expirationDate, mimeType, title, description, summary, url,
112 layoutUuid, height, width, priority, sync);
113 }
114
115
121 @Deprecated
122 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
123 long groupId, java.lang.String className, long classPK,
124 java.lang.String classUuid, long classTypeId, long[] categoryIds,
125 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
126 java.util.Date endDate, java.util.Date publishDate,
127 java.util.Date expirationDate, java.lang.String mimeType,
128 java.lang.String title, java.lang.String description,
129 java.lang.String summary, java.lang.String url,
130 java.lang.String layoutUuid, int height, int width,
131 java.lang.Integer priority, boolean sync)
132 throws com.liferay.portal.kernel.exception.PortalException {
133 return getService()
134 .updateEntry(groupId, className, classPK, classUuid,
135 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
136 publishDate, expirationDate, mimeType, title, description, summary,
137 url, layoutUuid, height, width, priority, sync);
138 }
139
140 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
141 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
142 java.lang.String className, long classPK, java.lang.String classUuid,
143 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
144 boolean visible, java.util.Date startDate, java.util.Date endDate,
145 java.util.Date expirationDate, java.lang.String mimeType,
146 java.lang.String title, java.lang.String description,
147 java.lang.String summary, java.lang.String url,
148 java.lang.String layoutUuid, int height, int width,
149 java.lang.Double priority)
150 throws com.liferay.portal.kernel.exception.PortalException {
151 return getService()
152 .updateEntry(groupId, createDate, modifiedDate, className,
153 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
154 startDate, endDate, expirationDate, mimeType, title, description,
155 summary, url, layoutUuid, height, width, priority);
156 }
157
158
164 @Deprecated
165 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
166 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
167 java.lang.String className, long classPK, java.lang.String classUuid,
168 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
169 boolean visible, java.util.Date startDate, java.util.Date endDate,
170 java.util.Date expirationDate, java.lang.String mimeType,
171 java.lang.String title, java.lang.String description,
172 java.lang.String summary, java.lang.String url,
173 java.lang.String layoutUuid, int height, int width,
174 java.lang.Integer priority, boolean sync)
175 throws com.liferay.portal.kernel.exception.PortalException {
176 return getService()
177 .updateEntry(groupId, createDate, modifiedDate, className,
178 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
179 startDate, endDate, expirationDate, mimeType, title, description,
180 summary, url, layoutUuid, height, width, priority, sync);
181 }
182
183 public static AssetEntryService getService() {
184 if (_service == null) {
185 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
186
187 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
188 "_service");
189 }
190
191 return _service;
192 }
193
194 private static AssetEntryService _service;
195 }