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