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 java.util.List<com.liferay.asset.kernel.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.asset.kernel.model.AssetEntry> getEntries(
059 com.liferay.asset.kernel.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.asset.kernel.service.persistence.AssetEntryQuery entryQuery)
066 throws com.liferay.portal.kernel.exception.PortalException {
067 return getService().getEntriesCount(entryQuery);
068 }
069
070 public static com.liferay.asset.kernel.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.asset.kernel.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 public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
092 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
093 java.lang.String className, long classPK, java.lang.String classUuid,
094 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
095 boolean visible, java.util.Date startDate, java.util.Date endDate,
096 java.util.Date expirationDate, java.lang.String mimeType,
097 java.lang.String title, java.lang.String description,
098 java.lang.String summary, java.lang.String url,
099 java.lang.String layoutUuid, int height, int width,
100 java.lang.Double priority)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 return getService()
103 .updateEntry(groupId, createDate, modifiedDate, className,
104 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
105 startDate, endDate, expirationDate, mimeType, title, description,
106 summary, url, layoutUuid, height, width, priority);
107 }
108
109
115 @Deprecated
116 public static com.liferay.asset.kernel.model.AssetEntry updateEntry(
117 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
118 java.lang.String className, long classPK, java.lang.String classUuid,
119 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
120 boolean visible, java.util.Date startDate, java.util.Date endDate,
121 java.util.Date expirationDate, java.lang.String mimeType,
122 java.lang.String title, java.lang.String description,
123 java.lang.String summary, java.lang.String url,
124 java.lang.String layoutUuid, int height, int width,
125 java.lang.Integer priority, boolean sync)
126 throws com.liferay.portal.kernel.exception.PortalException {
127 return getService()
128 .updateEntry(groupId, createDate, modifiedDate, className,
129 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
130 startDate, endDate, expirationDate, mimeType, title, description,
131 summary, url, layoutUuid, height, width, priority, sync);
132 }
133
134 public static AssetEntryService getService() {
135 if (_service == null) {
136 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
137
138 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
139 "_service");
140 }
141
142 return _service;
143 }
144
145 private static AssetEntryService _service;
146 }