001
014
015 package com.liferay.asset.kernel.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.asset.kernel.model.AssetEntry fetchEntry(
044 long entryId)
045 throws com.liferay.portal.kernel.exception.PortalException {
046 return getService().fetchEntry(entryId);
047 }
048
049 public static com.liferay.asset.kernel.model.AssetEntry getEntry(
050 long entryId)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 return getService().getEntry(entryId);
053 }
054
055 public static com.liferay.asset.kernel.model.AssetEntry incrementViewCounter(
056 java.lang.String className, long classPK)
057 throws com.liferay.portal.kernel.exception.PortalException {
058 return getService().incrementViewCounter(className, classPK);
059 }
060
061
067 @Deprecated
068 public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
069 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
070 java.lang.String className, long classPK, java.lang.String classUuid,
071 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
072 boolean listable, boolean visible, java.util.Date startDate,
073 java.util.Date endDate, java.util.Date expirationDate,
074 java.lang.String mimeType, java.lang.String title,
075 java.lang.String description, java.lang.String summary,
076 java.lang.String url, java.lang.String layoutUuid, int height,
077 int width, java.lang.Double priority)
078 throws com.liferay.portal.kernel.exception.PortalException {
079 return getService()
080 .updateEntry(groupId, createDate, modifiedDate, className,
081 classPK, classUuid, classTypeId, categoryIds, tagNames, listable,
082 visible, startDate, endDate, expirationDate, mimeType, title,
083 description, summary, url, layoutUuid, height, width, priority);
084 }
085
086 public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
087 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
088 java.lang.String className, long classPK, java.lang.String classUuid,
089 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
090 boolean listable, boolean visible, java.util.Date startDate,
091 java.util.Date endDate, java.util.Date publishDate,
092 java.util.Date expirationDate, java.lang.String mimeType,
093 java.lang.String title, java.lang.String description,
094 java.lang.String summary, java.lang.String url,
095 java.lang.String layoutUuid, int height, int width,
096 java.lang.Double priority)
097 throws com.liferay.portal.kernel.exception.PortalException {
098 return getService()
099 .updateEntry(groupId, createDate, modifiedDate, className,
100 classPK, classUuid, classTypeId, categoryIds, tagNames, listable,
101 visible, startDate, endDate, publishDate, expirationDate, mimeType,
102 title, description, summary, url, layoutUuid, height, width,
103 priority);
104 }
105
106
112 @Deprecated
113 public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
114 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
115 java.lang.String className, long classPK, java.lang.String classUuid,
116 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
117 boolean visible, java.util.Date startDate, java.util.Date endDate,
118 java.util.Date expirationDate, java.lang.String mimeType,
119 java.lang.String title, java.lang.String description,
120 java.lang.String summary, java.lang.String url,
121 java.lang.String layoutUuid, int height, int width,
122 java.lang.Integer priority, boolean sync)
123 throws com.liferay.portal.kernel.exception.PortalException {
124 return getService()
125 .updateEntry(groupId, createDate, modifiedDate, className,
126 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
127 startDate, endDate, expirationDate, mimeType, title, description,
128 summary, url, layoutUuid, height, width, priority, sync);
129 }
130
131 public static int getCompanyEntriesCount(long companyId) {
132 return getService().getCompanyEntriesCount(companyId);
133 }
134
135 public static int getEntriesCount(
136 com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
137 throws com.liferay.portal.kernel.exception.PortalException {
138 return getService().getEntriesCount(entryQuery);
139 }
140
141
146 public static java.lang.String getOSGiServiceIdentifier() {
147 return getService().getOSGiServiceIdentifier();
148 }
149
150 public static java.util.List<com.liferay.asset.kernel.model.AssetEntry> getCompanyEntries(
151 long companyId, int start, int end) {
152 return getService().getCompanyEntries(companyId, start, end);
153 }
154
155 public static java.util.List<com.liferay.asset.kernel.model.AssetEntry> getEntries(
156 com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
157 throws com.liferay.portal.kernel.exception.PortalException {
158 return getService().getEntries(entryQuery);
159 }
160
161 public static AssetEntryService getService() {
162 if (_service == null) {
163 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
164
165 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
166 "_service");
167 }
168
169 return _service;
170 }
171
172 private static AssetEntryService _service;
173 }