1
22
23 package com.liferay.portlet.messageboards.service;
24
25
26
50 public interface MBThreadLocalService {
51 public com.liferay.portlet.messageboards.model.MBThread addMBThread(
52 com.liferay.portlet.messageboards.model.MBThread mbThread)
53 throws com.liferay.portal.SystemException;
54
55 public com.liferay.portlet.messageboards.model.MBThread createMBThread(
56 long threadId);
57
58 public void deleteMBThread(long threadId)
59 throws com.liferay.portal.SystemException,
60 com.liferay.portal.PortalException;
61
62 public void deleteMBThread(
63 com.liferay.portlet.messageboards.model.MBThread mbThread)
64 throws com.liferay.portal.SystemException;
65
66 public java.util.List<Object> dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72 int end) throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.messageboards.model.MBThread getMBThread(
75 long threadId)
76 throws com.liferay.portal.SystemException,
77 com.liferay.portal.PortalException;
78
79 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getMBThreads(
80 int start, int end) throws com.liferay.portal.SystemException;
81
82 public int getMBThreadsCount() throws com.liferay.portal.SystemException;
83
84 public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
85 com.liferay.portlet.messageboards.model.MBThread mbThread)
86 throws com.liferay.portal.SystemException;
87
88 public void deleteThread(long threadId)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 public void deleteThread(
93 com.liferay.portlet.messageboards.model.MBThread thread)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException;
96
97 public void deleteThreads(long categoryId)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public int getCategoriesThreadsCount(java.util.List<Long> categoryIds)
102 throws com.liferay.portal.SystemException;
103
104 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
105 long groupId, int start, int end)
106 throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
109 long groupId, long userId, int start, int end)
110 throws com.liferay.portal.SystemException;
111
112 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getGroupThreads(
113 long groupId, long userId, boolean subscribed, int start, int end)
114 throws com.liferay.portal.SystemException;
115
116 public int getGroupThreadsCount(long groupId)
117 throws com.liferay.portal.SystemException;
118
119 public int getGroupThreadsCount(long groupId, long userId)
120 throws com.liferay.portal.SystemException;
121
122 public int getGroupThreadsCount(long groupId, long userId,
123 boolean subscribed) throws com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.messageboards.model.MBThread getThread(
126 long threadId)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 public java.util.List<com.liferay.portlet.messageboards.model.MBThread> getThreads(
131 long categoryId, int start, int end)
132 throws com.liferay.portal.SystemException;
133
134 public int getThreadsCount(long categoryId)
135 throws com.liferay.portal.SystemException;
136
137 public boolean hasReadThread(long userId, long threadId)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public com.liferay.portlet.messageboards.model.MBThread moveThread(
142 long categoryId, long threadId)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public com.liferay.portlet.messageboards.model.MBThread splitThread(
147 long messageId, javax.portlet.PortletPreferences prefs,
148 com.liferay.portal.theme.ThemeDisplay themeDisplay)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151
152 public com.liferay.portlet.messageboards.model.MBThread updateThread(
153 long threadId, int viewCount)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156 }