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.journal.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    import com.liferay.portal.model.TreeModel;
022    
023    /**
024     * The extended model interface for the JournalArticle service. Represents a row in the "JournalArticle" database table, with each column mapped to a property of this class.
025     *
026     * @author Brian Wing Shun Chan
027     * @see JournalArticleModel
028     * @see com.liferay.portlet.journal.model.impl.JournalArticleImpl
029     * @see com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
030     * @generated
031     */
032    @ProviderType
033    public interface JournalArticle extends JournalArticleModel, PersistedModel,
034            TreeModel {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this interface directly. Add methods to {@link com.liferay.portlet.journal.model.impl.JournalArticleImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
039             */
040            public static final Accessor<JournalArticle, String> ARTICLE_ID_ACCESSOR = new Accessor<JournalArticle, String>() {
041                            @Override
042                            public String get(JournalArticle journalArticle) {
043                                    return journalArticle.getArticleId();
044                            }
045    
046                            @Override
047                            public Class<String> getAttributeClass() {
048                                    return String.class;
049                            }
050    
051                            @Override
052                            public Class<JournalArticle> getTypeClass() {
053                                    return JournalArticle.class;
054                            }
055                    };
056    
057            @Override
058            public java.lang.String buildTreePath()
059                    throws com.liferay.portal.kernel.exception.PortalException;
060    
061            public long getArticleImageId(java.lang.String elInstanceId,
062                    java.lang.String elName, java.lang.String languageId);
063    
064            public java.lang.String getArticleImageURL(
065                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
066    
067            public com.liferay.portlet.journal.model.JournalArticleResource getArticleResource()
068                    throws com.liferay.portal.kernel.exception.PortalException;
069    
070            public java.lang.String getArticleResourceUuid()
071                    throws com.liferay.portal.kernel.exception.PortalException;
072    
073            /**
074            * @deprecated As of 6.2.0, replaced by {@link #getAvailableLanguageIds}
075            */
076            @java.lang.Deprecated()
077            public java.lang.String[] getAvailableLocales();
078    
079            public java.lang.String getContentByLocale(java.lang.String languageId);
080    
081            public com.liferay.portlet.dynamicdatamapping.model.DDMStructure getDDMStructure()
082                    throws com.liferay.portal.kernel.exception.PortalException;
083    
084            public com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getDDMTemplate()
085                    throws com.liferay.portal.kernel.exception.PortalException;
086    
087            /**
088            * @deprecated As of 6.2.0, replaced by {@link #getDefaultLanguageId}
089            */
090            @java.lang.Deprecated()
091            public java.lang.String getDefaultLocale();
092    
093            public com.liferay.portal.kernel.xml.Document getDocument();
094    
095            public com.liferay.portlet.journal.model.JournalFolder getFolder()
096                    throws com.liferay.portal.kernel.exception.PortalException;
097    
098            public com.liferay.portal.model.Layout getLayout();
099    
100            public java.lang.String getSmallImageType()
101                    throws com.liferay.portal.kernel.exception.PortalException;
102    
103            /**
104            * @deprecated As of 7.0.0, replaced by {@link #getDDMStructureKey()}
105            */
106            public java.lang.String getStructureId();
107    
108            /**
109            * @deprecated As of 7.0.0, replaced by {@link #getDDMTemplateKey()}
110            */
111            public java.lang.String getTemplateId();
112    
113            public boolean hasApprovedVersion();
114    
115            /**
116            * @deprecated As of 7.0.0, with no direct replacement
117            */
118            @java.lang.Deprecated()
119            public boolean isTemplateDriven();
120    
121            public void setDefaultLanguageId(java.lang.String defaultLanguageId);
122    
123            public void setDocument(com.liferay.portal.kernel.xml.Document document);
124    
125            public void setSmallImageType(java.lang.String smallImageType);
126    
127            /**
128            * @deprecated As of 7.0.0, replaced by {@link #setDDMStructureKey(String)}
129            */
130            public void setStructureId(java.lang.String ddmStructureKey);
131    
132            /**
133            * @deprecated As of 7.0.0, replaced by {@link #setDDMTemplateKey(String)}
134            */
135            public void setTemplateId(java.lang.String ddmTemplateKey);
136    }