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