📄 forummessageservice.java
字号:
/*
* Copyright 2003-2005 the original author or authors.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package com.jdon.jivejdon.service;
import java.util.List;
import com.jdon.controller.events.EventModel;
import com.jdon.controller.model.PageIterator;
import com.jdon.jivejdon.manager.message.RenderingFilterManager;
import com.jdon.jivejdon.model.Account;
import com.jdon.jivejdon.model.ForumMessage;
import com.jdon.jivejdon.model.ForumThread;
import com.jdon.jivejdon.model.query.QueryCriteria;
/**
* @author <a href="mailto:banqiao@jdon.com">banq</a>
*
*/
public interface ForumMessageService {
ForumMessage initMessage(EventModel em);
ForumMessage initReplyMessage(EventModel em);
/**
* for display
* the result will be filtered by the fiilters.
* for the batch inquiry
*/
ForumMessage findFilteredMessage(Long messageId);
/**
* Called by using message's modify or deletion
* at first accessing this method must be checked.
* it is configured in jdonframework.xml
*
* <getMethod name="findMessage"/>
*/
ForumMessage findMessage(Long messageId) ;
/**
* Called by using message's modify or deletion,
* but not need check access auth, so be carefully using this method
* now MessageRecursiveListAction.java call this method
*/
ForumMessage getMessage(Long messageId);
/**
* create a topic message, it is a root message
* @param em
*/
void createTopicMessage(EventModel em);
/**
* create a reply message.
* @param em
*/
void createReplyMessage(EventModel em);
void updateMessage(EventModel em);
void deleteMessage(EventModel em);
void deleteRecursiveMessage(EventModel em);
/**
* a Messages Collection of a ForumThread
* for batch inquiry
*/
PageIterator getMessages(Long threadId, int start, int count);
/**
* a Messages Collection of their parenMessage
* for deleteMessage display
*/
PageIterator getRecursiveMessages(Long messageId, int start, int count);
/**
* for batch inquiry
*/
ForumThread getThread(Long id);
/**
* all forum's topic collection
* @param forumId
* @param start
* @param count
* @return
*/
PageIterator getThreads(Long forumId, int start, int count);
/**
* get the thread collection include prev/current/next threads collection
*
* @param currentThreadId
* @param start
* @param count
* @return ListIterator
*/
List getThreadsPrevNext(Long forumId, Long currentThreadId);
RenderingFilterManager getFilterManager();
/**
* check if forumMessage is Authenticated by current login user.
* @param forumMessage
* @return
*/
boolean isAuthenticated(ForumMessage forumMessage);
PageIterator getThreads(QueryCriteria messageQueryCriteria, int start, int count);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -