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.AssetCategoryProperty;
20  import com.liferay.portlet.asset.service.base.AssetCategoryPropertyServiceBaseImpl;
21  
22  import java.util.List;
23  
24  /**
25   * <a href="AssetCategoryPropertyServiceImpl.java.html"><b><i>View Source</i>
26   * </b></a>
27   *
28   * @author Brian Wing Shun Chan
29   * @author Jorge Ferrer
30   */
31  public class AssetCategoryPropertyServiceImpl
32      extends AssetCategoryPropertyServiceBaseImpl {
33  
34      public AssetCategoryProperty addCategoryProperty(
35              long entryId, String key, String value)
36          throws PortalException, SystemException {
37  
38          return assetCategoryPropertyLocalService.addCategoryProperty(
39              getUserId(), entryId, key, value);
40      }
41  
42      public void deleteCategoryProperty(long categoryPropertyId)
43          throws PortalException, SystemException {
44  
45          assetCategoryPropertyLocalService.deleteCategoryProperty(
46              categoryPropertyId);
47      }
48  
49      public List<AssetCategoryProperty> getCategoryProperties(long entryId)
50          throws SystemException {
51  
52          return assetCategoryPropertyLocalService.getCategoryProperties(entryId);
53      }
54  
55      public List<AssetCategoryProperty> getCategoryPropertyValues(
56              long companyId, String key)
57          throws SystemException {
58  
59          return assetCategoryPropertyLocalService.getCategoryPropertyValues(
60              companyId, key);
61      }
62  
63      public AssetCategoryProperty updateCategoryProperty(
64              long categoryPropertyId, String key, String value)
65          throws PortalException, SystemException {
66  
67          return assetCategoryPropertyLocalService.updateCategoryProperty(
68              categoryPropertyId, key, value);
69      }
70  
71  }