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
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
063 long companyId, int start, int end)
064 throws com.liferay.portal.kernel.exception.SystemException {
065 return getService().getCompanyEntries(companyId, start, end);
066 }
067
068 public static int getCompanyEntriesCount(long companyId)
069 throws com.liferay.portal.kernel.exception.SystemException {
070 return getService().getCompanyEntriesCount(companyId);
071 }
072
073 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
074 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().getEntries(entryQuery);
078 }
079
080 public static int getEntriesCount(
081 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return getService().getEntriesCount(entryQuery);
085 }
086
087 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
088 long entryId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().getEntry(entryId);
092 }
093
094 public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
095 java.lang.String className, long classPK)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().incrementViewCounter(className, classPK);
099 }
100
101 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
102 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
103 java.lang.String className, long classPK, java.lang.String classUuid,
104 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
105 boolean visible, java.util.Date startDate, java.util.Date endDate,
106 java.util.Date expirationDate, java.lang.String mimeType,
107 java.lang.String title, java.lang.String description,
108 java.lang.String summary, java.lang.String url,
109 java.lang.String layoutUuid, int height, int width,
110 java.lang.Integer priority, boolean sync)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException {
113 return getService()
114 .updateEntry(groupId, createDate, modifiedDate, className,
115 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
116 startDate, endDate, expirationDate, mimeType, title, description,
117 summary, url, layoutUuid, height, width, priority, sync);
118 }
119
120
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 com.liferay.portal.kernel.exception.SystemException {
138 return getService()
139 .updateEntry(groupId, className, classPK, classUuid,
140 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
141 publishDate, expirationDate, mimeType, title, description, summary,
142 url, layoutUuid, height, width, priority, sync);
143 }
144
145
151 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
152 long groupId, java.lang.String className, long classPK,
153 java.lang.String classUuid, long classTypeId, long[] categoryIds,
154 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
155 java.util.Date endDate, java.util.Date expirationDate,
156 java.lang.String mimeType, java.lang.String title,
157 java.lang.String description, java.lang.String summary,
158 java.lang.String url, java.lang.String layoutUuid, int height,
159 int width, java.lang.Integer priority, boolean sync)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException {
162 return getService()
163 .updateEntry(groupId, className, classPK, classUuid,
164 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
165 expirationDate, mimeType, title, description, summary, url,
166 layoutUuid, height, width, priority, sync);
167 }
168
169 public static AssetEntryService getService() {
170 if (_service == null) {
171 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
172
173 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
174 "_service");
175 }
176
177 return _service;
178 }
179
180
183 public void setService(AssetEntryService service) {
184 }
185
186 private static AssetEntryService _service;
187 }