001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.message.boards.kernel.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.annotation.ImplementationClassName;
020    import com.liferay.portal.kernel.model.PersistedModel;
021    import com.liferay.portal.kernel.util.Accessor;
022    
023    /**
024     * The extended model interface for the MBMessage service. Represents a row in the "MBMessage" database table, with each column mapped to a property of this class.
025     *
026     * @author Brian Wing Shun Chan
027     * @see MBMessageModel
028     * @see com.liferay.portlet.messageboards.model.impl.MBMessageImpl
029     * @see com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
030     * @generated
031     */
032    @ImplementationClassName("com.liferay.portlet.messageboards.model.impl.MBMessageImpl")
033    @ProviderType
034    public interface MBMessage extends MBMessageModel, PersistedModel {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.messageboards.model.impl.MBMessageImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
039             */
040            public static final Accessor<MBMessage, Long> MESSAGE_ID_ACCESSOR = new Accessor<MBMessage, Long>() {
041                            @Override
042                            public Long get(MBMessage mbMessage) {
043                                    return mbMessage.getMessageId();
044                            }
045    
046                            @Override
047                            public Class<Long> getAttributeClass() {
048                                    return Long.class;
049                            }
050    
051                            @Override
052                            public Class<MBMessage> getTypeClass() {
053                                    return MBMessage.class;
054                            }
055                    };
056    
057            public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
058                    throws com.liferay.portal.kernel.exception.PortalException;
059    
060            public java.lang.String[] getAssetTagNames();
061    
062            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
063                    throws com.liferay.portal.kernel.exception.PortalException;
064    
065            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
066                    int start, int end)
067                    throws com.liferay.portal.kernel.exception.PortalException;
068    
069            public int getAttachmentsFileEntriesCount()
070                    throws com.liferay.portal.kernel.exception.PortalException;
071    
072            public long getAttachmentsFolderId()
073                    throws com.liferay.portal.kernel.exception.PortalException;
074    
075            public java.lang.String getBody(boolean translate);
076    
077            public com.liferay.message.boards.kernel.model.MBCategory getCategory()
078                    throws com.liferay.portal.kernel.exception.PortalException;
079    
080            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
081                    throws com.liferay.portal.kernel.exception.PortalException;
082    
083            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
084                    int start, int end)
085                    throws com.liferay.portal.kernel.exception.PortalException;
086    
087            public int getDeletedAttachmentsFileEntriesCount()
088                    throws com.liferay.portal.kernel.exception.PortalException;
089    
090            public com.liferay.message.boards.kernel.model.MBThread getThread()
091                    throws com.liferay.portal.kernel.exception.PortalException;
092    
093            public long getThreadAttachmentsFolderId()
094                    throws com.liferay.portal.kernel.exception.PortalException;
095    
096            public java.lang.String getWorkflowClassName();
097    
098            public boolean isDiscussion();
099    
100            public boolean isFormatBBCode();
101    
102            public boolean isReply();
103    
104            public boolean isRoot();
105    
106            public void setAttachmentsFolderId(long attachmentsFolderId);
107    }