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