1
22
23 package com.liferay.portlet.tags.service;
24
25
26
47 public class TagsAssetServiceUtil {
48 public static void deleteAsset(long assetId)
49 throws com.liferay.portal.PortalException,
50 com.liferay.portal.SystemException {
51 getService().deleteAsset(assetId);
52 }
53
54 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
55 long assetId)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException {
58 return getService().getAsset(assetId);
59 }
60
61 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getAssets(
62 long groupId, long[] classNameIds, long[] entryIds, long[] notEntryIds,
63 boolean andOperator, java.lang.String orderByCol1,
64 java.lang.String orderByCol2, java.lang.String orderByType1,
65 java.lang.String orderByType2, boolean excludeZeroViewCount,
66 java.util.Date publishDate, java.util.Date expirationDate, int start,
67 int end)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException {
70 return getService()
71 .getAssets(groupId, classNameIds, entryIds, notEntryIds,
72 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
73 excludeZeroViewCount, publishDate, expirationDate, start, end);
74 }
75
76 public static int getAssetsCount(long groupId, long[] classNameIds,
77 long[] entryIds, long[] notEntryIds, boolean andOperator,
78 boolean excludeZeroViewCount, java.util.Date publishDate,
79 java.util.Date expirationDate)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException {
82 return getService()
83 .getAssetsCount(groupId, classNameIds, entryIds,
84 notEntryIds, andOperator, excludeZeroViewCount, publishDate,
85 expirationDate);
86 }
87
88 public static java.lang.String getAssetsRSS(long groupId,
89 long[] classNameIds, long[] entryIds, long[] notEntryIds,
90 boolean andOperator, java.lang.String orderByCol1,
91 java.lang.String orderByCol2, java.lang.String orderByType1,
92 java.lang.String orderByType2, boolean excludeZeroViewCount,
93 java.util.Date publishDate, java.util.Date expirationDate, int max,
94 java.lang.String type, double version, java.lang.String displayStyle,
95 java.lang.String feedURL, java.lang.String entryURL)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 return getService()
99 .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
100 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
101 excludeZeroViewCount, publishDate, expirationDate, max, type,
102 version, displayStyle, feedURL, entryURL);
103 }
104
105 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
106 java.lang.String languageId) {
107 return getService().getAssetTypes(languageId);
108 }
109
110 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
111 long companyId, int start, int end, java.lang.String languageId)
112 throws com.liferay.portal.SystemException {
113 return getService()
114 .getCompanyAssetDisplays(companyId, start, end, languageId);
115 }
116
117 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
118 long companyId, int start, int end)
119 throws com.liferay.portal.SystemException {
120 return getService().getCompanyAssets(companyId, start, end);
121 }
122
123 public static int getCompanyAssetsCount(long companyId)
124 throws com.liferay.portal.SystemException {
125 return getService().getCompanyAssetsCount(companyId);
126 }
127
128 public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
129 java.lang.String type, double version, java.lang.String displayStyle,
130 java.lang.String feedURL, java.lang.String entryURL)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException {
133 return getService()
134 .getCompanyAssetsRSS(companyId, max, type, version,
135 displayStyle, feedURL, entryURL);
136 }
137
138 public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
139 java.lang.String className, long classPK)
140 throws com.liferay.portal.SystemException {
141 return getService().incrementViewCounter(className, classPK);
142 }
143
144 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
145 long companyId, java.lang.String portletId, java.lang.String keywords,
146 java.lang.String languageId, int start, int end)
147 throws com.liferay.portal.SystemException {
148 return getService()
149 .searchAssetDisplays(companyId, portletId, keywords,
150 languageId, start, end);
151 }
152
153 public static int searchAssetDisplaysCount(long companyId,
154 java.lang.String portletId, java.lang.String keywords,
155 java.lang.String languageId) throws com.liferay.portal.SystemException {
156 return getService()
157 .searchAssetDisplaysCount(companyId, portletId, keywords,
158 languageId);
159 }
160
161 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
162 long groupId, java.lang.String className, long classPK,
163 java.lang.String[] categoryNames, java.lang.String[] entryNames,
164 boolean visible, java.util.Date startDate, java.util.Date endDate,
165 java.util.Date publishDate, java.util.Date expirationDate,
166 java.lang.String mimeType, java.lang.String title,
167 java.lang.String description, java.lang.String summary,
168 java.lang.String url, int height, int width, java.lang.Integer priority)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException {
171 return getService()
172 .updateAsset(groupId, className, classPK, categoryNames,
173 entryNames, visible, startDate, endDate, publishDate,
174 expirationDate, mimeType, title, description, summary, url, height,
175 width, priority);
176 }
177
178 public static TagsAssetService getService() {
179 if (_service == null) {
180 throw new RuntimeException("TagsAssetService is not set");
181 }
182
183 return _service;
184 }
185
186 public void setService(TagsAssetService service) {
187 _service = service;
188 }
189
190 private static TagsAssetService _service;
191 }