1
22
23 package com.liferay.portlet.tags.service.impl;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.service.impl.PrincipalBean;
28 import com.liferay.portlet.tags.model.TagsAsset;
29 import com.liferay.portlet.tags.model.TagsAssetDisplay;
30 import com.liferay.portlet.tags.model.TagsAssetType;
31 import com.liferay.portlet.tags.service.TagsAssetLocalServiceUtil;
32 import com.liferay.portlet.tags.service.TagsAssetService;
33
34 import java.util.Date;
35 import java.util.List;
36
37
43 public class TagsAssetServiceImpl
44 extends PrincipalBean implements TagsAssetService {
45
46 public void deleteAsset(long assetId)
47 throws PortalException, SystemException {
48
49 TagsAssetLocalServiceUtil.deleteAsset(assetId);
50 }
51
52 public TagsAsset getAsset(long assetId)
53 throws PortalException, SystemException {
54
55 return TagsAssetLocalServiceUtil.getAsset(assetId);
56 }
57
58 public TagsAssetType[] getAssetTypes(String languageId) {
59 return TagsAssetLocalServiceUtil.getAssetTypes(languageId);
60 }
61
62 public TagsAssetDisplay[] getCompanyAssetDisplays(
63 long companyId, int begin, int end, String languageId)
64 throws PortalException, SystemException {
65
66 return TagsAssetLocalServiceUtil.getCompanyAssetDisplays(
67 companyId, begin, end, languageId);
68 }
69
70 public List getCompanyAssets(long companyId, int begin, int end)
71 throws SystemException {
72
73 return TagsAssetLocalServiceUtil.getCompanyAssets(
74 companyId, begin, end);
75 }
76
77 public int getCompanyAssetsCount(long companyId) throws SystemException {
78 return TagsAssetLocalServiceUtil.getCompanyAssetsCount(companyId);
79 }
80
81 public TagsAssetDisplay[] searchAssetDisplays(
82 long companyId, String portletId, String keywords,
83 String languageId, int begin, int end)
84 throws PortalException, SystemException {
85
86 return TagsAssetLocalServiceUtil.searchAssetDisplays(
87 companyId, portletId, keywords, languageId, begin, end);
88 }
89
90 public int searchAssetDisplaysCount(
91 long companyId, String portletId, String keywords,
92 String languageId)
93 throws SystemException {
94
95 return TagsAssetLocalServiceUtil.searchAssetDisplaysCount(
96 companyId, portletId, keywords, languageId);
97 }
98
99 public TagsAsset updateAsset(
100 String className, long classPK, String[] entryNames, Date startDate,
101 Date endDate, Date publishDate, Date expirationDate,
102 String mimeType, String title, String description, String summary,
103 String url, int height, int width)
104 throws PortalException, SystemException {
105
106 return TagsAssetLocalServiceUtil.updateAsset(
107 getUserId(), className, classPK, entryNames, startDate, endDate,
108 publishDate, expirationDate, mimeType, title, description, summary,
109 url, height, width);
110 }
111
112 }