1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.service.impl;
16  
17  import com.liferay.portal.kernel.exception.PortalException;
18  import com.liferay.portal.kernel.exception.SystemException;
19  import com.liferay.portlet.asset.model.AssetTagProperty;
20  import com.liferay.portlet.asset.service.base.AssetTagPropertyServiceBaseImpl;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="AssetTagPropertyServiceImpl.java.html"><b><i>View Source</i></b></a>
26   *
27   * @author Brian Wing Shun Chan
28   */
29  public class AssetTagPropertyServiceImpl
30      extends AssetTagPropertyServiceBaseImpl {
31  
32      public AssetTagProperty addTagProperty(long tagId, String key, String value)
33          throws PortalException, SystemException {
34  
35          return assetTagPropertyLocalService.addTagProperty(
36              getUserId(), tagId, key, value);
37      }
38  
39      public void deleteTagProperty(long tagPropertyId)
40          throws PortalException, SystemException {
41  
42          assetTagPropertyLocalService.deleteTagProperty(tagPropertyId);
43      }
44  
45      public List<AssetTagProperty> getTagProperties(long tagId)
46          throws SystemException {
47  
48          return assetTagPropertyLocalService.getTagProperties(tagId);
49      }
50  
51      public List<AssetTagProperty> getTagPropertyValues(
52              long companyId, String key)
53          throws SystemException {
54  
55          return assetTagPropertyLocalService.getTagPropertyValues(
56              companyId, key);
57      }
58  
59      public AssetTagProperty updateTagProperty(
60              long tagPropertyId, String key, String value)
61          throws PortalException, SystemException {
62  
63          return assetTagPropertyLocalService.updateTagProperty(
64              tagPropertyId, key, value);
65      }
66  
67  }