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