001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class AssetEntryServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
059 long companyId, int start, int end)
060 throws com.liferay.portal.kernel.exception.SystemException {
061 return getService().getCompanyEntries(companyId, start, end);
062 }
063
064 public static int getCompanyEntriesCount(long companyId)
065 throws com.liferay.portal.kernel.exception.SystemException {
066 return getService().getCompanyEntriesCount(companyId);
067 }
068
069 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
070 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 return getService().getEntries(entryQuery);
074 }
075
076 public static int getEntriesCount(
077 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getEntriesCount(entryQuery);
081 }
082
083 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
084 long entryId)
085 throws com.liferay.portal.kernel.exception.PortalException,
086 com.liferay.portal.kernel.exception.SystemException {
087 return getService().getEntry(entryId);
088 }
089
090 public static com.liferay.portlet.asset.model.AssetEntry incrementViewCounter(
091 java.lang.String className, long classPK)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException {
094 return getService().incrementViewCounter(className, classPK);
095 }
096
097 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
098 long groupId, java.util.Date createDate, java.util.Date modifiedDate,
099 java.lang.String className, long classPK, java.lang.String classUuid,
100 long classTypeId, long[] categoryIds, java.lang.String[] tagNames,
101 boolean visible, java.util.Date startDate, java.util.Date endDate,
102 java.util.Date expirationDate, java.lang.String mimeType,
103 java.lang.String title, java.lang.String description,
104 java.lang.String summary, java.lang.String url,
105 java.lang.String layoutUuid, int height, int width,
106 java.lang.Integer priority, boolean sync)
107 throws com.liferay.portal.kernel.exception.PortalException,
108 com.liferay.portal.kernel.exception.SystemException {
109 return getService()
110 .updateEntry(groupId, createDate, modifiedDate, className,
111 classPK, classUuid, classTypeId, categoryIds, tagNames, visible,
112 startDate, endDate, expirationDate, mimeType, title, description,
113 summary, url, layoutUuid, height, width, priority, sync);
114 }
115
116
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 com.liferay.portal.kernel.exception.SystemException {
134 return getService()
135 .updateEntry(groupId, className, classPK, classUuid,
136 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
137 publishDate, expirationDate, mimeType, title, description, summary,
138 url, layoutUuid, height, width, priority, sync);
139 }
140
141
147 public static com.liferay.portlet.asset.model.AssetEntry updateEntry(
148 long groupId, java.lang.String className, long classPK,
149 java.lang.String classUuid, long classTypeId, long[] categoryIds,
150 java.lang.String[] tagNames, boolean visible, java.util.Date startDate,
151 java.util.Date endDate, java.util.Date expirationDate,
152 java.lang.String mimeType, java.lang.String title,
153 java.lang.String description, java.lang.String summary,
154 java.lang.String url, java.lang.String layoutUuid, int height,
155 int width, java.lang.Integer priority, boolean sync)
156 throws com.liferay.portal.kernel.exception.PortalException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return getService()
159 .updateEntry(groupId, className, classPK, classUuid,
160 classTypeId, categoryIds, tagNames, visible, startDate, endDate,
161 expirationDate, mimeType, title, description, summary, url,
162 layoutUuid, height, width, priority, sync);
163 }
164
165 public static AssetEntryService getService() {
166 if (_service == null) {
167 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
168
169 ReferenceRegistry.registerReference(AssetEntryServiceUtil.class,
170 "_service");
171 }
172
173 return _service;
174 }
175
176
179 public void setService(AssetEntryService service) {
180 }
181
182 private static AssetEntryService _service;
183 }