1
14
15 package com.liferay.portlet.messageboards.service;
16
17
18
34 public class MBCategoryServiceWrapper implements MBCategoryService {
35 public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
36 _mbCategoryService = mbCategoryService;
37 }
38
39 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
40 long plid, long parentCategoryId, java.lang.String name,
41 java.lang.String description, boolean addCommunityPermissions,
42 boolean addGuestPermissions)
43 throws com.liferay.portal.PortalException,
44 com.liferay.portal.SystemException, java.rmi.RemoteException {
45 return _mbCategoryService.addCategory(plid, parentCategoryId, name,
46 description, addCommunityPermissions, addGuestPermissions);
47 }
48
49 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
50 long plid, long parentCategoryId, java.lang.String name,
51 java.lang.String description, java.lang.String[] communityPermissions,
52 java.lang.String[] guestPermissions)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return _mbCategoryService.addCategory(plid, parentCategoryId, name,
56 description, communityPermissions, guestPermissions);
57 }
58
59 public void deleteCategory(long categoryId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException, java.rmi.RemoteException {
62 _mbCategoryService.deleteCategory(categoryId);
63 }
64
65 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
66 long groupId, long parentCategoryId, int start, int end)
67 throws com.liferay.portal.PortalException,
68 com.liferay.portal.SystemException, java.rmi.RemoteException {
69 return _mbCategoryService.getCategories(groupId, parentCategoryId,
70 start, end);
71 }
72
73 public int getCategoriesCount(long groupId, long parentCategoryId)
74 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
75 return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
76 }
77
78 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
79 long categoryId)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException, java.rmi.RemoteException {
82 return _mbCategoryService.getCategory(categoryId);
83 }
84
85 public void subscribeCategory(long categoryId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 _mbCategoryService.subscribeCategory(categoryId);
89 }
90
91 public void unsubscribeCategory(long categoryId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 _mbCategoryService.unsubscribeCategory(categoryId);
95 }
96
97 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
98 long categoryId, long parentCategoryId, java.lang.String name,
99 java.lang.String description, boolean mergeWithParentCategory)
100 throws com.liferay.portal.PortalException,
101 com.liferay.portal.SystemException, java.rmi.RemoteException {
102 return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
103 name, description, mergeWithParentCategory);
104 }
105
106 public MBCategoryService getWrappedMBCategoryService() {
107 return _mbCategoryService;
108 }
109
110 private MBCategoryService _mbCategoryService;
111 }