001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.messageboards.service;
022:
023: /**
024: * <a href="MBThreadLocalService.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This interface defines the service. The default implementation is
033: * <code>com.liferay.portlet.messageboards.service.impl.MBThreadLocalServiceImpl</code>.
034: * Modify methods in that class and rerun ServiceBuilder to populate this class
035: * and all other generated classes.
036: * </p>
037: *
038: * <p>
039: * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.messageboards.service.MBThreadLocalServiceFactory
045: * @see com.liferay.portlet.messageboards.service.MBThreadLocalServiceUtil
046: *
047: */
048: public interface MBThreadLocalService {
049: public com.liferay.portlet.messageboards.model.MBThread addMBThread(
050: com.liferay.portlet.messageboards.model.MBThread model)
051: throws com.liferay.portal.SystemException;
052:
053: public java.util.List dynamicQuery(
054: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
055: throws com.liferay.portal.SystemException;
056:
057: public java.util.List dynamicQuery(
058: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
059: int begin, int end)
060: throws com.liferay.portal.SystemException;
061:
062: public com.liferay.portlet.messageboards.model.MBThread updateMBThread(
063: com.liferay.portlet.messageboards.model.MBThread model)
064: throws com.liferay.portal.SystemException;
065:
066: public com.liferay.portlet.messageboards.service.persistence.MBBanPersistence getMBBanPersistence();
067:
068: public void setMBBanPersistence(
069: com.liferay.portlet.messageboards.service.persistence.MBBanPersistence mbBanPersistence);
070:
071: public com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence getMBCategoryPersistence();
072:
073: public void setMBCategoryPersistence(
074: com.liferay.portlet.messageboards.service.persistence.MBCategoryPersistence mbCategoryPersistence);
075:
076: public com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder getMBCategoryFinder();
077:
078: public void setMBCategoryFinder(
079: com.liferay.portlet.messageboards.service.persistence.MBCategoryFinder mbCategoryFinder);
080:
081: public com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence getMBDiscussionPersistence();
082:
083: public void setMBDiscussionPersistence(
084: com.liferay.portlet.messageboards.service.persistence.MBDiscussionPersistence mbDiscussionPersistence);
085:
086: public com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence();
087:
088: public void setMBMessagePersistence(
089: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence);
090:
091: public com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder();
092:
093: public void setMBMessageFinder(
094: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder);
095:
096: public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence getMBMessageFlagPersistence();
097:
098: public void setMBMessageFlagPersistence(
099: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagPersistence mbMessageFlagPersistence);
100:
101: public com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder getMBMessageFlagFinder();
102:
103: public void setMBMessageFlagFinder(
104: com.liferay.portlet.messageboards.service.persistence.MBMessageFlagFinder mbMessageFlagFinder);
105:
106: public com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence getMBStatsUserPersistence();
107:
108: public void setMBStatsUserPersistence(
109: com.liferay.portlet.messageboards.service.persistence.MBStatsUserPersistence mbStatsUserPersistence);
110:
111: public com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence getMBThreadPersistence();
112:
113: public void setMBThreadPersistence(
114: com.liferay.portlet.messageboards.service.persistence.MBThreadPersistence mbThreadPersistence);
115:
116: public com.liferay.portlet.messageboards.service.persistence.MBThreadFinder getMBThreadFinder();
117:
118: public void setMBThreadFinder(
119: com.liferay.portlet.messageboards.service.persistence.MBThreadFinder mbThreadFinder);
120:
121: public com.liferay.portal.service.persistence.ActivityTrackerPersistence getActivityTrackerPersistence();
122:
123: public void setActivityTrackerPersistence(
124: com.liferay.portal.service.persistence.ActivityTrackerPersistence activityTrackerPersistence);
125:
126: public com.liferay.portal.service.persistence.ActivityTrackerFinder getActivityTrackerFinder();
127:
128: public void setActivityTrackerFinder(
129: com.liferay.portal.service.persistence.ActivityTrackerFinder activityTrackerFinder);
130:
131: public com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence();
132:
133: public void setResourcePersistence(
134: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence);
135:
136: public com.liferay.portal.service.persistence.ResourceFinder getResourceFinder();
137:
138: public void setResourceFinder(
139: com.liferay.portal.service.persistence.ResourceFinder resourceFinder);
140:
141: public com.liferay.portal.service.persistence.UserPersistence getUserPersistence();
142:
143: public void setUserPersistence(
144: com.liferay.portal.service.persistence.UserPersistence userPersistence);
145:
146: public com.liferay.portal.service.persistence.UserFinder getUserFinder();
147:
148: public void setUserFinder(
149: com.liferay.portal.service.persistence.UserFinder userFinder);
150:
151: public com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence();
152:
153: public void setTagsAssetPersistence(
154: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence);
155:
156: public com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder();
157:
158: public void setTagsAssetFinder(
159: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder);
160:
161: public void afterPropertiesSet();
162:
163: public void deleteThread(long threadId)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portal.PortalException;
166:
167: public void deleteThread(
168: com.liferay.portlet.messageboards.model.MBThread thread)
169: throws com.liferay.portal.SystemException,
170: com.liferay.portal.PortalException;
171:
172: public void deleteThreads(long categoryId)
173: throws com.liferay.portal.SystemException,
174: com.liferay.portal.PortalException;
175:
176: public int getCategoriesThreadsCount(java.util.List categoryIds)
177: throws com.liferay.portal.SystemException;
178:
179: public java.util.List getGroupThreads(long groupId, int begin,
180: int end) throws com.liferay.portal.SystemException;
181:
182: public java.util.List getGroupThreads(long groupId, long userId,
183: int begin, int end)
184: throws com.liferay.portal.SystemException;
185:
186: public java.util.List getGroupThreads(long groupId, long userId,
187: boolean subscribed, int begin, int end)
188: throws com.liferay.portal.SystemException;
189:
190: public int getGroupThreadsCount(long groupId)
191: throws com.liferay.portal.SystemException;
192:
193: public int getGroupThreadsCount(long groupId, long userId)
194: throws com.liferay.portal.SystemException;
195:
196: public int getGroupThreadsCount(long groupId, long userId,
197: boolean subscribed)
198: throws com.liferay.portal.SystemException;
199:
200: public com.liferay.portlet.messageboards.model.MBThread getThread(
201: long threadId) throws com.liferay.portal.SystemException,
202: com.liferay.portal.PortalException;
203:
204: public java.util.List getThreads(long categoryId, int begin, int end)
205: throws com.liferay.portal.SystemException;
206:
207: public int getThreadsCount(long categoryId)
208: throws com.liferay.portal.SystemException;
209:
210: public boolean hasReadThread(long userId, long threadId)
211: throws com.liferay.portal.SystemException,
212: com.liferay.portal.PortalException;
213:
214: public com.liferay.portlet.messageboards.model.MBThread moveThread(
215: long categoryId, long threadId)
216: throws com.liferay.portal.SystemException,
217: com.liferay.portal.PortalException;
218:
219: public com.liferay.portlet.messageboards.model.MBThread splitThread(
220: long messageId, javax.portlet.PortletPreferences prefs,
221: com.liferay.portal.theme.ThemeDisplay themeDisplay)
222: throws com.liferay.portal.SystemException,
223: com.liferay.portal.PortalException;
224:
225: public com.liferay.portlet.messageboards.model.MBThread updateThread(
226: long threadId, int viewCount)
227: throws com.liferay.portal.SystemException,
228: com.liferay.portal.PortalException;
229: }
|