1
22
23 package com.liferay.portlet.messageboards.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
54 @Transactional(rollbackFor = {
55 PortalException.class, SystemException.class})
56 public interface MBCategoryService {
57 public com.liferay.portlet.messageboards.model.MBCategory addCategory(
58 long parentCategoryId, java.lang.String name,
59 java.lang.String description, java.lang.String emailAddress,
60 java.lang.String inProtocol, java.lang.String inServerName,
61 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
62 java.lang.String inPassword, int inReadInterval,
63 java.lang.String outEmailAddress, boolean outCustom,
64 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
65 java.lang.String outUserName, java.lang.String outPassword,
66 boolean mailingListActive,
67 com.liferay.portal.service.ServiceContext serviceContext)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException;
70
71 public void deleteCategory(long categoryId)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.messageboards.model.MBCategory getCategory(
77 long categoryId)
78 throws com.liferay.portal.PortalException,
79 com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public java.util.List<com.liferay.portlet.messageboards.model.MBCategory> getCategories(
83 long groupId, long parentCategoryId, int start, int end)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getCategoriesCount(long groupId, long parentCategoryId)
89 throws com.liferay.portal.SystemException;
90
91 public void subscribeCategory(long categoryId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException;
94
95 public void unsubscribeCategory(long categoryId)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.messageboards.model.MBCategory updateCategory(
100 long categoryId, long parentCategoryId, java.lang.String name,
101 java.lang.String description, java.lang.String emailAddress,
102 java.lang.String inProtocol, java.lang.String inServerName,
103 int inServerPort, boolean inUseSSL, java.lang.String inUserName,
104 java.lang.String inPassword, int inReadInterval,
105 java.lang.String outEmailAddress, boolean outCustom,
106 java.lang.String outServerName, int outServerPort, boolean outUseSSL,
107 java.lang.String outUserName, java.lang.String outPassword,
108 boolean mailingListActive, boolean mergeWithParentCategory)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111 }