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;
16  
17  
18  /**
19   * <a href="AssetCategoryServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link AssetCategoryService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       AssetCategoryService
32   * @generated
33   */
34  public class AssetCategoryServiceWrapper implements AssetCategoryService {
35      public AssetCategoryServiceWrapper(
36          AssetCategoryService assetCategoryService) {
37          _assetCategoryService = assetCategoryService;
38      }
39  
40      public com.liferay.portlet.asset.model.AssetCategory addCategory(
41          long parentCategoryId,
42          java.util.Map<java.util.Locale, java.lang.String> titleMap,
43          long vocabularyId, java.lang.String[] categoryProperties,
44          com.liferay.portal.service.ServiceContext serviceContext)
45          throws com.liferay.portal.kernel.exception.PortalException,
46              com.liferay.portal.kernel.exception.SystemException {
47          return _assetCategoryService.addCategory(parentCategoryId, titleMap,
48              vocabularyId, categoryProperties, serviceContext);
49      }
50  
51      public void deleteCategory(long categoryId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _assetCategoryService.deleteCategory(categoryId);
55      }
56  
57      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(
58          java.lang.String className, long classPK)
59          throws com.liferay.portal.kernel.exception.PortalException,
60              com.liferay.portal.kernel.exception.SystemException {
61          return _assetCategoryService.getCategories(className, classPK);
62      }
63  
64      public com.liferay.portlet.asset.model.AssetCategory getCategory(
65          long categoryId)
66          throws com.liferay.portal.kernel.exception.PortalException,
67              com.liferay.portal.kernel.exception.SystemException {
68          return _assetCategoryService.getCategory(categoryId);
69      }
70  
71      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(
72          long parentCategoryId, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException {
76          return _assetCategoryService.getChildCategories(parentCategoryId,
77              start, end, obc);
78      }
79  
80      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(
81          long vocabularyId, int start, int end,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.kernel.exception.PortalException,
84              com.liferay.portal.kernel.exception.SystemException {
85          return _assetCategoryService.getVocabularyCategories(vocabularyId,
86              start, end, obc);
87      }
88  
89      public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(
90          long vocabularyId, int start, int end,
91          com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.kernel.exception.PortalException,
93              com.liferay.portal.kernel.exception.SystemException {
94          return _assetCategoryService.getVocabularyRootCategories(vocabularyId,
95              start, end, obc);
96      }
97  
98      public com.liferay.portal.kernel.json.JSONArray search(long groupId,
99          java.lang.String name, java.lang.String[] categoryProperties,
100         int start, int end)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return _assetCategoryService.search(groupId, name, categoryProperties,
103             start, end);
104     }
105 
106     public com.liferay.portlet.asset.model.AssetCategory updateCategory(
107         long categoryId, long parentCategoryId,
108         java.util.Map<java.util.Locale, java.lang.String> titleMap,
109         long vocabularyId, java.lang.String[] categoryProperties,
110         com.liferay.portal.service.ServiceContext serviceContext)
111         throws com.liferay.portal.kernel.exception.PortalException,
112             com.liferay.portal.kernel.exception.SystemException {
113         return _assetCategoryService.updateCategory(categoryId,
114             parentCategoryId, titleMap, vocabularyId, categoryProperties,
115             serviceContext);
116     }
117 
118     public AssetCategoryService getWrappedAssetCategoryService() {
119         return _assetCategoryService;
120     }
121 
122     private AssetCategoryService _assetCategoryService;
123 }