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