1
14
15 package com.liferay.portlet.tags.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class TagsAssetServiceUtil {
40 public static void deleteAsset(long assetId)
41 throws com.liferay.portal.PortalException,
42 com.liferay.portal.SystemException, java.rmi.RemoteException {
43 getService().deleteAsset(assetId);
44 }
45
46 public static com.liferay.portlet.tags.model.TagsAsset getAsset(
47 long assetId)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException, java.rmi.RemoteException {
50 return getService().getAsset(assetId);
51 }
52
53 public static java.lang.String getAssetsRSS(long groupId,
54 long[] classNameIds, long[] entryIds, long[] notEntryIds,
55 boolean andOperator, java.lang.String orderByCol1,
56 java.lang.String orderByCol2, java.lang.String orderByType1,
57 java.lang.String orderByType2, boolean excludeZeroViewCount,
58 java.util.Date publishDate, java.util.Date expirationDate, int max,
59 java.lang.String type, double version, java.lang.String displayStyle,
60 java.lang.String feedURL, java.lang.String entryURL)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException, java.rmi.RemoteException {
63 return getService()
64 .getAssetsRSS(groupId, classNameIds, entryIds, notEntryIds,
65 andOperator, orderByCol1, orderByCol2, orderByType1, orderByType2,
66 excludeZeroViewCount, publishDate, expirationDate, max, type,
67 version, displayStyle, feedURL, entryURL);
68 }
69
70 public static com.liferay.portlet.tags.model.TagsAssetType[] getAssetTypes(
71 java.lang.String languageId) throws java.rmi.RemoteException {
72 return getService().getAssetTypes(languageId);
73 }
74
75 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] getCompanyAssetDisplays(
76 long companyId, int start, int end, java.lang.String languageId)
77 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
78 return getService()
79 .getCompanyAssetDisplays(companyId, start, end, languageId);
80 }
81
82 public static java.util.List<com.liferay.portlet.tags.model.TagsAsset> getCompanyAssets(
83 long companyId, int start, int end)
84 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService().getCompanyAssets(companyId, start, end);
86 }
87
88 public static int getCompanyAssetsCount(long companyId)
89 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
90 return getService().getCompanyAssetsCount(companyId);
91 }
92
93 public static java.lang.String getCompanyAssetsRSS(long companyId, 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, java.rmi.RemoteException {
98 return getService()
99 .getCompanyAssetsRSS(companyId, max, type, version,
100 displayStyle, feedURL, entryURL);
101 }
102
103 public static com.liferay.portlet.tags.model.TagsAsset incrementViewCounter(
104 java.lang.String className, long classPK)
105 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
106 return getService().incrementViewCounter(className, classPK);
107 }
108
109 public static com.liferay.portlet.tags.model.TagsAssetDisplay[] searchAssetDisplays(
110 long companyId, java.lang.String portletId, java.lang.String keywords,
111 java.lang.String languageId, int start, int end)
112 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
113 return getService()
114 .searchAssetDisplays(companyId, portletId, keywords,
115 languageId, start, end);
116 }
117
118 public static int searchAssetDisplaysCount(long companyId,
119 java.lang.String portletId, java.lang.String keywords,
120 java.lang.String languageId)
121 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
122 return getService()
123 .searchAssetDisplaysCount(companyId, portletId, keywords,
124 languageId);
125 }
126
127 public static com.liferay.portlet.tags.model.TagsAsset updateAsset(
128 long groupId, java.lang.String className, long classPK,
129 java.lang.String[] entryNames, java.util.Date startDate,
130 java.util.Date endDate, java.util.Date publishDate,
131 java.util.Date expirationDate, java.lang.String mimeType,
132 java.lang.String title, java.lang.String description,
133 java.lang.String summary, java.lang.String url, int height, int width,
134 java.lang.Integer priority)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException, java.rmi.RemoteException {
137 return getService()
138 .updateAsset(groupId, className, classPK, entryNames,
139 startDate, endDate, publishDate, expirationDate, mimeType, title,
140 description, summary, url, height, width, priority);
141 }
142
143 public static TagsAssetService getService() {
144 if (_service == null) {
145 _service = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName());
146 }
147
148 return _service;
149 }
150
151 public void setService(TagsAssetService service) {
152 _service = service;
153 }
154
155 private static TagsAssetService _service;
156 }