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.portlet.messageboards.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Accessor;
020    import com.liferay.portal.model.PersistedModel;
021    
022    /**
023     * 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.
024     *
025     * @author Brian Wing Shun Chan
026     * @see MBMessageModel
027     * @see com.liferay.portlet.messageboards.model.impl.MBMessageImpl
028     * @see com.liferay.portlet.messageboards.model.impl.MBMessageModelImpl
029     * @generated
030     */
031    @ProviderType
032    public interface MBMessage extends MBMessageModel, PersistedModel {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * 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.
037             */
038            public static final Accessor<MBMessage, Long> MESSAGE_ID_ACCESSOR = new Accessor<MBMessage, Long>() {
039                            @Override
040                            public Long get(MBMessage mbMessage) {
041                                    return mbMessage.getMessageId();
042                            }
043    
044                            @Override
045                            public Class<Long> getAttributeClass() {
046                                    return Long.class;
047                            }
048    
049                            @Override
050                            public Class<MBMessage> getTypeClass() {
051                                    return MBMessage.class;
052                            }
053                    };
054    
055            public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
056                    throws com.liferay.portal.kernel.exception.PortalException;
057    
058            public java.lang.String[] getAssetTagNames();
059    
060            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
061                    throws com.liferay.portal.kernel.exception.PortalException;
062    
063            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
064                    int start, int end)
065                    throws com.liferay.portal.kernel.exception.PortalException;
066    
067            public int getAttachmentsFileEntriesCount()
068                    throws com.liferay.portal.kernel.exception.PortalException;
069    
070            public long getAttachmentsFolderId()
071                    throws com.liferay.portal.kernel.exception.PortalException;
072    
073            public java.lang.String getBody(boolean translate);
074    
075            public com.liferay.portlet.messageboards.model.MBCategory getCategory()
076                    throws com.liferay.portal.kernel.exception.PortalException;
077    
078            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
079                    throws com.liferay.portal.kernel.exception.PortalException;
080    
081            public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
082                    int start, int end)
083                    throws com.liferay.portal.kernel.exception.PortalException;
084    
085            public int getDeletedAttachmentsFileEntriesCount()
086                    throws com.liferay.portal.kernel.exception.PortalException;
087    
088            public com.liferay.portlet.messageboards.model.MBThread getThread()
089                    throws com.liferay.portal.kernel.exception.PortalException;
090    
091            public long getThreadAttachmentsFolderId()
092                    throws com.liferay.portal.kernel.exception.PortalException;
093    
094            public java.lang.String getWorkflowClassName();
095    
096            public boolean isDiscussion();
097    
098            public boolean isFormatBBCode();
099    
100            public boolean isReply();
101    
102            public boolean isRoot();
103    
104            public void setAttachmentsFolderId(long attachmentsFolderId);
105    }