com.liferay.portlet.journal.model.JournalArticleModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of portal-service Show documentation
Show all versions of portal-service Show documentation
Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library 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 Lesser General Public License for more
* details.
*/
package com.liferay.portlet.journal.model;
import com.liferay.portal.LocaleException;
import com.liferay.portal.kernel.bean.AutoEscape;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.trash.TrashHandler;
import com.liferay.portal.model.AttachedModel;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.model.CacheModel;
import com.liferay.portal.model.ResourcedModel;
import com.liferay.portal.model.StagedGroupedModel;
import com.liferay.portal.model.TrashedModel;
import com.liferay.portal.model.WorkflowedModel;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.expando.model.ExpandoBridge;
import com.liferay.portlet.trash.model.TrashEntry;
import java.io.Serializable;
import java.util.Date;
import java.util.Locale;
import java.util.Map;
/**
* The base model interface for the JournalArticle service. Represents a row in the "JournalArticle" database table, with each column mapped to a property of this class.
*
*
* This interface and its corresponding implementation {@link com.liferay.portlet.journal.model.impl.JournalArticleModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.journal.model.impl.JournalArticleImpl}.
*
*
* @author Brian Wing Shun Chan
* @see JournalArticle
* @see com.liferay.portlet.journal.model.impl.JournalArticleImpl
* @see com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
* @generated
*/
public interface JournalArticleModel extends AttachedModel,
BaseModel, ResourcedModel, StagedGroupedModel, TrashedModel,
WorkflowedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. All methods that expect a journal article model instance should use the {@link JournalArticle} interface instead.
*/
/**
* Returns the primary key of this journal article.
*
* @return the primary key of this journal article
*/
public long getPrimaryKey();
/**
* Sets the primary key of this journal article.
*
* @param primaryKey the primary key of this journal article
*/
public void setPrimaryKey(long primaryKey);
/**
* Returns the uuid of this journal article.
*
* @return the uuid of this journal article
*/
@AutoEscape
@Override
public String getUuid();
/**
* Sets the uuid of this journal article.
*
* @param uuid the uuid of this journal article
*/
@Override
public void setUuid(String uuid);
/**
* Returns the ID of this journal article.
*
* @return the ID of this journal article
*/
public long getId();
/**
* Sets the ID of this journal article.
*
* @param id the ID of this journal article
*/
public void setId(long id);
/**
* Returns the resource prim key of this journal article.
*
* @return the resource prim key of this journal article
*/
@Override
public long getResourcePrimKey();
/**
* Sets the resource prim key of this journal article.
*
* @param resourcePrimKey the resource prim key of this journal article
*/
@Override
public void setResourcePrimKey(long resourcePrimKey);
@Override
public boolean isResourceMain();
/**
* Returns the group ID of this journal article.
*
* @return the group ID of this journal article
*/
@Override
public long getGroupId();
/**
* Sets the group ID of this journal article.
*
* @param groupId the group ID of this journal article
*/
@Override
public void setGroupId(long groupId);
/**
* Returns the company ID of this journal article.
*
* @return the company ID of this journal article
*/
@Override
public long getCompanyId();
/**
* Sets the company ID of this journal article.
*
* @param companyId the company ID of this journal article
*/
@Override
public void setCompanyId(long companyId);
/**
* Returns the user ID of this journal article.
*
* @return the user ID of this journal article
*/
@Override
public long getUserId();
/**
* Sets the user ID of this journal article.
*
* @param userId the user ID of this journal article
*/
@Override
public void setUserId(long userId);
/**
* Returns the user uuid of this journal article.
*
* @return the user uuid of this journal article
* @throws SystemException if a system exception occurred
*/
@Override
public String getUserUuid() throws SystemException;
/**
* Sets the user uuid of this journal article.
*
* @param userUuid the user uuid of this journal article
*/
@Override
public void setUserUuid(String userUuid);
/**
* Returns the user name of this journal article.
*
* @return the user name of this journal article
*/
@AutoEscape
@Override
public String getUserName();
/**
* Sets the user name of this journal article.
*
* @param userName the user name of this journal article
*/
@Override
public void setUserName(String userName);
/**
* Returns the create date of this journal article.
*
* @return the create date of this journal article
*/
@Override
public Date getCreateDate();
/**
* Sets the create date of this journal article.
*
* @param createDate the create date of this journal article
*/
@Override
public void setCreateDate(Date createDate);
/**
* Returns the modified date of this journal article.
*
* @return the modified date of this journal article
*/
@Override
public Date getModifiedDate();
/**
* Sets the modified date of this journal article.
*
* @param modifiedDate the modified date of this journal article
*/
@Override
public void setModifiedDate(Date modifiedDate);
/**
* Returns the folder ID of this journal article.
*
* @return the folder ID of this journal article
*/
public long getFolderId();
/**
* Sets the folder ID of this journal article.
*
* @param folderId the folder ID of this journal article
*/
public void setFolderId(long folderId);
/**
* Returns the fully qualified class name of this journal article.
*
* @return the fully qualified class name of this journal article
*/
@Override
public String getClassName();
public void setClassName(String className);
/**
* Returns the class name ID of this journal article.
*
* @return the class name ID of this journal article
*/
@Override
public long getClassNameId();
/**
* Sets the class name ID of this journal article.
*
* @param classNameId the class name ID of this journal article
*/
@Override
public void setClassNameId(long classNameId);
/**
* Returns the class p k of this journal article.
*
* @return the class p k of this journal article
*/
@Override
public long getClassPK();
/**
* Sets the class p k of this journal article.
*
* @param classPK the class p k of this journal article
*/
@Override
public void setClassPK(long classPK);
/**
* Returns the tree path of this journal article.
*
* @return the tree path of this journal article
*/
@AutoEscape
public String getTreePath();
/**
* Sets the tree path of this journal article.
*
* @param treePath the tree path of this journal article
*/
public void setTreePath(String treePath);
/**
* Returns the article ID of this journal article.
*
* @return the article ID of this journal article
*/
public String getArticleId();
/**
* Sets the article ID of this journal article.
*
* @param articleId the article ID of this journal article
*/
public void setArticleId(String articleId);
/**
* Returns the version of this journal article.
*
* @return the version of this journal article
*/
public double getVersion();
/**
* Sets the version of this journal article.
*
* @param version the version of this journal article
*/
public void setVersion(double version);
/**
* Returns the title of this journal article.
*
* @return the title of this journal article
*/
public String getTitle();
/**
* Returns the localized title of this journal article in the language. Uses the default language if no localization exists for the requested language.
*
* @param locale the locale of the language
* @return the localized title of this journal article
*/
@AutoEscape
public String getTitle(Locale locale);
/**
* Returns the localized title of this journal article in the language, optionally using the default language if no localization exists for the requested language.
*
* @param locale the local of the language
* @param useDefault whether to use the default language if no localization exists for the requested language
* @return the localized title of this journal article. If useDefault
is false
and no localization exists for the requested language, an empty string will be returned.
*/
@AutoEscape
public String getTitle(Locale locale, boolean useDefault);
/**
* Returns the localized title of this journal article in the language. Uses the default language if no localization exists for the requested language.
*
* @param languageId the ID of the language
* @return the localized title of this journal article
*/
@AutoEscape
public String getTitle(String languageId);
/**
* Returns the localized title of this journal article in the language, optionally using the default language if no localization exists for the requested language.
*
* @param languageId the ID of the language
* @param useDefault whether to use the default language if no localization exists for the requested language
* @return the localized title of this journal article
*/
@AutoEscape
public String getTitle(String languageId, boolean useDefault);
@AutoEscape
public String getTitleCurrentLanguageId();
@AutoEscape
public String getTitleCurrentValue();
/**
* Returns a map of the locales and localized titles of this journal article.
*
* @return the locales and localized titles of this journal article
*/
public Map getTitleMap();
/**
* Sets the title of this journal article.
*
* @param title the title of this journal article
*/
public void setTitle(String title);
/**
* Sets the localized title of this journal article in the language.
*
* @param title the localized title of this journal article
* @param locale the locale of the language
*/
public void setTitle(String title, Locale locale);
/**
* Sets the localized title of this journal article in the language, and sets the default locale.
*
* @param title the localized title of this journal article
* @param locale the locale of the language
* @param defaultLocale the default locale
*/
public void setTitle(String title, Locale locale, Locale defaultLocale);
public void setTitleCurrentLanguageId(String languageId);
/**
* Sets the localized titles of this journal article from the map of locales and localized titles.
*
* @param titleMap the locales and localized titles of this journal article
*/
public void setTitleMap(Map titleMap);
/**
* Sets the localized titles of this journal article from the map of locales and localized titles, and sets the default locale.
*
* @param titleMap the locales and localized titles of this journal article
* @param defaultLocale the default locale
*/
public void setTitleMap(Map titleMap, Locale defaultLocale);
/**
* Returns the url title of this journal article.
*
* @return the url title of this journal article
*/
@AutoEscape
public String getUrlTitle();
/**
* Sets the url title of this journal article.
*
* @param urlTitle the url title of this journal article
*/
public void setUrlTitle(String urlTitle);
/**
* Returns the description of this journal article.
*
* @return the description of this journal article
*/
public String getDescription();
/**
* Returns the localized description of this journal article in the language. Uses the default language if no localization exists for the requested language.
*
* @param locale the locale of the language
* @return the localized description of this journal article
*/
@AutoEscape
public String getDescription(Locale locale);
/**
* Returns the localized description of this journal article in the language, optionally using the default language if no localization exists for the requested language.
*
* @param locale the local of the language
* @param useDefault whether to use the default language if no localization exists for the requested language
* @return the localized description of this journal article. If useDefault
is false
and no localization exists for the requested language, an empty string will be returned.
*/
@AutoEscape
public String getDescription(Locale locale, boolean useDefault);
/**
* Returns the localized description of this journal article in the language. Uses the default language if no localization exists for the requested language.
*
* @param languageId the ID of the language
* @return the localized description of this journal article
*/
@AutoEscape
public String getDescription(String languageId);
/**
* Returns the localized description of this journal article in the language, optionally using the default language if no localization exists for the requested language.
*
* @param languageId the ID of the language
* @param useDefault whether to use the default language if no localization exists for the requested language
* @return the localized description of this journal article
*/
@AutoEscape
public String getDescription(String languageId, boolean useDefault);
@AutoEscape
public String getDescriptionCurrentLanguageId();
@AutoEscape
public String getDescriptionCurrentValue();
/**
* Returns a map of the locales and localized descriptions of this journal article.
*
* @return the locales and localized descriptions of this journal article
*/
public Map getDescriptionMap();
/**
* Sets the description of this journal article.
*
* @param description the description of this journal article
*/
public void setDescription(String description);
/**
* Sets the localized description of this journal article in the language.
*
* @param description the localized description of this journal article
* @param locale the locale of the language
*/
public void setDescription(String description, Locale locale);
/**
* Sets the localized description of this journal article in the language, and sets the default locale.
*
* @param description the localized description of this journal article
* @param locale the locale of the language
* @param defaultLocale the default locale
*/
public void setDescription(String description, Locale locale,
Locale defaultLocale);
public void setDescriptionCurrentLanguageId(String languageId);
/**
* Sets the localized descriptions of this journal article from the map of locales and localized descriptions.
*
* @param descriptionMap the locales and localized descriptions of this journal article
*/
public void setDescriptionMap(Map descriptionMap);
/**
* Sets the localized descriptions of this journal article from the map of locales and localized descriptions, and sets the default locale.
*
* @param descriptionMap the locales and localized descriptions of this journal article
* @param defaultLocale the default locale
*/
public void setDescriptionMap(Map descriptionMap,
Locale defaultLocale);
/**
* Returns the content of this journal article.
*
* @return the content of this journal article
*/
@AutoEscape
public String getContent();
/**
* Sets the content of this journal article.
*
* @param content the content of this journal article
*/
public void setContent(String content);
/**
* Returns the type of this journal article.
*
* @return the type of this journal article
*/
@AutoEscape
public String getType();
/**
* Sets the type of this journal article.
*
* @param type the type of this journal article
*/
public void setType(String type);
/**
* Returns the structure ID of this journal article.
*
* @return the structure ID of this journal article
*/
public String getStructureId();
/**
* Sets the structure ID of this journal article.
*
* @param structureId the structure ID of this journal article
*/
public void setStructureId(String structureId);
/**
* Returns the template ID of this journal article.
*
* @return the template ID of this journal article
*/
public String getTemplateId();
/**
* Sets the template ID of this journal article.
*
* @param templateId the template ID of this journal article
*/
public void setTemplateId(String templateId);
/**
* Returns the layout uuid of this journal article.
*
* @return the layout uuid of this journal article
*/
@AutoEscape
public String getLayoutUuid();
/**
* Sets the layout uuid of this journal article.
*
* @param layoutUuid the layout uuid of this journal article
*/
public void setLayoutUuid(String layoutUuid);
/**
* Returns the display date of this journal article.
*
* @return the display date of this journal article
*/
public Date getDisplayDate();
/**
* Sets the display date of this journal article.
*
* @param displayDate the display date of this journal article
*/
public void setDisplayDate(Date displayDate);
/**
* Returns the expiration date of this journal article.
*
* @return the expiration date of this journal article
*/
public Date getExpirationDate();
/**
* Sets the expiration date of this journal article.
*
* @param expirationDate the expiration date of this journal article
*/
public void setExpirationDate(Date expirationDate);
/**
* Returns the review date of this journal article.
*
* @return the review date of this journal article
*/
public Date getReviewDate();
/**
* Sets the review date of this journal article.
*
* @param reviewDate the review date of this journal article
*/
public void setReviewDate(Date reviewDate);
/**
* Returns the indexable of this journal article.
*
* @return the indexable of this journal article
*/
public boolean getIndexable();
/**
* Returns true
if this journal article is indexable.
*
* @return true
if this journal article is indexable; false
otherwise
*/
public boolean isIndexable();
/**
* Sets whether this journal article is indexable.
*
* @param indexable the indexable of this journal article
*/
public void setIndexable(boolean indexable);
/**
* Returns the small image of this journal article.
*
* @return the small image of this journal article
*/
public boolean getSmallImage();
/**
* Returns true
if this journal article is small image.
*
* @return true
if this journal article is small image; false
otherwise
*/
public boolean isSmallImage();
/**
* Sets whether this journal article is small image.
*
* @param smallImage the small image of this journal article
*/
public void setSmallImage(boolean smallImage);
/**
* Returns the small image ID of this journal article.
*
* @return the small image ID of this journal article
*/
public long getSmallImageId();
/**
* Sets the small image ID of this journal article.
*
* @param smallImageId the small image ID of this journal article
*/
public void setSmallImageId(long smallImageId);
/**
* Returns the small image u r l of this journal article.
*
* @return the small image u r l of this journal article
*/
@AutoEscape
public String getSmallImageURL();
/**
* Sets the small image u r l of this journal article.
*
* @param smallImageURL the small image u r l of this journal article
*/
public void setSmallImageURL(String smallImageURL);
/**
* Returns the status of this journal article.
*
* @return the status of this journal article
*/
@Override
public int getStatus();
/**
* Sets the status of this journal article.
*
* @param status the status of this journal article
*/
@Override
public void setStatus(int status);
/**
* Returns the status by user ID of this journal article.
*
* @return the status by user ID of this journal article
*/
@Override
public long getStatusByUserId();
/**
* Sets the status by user ID of this journal article.
*
* @param statusByUserId the status by user ID of this journal article
*/
@Override
public void setStatusByUserId(long statusByUserId);
/**
* Returns the status by user uuid of this journal article.
*
* @return the status by user uuid of this journal article
* @throws SystemException if a system exception occurred
*/
@Override
public String getStatusByUserUuid() throws SystemException;
/**
* Sets the status by user uuid of this journal article.
*
* @param statusByUserUuid the status by user uuid of this journal article
*/
@Override
public void setStatusByUserUuid(String statusByUserUuid);
/**
* Returns the status by user name of this journal article.
*
* @return the status by user name of this journal article
*/
@AutoEscape
@Override
public String getStatusByUserName();
/**
* Sets the status by user name of this journal article.
*
* @param statusByUserName the status by user name of this journal article
*/
@Override
public void setStatusByUserName(String statusByUserName);
/**
* Returns the status date of this journal article.
*
* @return the status date of this journal article
*/
@Override
public Date getStatusDate();
/**
* Sets the status date of this journal article.
*
* @param statusDate the status date of this journal article
*/
@Override
public void setStatusDate(Date statusDate);
/**
* Returns the trash entry created when this journal article was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this journal article.
*
* @return the trash entry created when this journal article was moved to the Recycle Bin
* @throws SystemException if a system exception occurred
*/
@Override
public TrashEntry getTrashEntry() throws PortalException, SystemException;
/**
* Returns the class primary key of the trash entry for this journal article.
*
* @return the class primary key of the trash entry for this journal article
*/
@Override
public long getTrashEntryClassPK();
/**
* Returns the trash handler for this journal article.
*
* @return the trash handler for this journal article
*/
@Override
public TrashHandler getTrashHandler();
/**
* Returns true
if this journal article is in the Recycle Bin.
*
* @return true
if this journal article is in the Recycle Bin; false
otherwise
*/
@Override
public boolean isInTrash();
/**
* Returns true
if the parent of this journal article is in the Recycle Bin.
*
* @return true
if the parent of this journal article is in the Recycle Bin; false
otherwise
* @throws SystemException if a system exception occurred
*/
@Override
public boolean isInTrashContainer();
/**
* @deprecated As of 6.1.0, replaced by {@link #isApproved()}
*/
@Override
public boolean getApproved();
/**
* Returns true
if this journal article is approved.
*
* @return true
if this journal article is approved; false
otherwise
*/
@Override
public boolean isApproved();
/**
* Returns true
if this journal article is denied.
*
* @return true
if this journal article is denied; false
otherwise
*/
@Override
public boolean isDenied();
/**
* Returns true
if this journal article is a draft.
*
* @return true
if this journal article is a draft; false
otherwise
*/
@Override
public boolean isDraft();
/**
* Returns true
if this journal article is expired.
*
* @return true
if this journal article is expired; false
otherwise
*/
@Override
public boolean isExpired();
/**
* Returns true
if this journal article is inactive.
*
* @return true
if this journal article is inactive; false
otherwise
*/
@Override
public boolean isInactive();
/**
* Returns true
if this journal article is incomplete.
*
* @return true
if this journal article is incomplete; false
otherwise
*/
@Override
public boolean isIncomplete();
/**
* Returns true
if this journal article is pending.
*
* @return true
if this journal article is pending; false
otherwise
*/
@Override
public boolean isPending();
/**
* Returns true
if this journal article is scheduled.
*
* @return true
if this journal article is scheduled; false
otherwise
*/
@Override
public boolean isScheduled();
@Override
public boolean isNew();
@Override
public void setNew(boolean n);
@Override
public boolean isCachedModel();
@Override
public void setCachedModel(boolean cachedModel);
@Override
public boolean isEscapedModel();
@Override
public Serializable getPrimaryKeyObj();
@Override
public void setPrimaryKeyObj(Serializable primaryKeyObj);
@Override
public ExpandoBridge getExpandoBridge();
@Override
public void setExpandoBridgeAttributes(BaseModel baseModel);
@Override
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
@Override
public void setExpandoBridgeAttributes(ServiceContext serviceContext);
public String[] getAvailableLanguageIds();
public String getDefaultLanguageId();
public void prepareLocalizedFieldsForImport() throws LocaleException;
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException;
@Override
public Object clone();
@Override
public int compareTo(JournalArticle journalArticle);
@Override
public int hashCode();
@Override
public CacheModel toCacheModel();
@Override
public JournalArticle toEscapedModel();
@Override
public JournalArticle toUnescapedModel();
@Override
public String toString();
@Override
public String toXmlString();
}