001
014
015 package com.liferay.portlet.messageboards.service;
016
017
018
027 public class MBCategoryServiceWrapper implements MBCategoryService {
028 public MBCategoryServiceWrapper(MBCategoryService mbCategoryService) {
029 _mbCategoryService = mbCategoryService;
030 }
031
032 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
033 long parentCategoryId, java.lang.String name,
034 java.lang.String description, java.lang.String emailAddress,
035 java.lang.String inProtocol, java.lang.String inServerName,
036 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
037 java.lang.String inPassword, int inReadInterval,
038 java.lang.String outEmailAddress, boolean outCustom,
039 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
040 java.lang.String outUserName, java.lang.String outPassword,
041 boolean mailingListActive,
042 com.liferay.portal.service.ServiceContext serviceContext)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 return _mbCategoryService.addCategory(parentCategoryId, name,
046 description, emailAddress, inProtocol, inServerName, inServerPort,
047 inUseSSL, inUserName, inPassword, inReadInterval, outEmailAddress,
048 outCustom, outServerName, outServerPort, outUseSSL, outUserName,
049 outPassword, mailingListActive, serviceContext);
050 }
051
052 public void deleteCategory(long groupId, long categoryId)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException {
055 _mbCategoryService.deleteCategory(groupId, categoryId);
056 }
057
058 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
059 long groupId, long parentCategoryId, int start, int end)
060 throws com.liferay.portal.kernel.exception.SystemException {
061 return _mbCategoryService.getCategories(groupId, parentCategoryId,
062 start, end);
063 }
064
065 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
066 long groupId, long[] parentCategoryIds, int start, int end)
067 throws com.liferay.portal.kernel.exception.SystemException {
068 return _mbCategoryService.getCategories(groupId, parentCategoryIds,
069 start, end);
070 }
071
072 public int getCategoriesCount(long groupId, long parentCategoryId)
073 throws com.liferay.portal.kernel.exception.SystemException {
074 return _mbCategoryService.getCategoriesCount(groupId, parentCategoryId);
075 }
076
077 public int getCategoriesCount(long groupId, long[] parentCategoryIds)
078 throws com.liferay.portal.kernel.exception.SystemException {
079 return _mbCategoryService.getCategoriesCount(groupId, parentCategoryIds);
080 }
081
082 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
083 long categoryId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return _mbCategoryService.getCategory(categoryId);
087 }
088
089 public long[] getCategoryIds(long groupId, long categoryId)
090 throws com.liferay.portal.kernel.exception.SystemException {
091 return _mbCategoryService.getCategoryIds(groupId, categoryId);
092 }
093
094 public java.util.List<java.lang.Long> getSubcategoryIds(
095 java.util.List<java.lang.Long> categoryIds, long groupId,
096 long categoryId)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return _mbCategoryService.getSubcategoryIds(categoryIds, groupId,
099 categoryId);
100 }
101
102 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getSubscribedCategories(
103 long groupId, long userId, int start, int end)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return _mbCategoryService.getSubscribedCategories(groupId, userId,
106 start, end);
107 }
108
109 public int getSubscribedCategoriesCount(long groupId, long userId)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return _mbCategoryService.getSubscribedCategoriesCount(groupId, userId);
112 }
113
114 public void subscribeCategory(long groupId, long categoryId)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 _mbCategoryService.subscribeCategory(groupId, categoryId);
118 }
119
120 public void unsubscribeCategory(long groupId, long categoryId)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 _mbCategoryService.unsubscribeCategory(groupId, categoryId);
124 }
125
126 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
127 long categoryId, long parentCategoryId, java.lang.String name,
128 java.lang.String description, java.lang.String emailAddress,
129 java.lang.String inProtocol, java.lang.String inServerName,
130 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
131 java.lang.String inPassword, int inReadInterval,
132 java.lang.String outEmailAddress, boolean outCustom,
133 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
134 java.lang.String outUserName, java.lang.String outPassword,
135 boolean mailingListActive, boolean mergeWithParentCategory,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return _mbCategoryService.updateCategory(categoryId, parentCategoryId,
140 name, description, emailAddress, inProtocol, inServerName,
141 inServerPort, inUseSSL, inUserName, inPassword, inReadInterval,
142 outEmailAddress, outCustom, outServerName, outServerPort,
143 outUseSSL, outUserName, outPassword, mailingListActive,
144 mergeWithParentCategory, serviceContext);
145 }
146
147 public MBCategoryService getWrappedMBCategoryService() {
148 return _mbCategoryService;
149 }
150
151 private MBCategoryService _mbCategoryService;
152 }