Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/dao/INoticeboardAttachmentDAO.java =================================================================== diff -u --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/dao/INoticeboardAttachmentDAO.java (revision 0) +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/dao/INoticeboardAttachmentDAO.java (revision 570c5fd362513c18648753b407f0882e8dda47be) @@ -0,0 +1,52 @@ +/* + *Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * + *This program is free software; you can redistribute it and/or modify + *it under the terms of the GNU General Public License as published by + *the Free Software Foundation; either version 2 of the License, or + *(at your option) any later version. + * + *This program is distributed in the hope that it will be useful, + *but WITHOUT ANY WARRANTY; without even the implied warranty of + *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + *GNU General Public License for more details. + * + *You should have received a copy of the GNU General Public License + *along with this program; if not, write to the Free Software + *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + *USA + * + *http://www.gnu.org/licenses/gpl.txt + */ + +/* + * Created on Jul 29, 2005 + * + * TODO To change the template for this generated file go to + * Window - Preferences - Java - Code Style - Code Templates + */ +package org.lamsfoundation.lams.tool.noticeboard.dao; + +import java.util.List; + +import org.lamsfoundation.lams.tool.noticeboard.NoticeboardAttachment; +import org.lamsfoundation.lams.tool.noticeboard.NoticeboardContent; +/** + * @author mtruong + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public interface INoticeboardAttachmentDAO { + + public NoticeboardAttachment retrieveAttachment(Long attachmentId); + + public NoticeboardAttachment retrieveAttachmentByUuid(Long uuid); + + public List getAttachmentIdsFromContent(NoticeboardContent nbContent); + + public void saveAttachment(NoticeboardAttachment attachment); + + public void removeAttachment(NoticeboardAttachment attachment); + +}