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, java.rmi.RemoteException {
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, java.rmi.RemoteException {
57 return getService().getAsset(assetId);
58 }
59
60 public static java.lang.String getAssetsRSS(long groupId,
61 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 max,
66 java.lang.String type, double version, java.lang.String displayStyle,
67 java.lang.String feedURL, java.lang.String entryURL)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 return getService()
71 .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
72 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
73 excludeZeroViewCount, publishDate, expirationDate, max, type,
74 version, displayStyle, feedURL, entryURL);
75 }
76
77 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
78 java.lang.String languageId) throws java.rmi.RemoteException {
79 return getService().getAssetTypes(languageId);
80 }
81
82 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
83 long companyId, int start, int end, java.lang.String languageId)
84 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService()
86 .getCompanyAssetDisplays(companyId, start, end, languageId);
87 }
88
89 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
90 long companyId, int start, int end)
91 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
92 return getService().getCompanyAssets(companyId, start, end);
93 }
94
95 public static int getCompanyAssetsCount(long companyId)
96 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
97 return getService().getCompanyAssetsCount(companyId);
98 }
99
100 public static java.lang.String getCompanyAssetsRSS(long companyId, int max,
101 java.lang.String type, double version, java.lang.String displayStyle,
102 java.lang.String feedURL, java.lang.String entryURL)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException, java.rmi.RemoteException {
105 return getService()
106 .getCompanyAssetsRSS(companyId, max, type, version,
107 displayStyle, feedURL, entryURL);
108 }
109
110 public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
111 java.lang.String className, long classPK)
112 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
113 return getService().incrementViewCounter(className, classPK);
114 }
115
116 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
117 long companyId, java.lang.String portletId, java.lang.String keywords,
118 java.lang.String languageId, int start, int end)
119 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
120 return getService()
121 .searchAssetDisplays(companyId, portletId, keywords,
122 languageId, start, end);
123 }
124
125 public static int searchAssetDisplaysCount(long companyId,
126 java.lang.String portletId, java.lang.String keywords,
127 java.lang.String languageId)
128 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
129 return getService()
130 .searchAssetDisplaysCount(companyId, portletId, keywords,
131 languageId);
132 }
133
134 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
135 long groupId, java.lang.String className, long classPK,
136 java.lang.String[] entryNames, java.util.Date startDate,
137 java.util.Date endDate, java.util.Date publishDate,
138 java.util.Date expirationDate, java.lang.String mimeType,
139 java.lang.String title, java.lang.String description,
140 java.lang.String summary, java.lang.String url, int height, int width,
141 java.lang.Integer priority)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException, java.rmi.RemoteException {
144 return getService()
145 .updateAsset(groupId, className, classPK, entryNames,
146 startDate, endDate, publishDate, expirationDate, mimeType, title,
147 description, summary, url, height, width, priority);
148 }
149
150 public static TagsAssetService getService() {
151 if (_service == null) {
152 throw new RuntimeException("TagsAssetService is not set");
153 }
154
155 return _service;
156 }
157
158 public void setService(TagsAssetService service) {
159 _service = service;
160 }
161
162 private static TagsAssetService _service;
163 }