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
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
054 long companyId, int start, int end) {
055 return getService().getCompanyEntries(companyId, start, end);
056 }
057
058 public static int getCompanyEntriesCount(long companyId) {
059 return getService().getCompanyEntriesCount(companyId);
060 }
061
062 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
063 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 return getService().getEntries(entryQuery);
066 }
067
068 public static int getEntriesCount(
069 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
070 throws com.liferay.portal.kernel.exception.PortalException {
071 return getService().getEntriesCount(entryQuery);
072 }
073
074 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
075 long entryId)
076 throws com.liferay.portal.kernel.exception.PortalException {
077 return getService().getEntry(entryId);
078 }
079
080 public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
081 java.lang.String className, long classPK)
082 throws com.liferay.portal.kernel.exception.PortalException {
083 return getService().incrementViewCounter(className, classPK);
084 }
085
086
091 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
092 getService().setBeanIdentifier(beanIdentifier);
093 }
094
095
101 @Deprecated
102 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
103 long groupId, java.lang.String className, long classPK,
104 java.lang.String classUuid, long classTypeId, long[] categoryIds,
105 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
106 java.util.Date endDate, java.util.Date expirationDate,
107 java.lang.String mimeType, java.lang.String title,
108 java.lang.String description, java.lang.String summary,
109 java.lang.String url, java.lang.String layoutUuid, int height,
110 int width, java.lang.Integer priority, boolean sync)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 return getService()
113 .updateEntry(groupId, className, classPK, classUuid,
114 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
115 expirationDate, mimeType, title, description, summary, url,
116 layoutUuid, height, width, priority, sync);
117 }
118
119
125 @Deprecated
126 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
127 long groupId, java.lang.String className, long classPK,
128 java.lang.String classUuid, long classTypeId, long[] categoryIds,
129 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
130 java.util.Date endDate, java.util.Date publishDate,
131 java.util.Date expirationDate, java.lang.String mimeType,
132 java.lang.String title, java.lang.String description,
133 java.lang.String summary, java.lang.String url,
134 java.lang.String layoutUuid, int height, int width,
135 java.lang.Integer priority, boolean sync)
136 throws com.liferay.portal.kernel.exception.PortalException {
137 return getService()
138 .updateEntry(groupId, className, classPK, classUuid,
139 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
140 publishDate, expirationDate, mimeType, title, description, summary,
141 url, layoutUuid, height, width, priority, sync);
142 }
143
144 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
145 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
146 java.lang.String className, long classPK, java.lang.String classUuid,
147 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
148 boolean visible, java.util.Date startDate, java.util.Date endDate,
149 java.util.Date expirationDate, java.lang.String mimeType,
150 java.lang.String title, java.lang.String description,
151 java.lang.String summary, java.lang.String url,
152 java.lang.String layoutUuid, int height, int width,
153 java.lang.Integer priority, boolean sync)
154 throws com.liferay.portal.kernel.exception.PortalException {
155 return getService()
156 .updateEntry(groupId, createDate, modifiedDate, className,
157 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
158 startDate, endDate, expirationDate, mimeType, title, description,
159 summary, url, layoutUuid, height, width, priority, sync);
160 }
161
162 public static AssetEntryService getService() {
163 if (_service == null) {
164 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
165
166 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
167 "_service");
168 }
169
170 return _service;
171 }
172
173
176 @Deprecated
177 public void setService(AssetEntryService service) {
178 }
179
180 private static AssetEntryService _service;
181 }