001
014
015 package com.liferay.portlet.asset.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class AssetEntryServiceUtil {
033 public static void deleteEntry(long entryId)
034 throws com.liferay.portal.kernel.exception.PortalException,
035 com.liferay.portal.kernel.exception.SystemException {
036 getService().deleteEntry(entryId);
037 }
038
039 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getCompanyEntries(
040 long companyId, int start, int end)
041 throws com.liferay.portal.kernel.exception.SystemException {
042 return getService().getCompanyEntries(companyId, start, end);
043 }
044
045 public static int getCompanyEntriesCount(long companyId)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().getCompanyEntriesCount(companyId);
048 }
049
050 public static java.lang.String getCompanyEntriesRSS(long companyId,
051 int max, java.lang.String type, double version,
052 java.lang.String displayStyle, java.lang.String feedURL,
053 java.lang.String tagURL)
054 throws com.liferay.portal.kernel.exception.PortalException,
055 com.liferay.portal.kernel.exception.SystemException {
056 return getService()
057 .getCompanyEntriesRSS(companyId, max, type, version,
058 displayStyle, feedURL, tagURL);
059 }
060
061 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] getCompanyEntryDisplays(
062 long companyId, int start, int end, java.lang.String languageId)
063 throws com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .getCompanyEntryDisplays(companyId, start, end, languageId);
066 }
067
068 public static java.util.List<com.liferay.portlet.asset.model.AssetEntry> getEntries(
069 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException {
072 return getService().getEntries(entryQuery);
073 }
074
075 public static int getEntriesCount(
076 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 return getService().getEntriesCount(entryQuery);
080 }
081
082 public static java.lang.String getEntriesRSS(
083 com.liferay.portlet.asset.service.persistence.AssetEntryQuery entryQuery,
084 java.lang.String name, java.lang.String type, double version,
085 java.lang.String displayStyle, java.lang.String feedURL,
086 java.lang.String tagURL)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 return getService()
090 .getEntriesRSS(entryQuery, name, type, version,
091 displayStyle, feedURL, tagURL);
092 }
093
094 public static com.liferay.portlet.asset.model.AssetEntry getEntry(
095 long entryId)
096 throws com.liferay.portal.kernel.exception.PortalException,
097 com.liferay.portal.kernel.exception.SystemException {
098 return getService().getEntry(entryId);
099 }
100
101 public static void incrementViewCounter(java.lang.String className,
102 long classPK)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 getService().incrementViewCounter(className, classPK);
106 }
107
108 public static com.liferay.portlet.asset.model.AssetEntryDisplay[] searchEntryDisplays(
109 long companyId, java.lang.String portletId, java.lang.String keywords,
110 java.lang.String languageId, int start, int end)
111 throws com.liferay.portal.kernel.exception.SystemException {
112 return getService()
113 .searchEntryDisplays(companyId, portletId, keywords,
114 languageId, start, end);
115 }
116
117 public static int searchEntryDisplaysCount(long companyId,
118 java.lang.String portletId, java.lang.String keywords,
119 java.lang.String languageId)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService()
122 .searchEntryDisplaysCount(companyId, portletId, keywords,
123 languageId);
124 }
125
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[] 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, int height, int width,
134 java.lang.Integer priority, boolean sync)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 return getService()
138 .updateEntry(groupId, className, classPK, classUuid,
139 categoryIds, tagNames, visible, startDate, endDate, publishDate,
140 expirationDate, mimeType, title, description, summary, url, height,
141 width, priority, sync);
142 }
143
144 public static AssetEntryService getService() {
145 if (_service == null) {
146 _service = (AssetEntryService)PortalBeanLocatorUtil.locate(AssetEntryService.class.getName());
147 }
148
149 return _service;
150 }
151
152 public void setService(AssetEntryService service) {
153 _service = service;
154 }
155
156 private static AssetEntryService _service;
157 }