Liferay 6.2-ce-ga5

com.liferay.portlet.journal.model.impl
Class JournalArticleImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<JournalArticle>
      extended by com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
          extended by com.liferay.portlet.journal.model.impl.JournalArticleBaseImpl
              extended by com.liferay.portlet.journal.model.impl.JournalArticleImpl
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<JournalArticle>, ClassedModel, GroupedModel, PersistedModel, ResourcedModel, StagedGroupedModel, StagedModel, TrashedModel, TreeModel, TypedModel, WorkflowedModel, JournalArticle, JournalArticleModel, Serializable, Cloneable, Comparable<JournalArticle>

public class JournalArticleImpl
extends JournalArticleBaseImpl

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
ARTICLEID_COLUMN_BITMASK, CLASSNAMEID_COLUMN_BITMASK, CLASSPK_COLUMN_BITMASK, COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, DISPLAYDATE_COLUMN_BITMASK, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FOLDERID_COLUMN_BITMASK, GROUPID_COLUMN_BITMASK, INDEXABLE_COLUMN_BITMASK, LAYOUTUUID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, ORDER_BY_JPQL, ORDER_BY_SQL, RESOURCEPRIMKEY_COLUMN_BITMASK, SESSION_FACTORY, SMALLIMAGEID_COLUMN_BITMASK, STATUS_COLUMN_BITMASK, STRUCTUREID_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TEMPLATEID_COLUMN_BITMASK, TX_MANAGER, URLTITLE_COLUMN_BITMASK, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK, VERSION_COLUMN_BITMASK
 
Fields inherited from interface com.liferay.portlet.journal.model.JournalArticle
ARTICLE_ID_ACCESSOR
 
Constructor Summary
JournalArticleImpl()
           
 
Method Summary
 String buildTreePath()
           
 String getArticleImageURL(ThemeDisplay themeDisplay)
           
 JournalArticleResource getArticleResource()
           
 String getArticleResourceUuid()
           
 String[] getAvailableLanguageIds()
           
 String[] getAvailableLocales()
          Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds()
 String getContentByLocale(String languageId)
           
static String getContentByLocale(String content, boolean templateDriven, String languageId)
           
static String getContentByLocale(String content, String languageId, Map<String,String> tokens)
           
 String getDefaultLanguageId()
           
 String getDefaultLocale()
          Deprecated. As of 6.2.0, replaced by getDefaultLanguageId()
 JournalFolder getFolder()
           
 String getSmallImageType()
           
 StagedModelType getStagedModelType()
           
 Map<Locale,String> getTitleMap()
          Returns a map of the locales and localized titles of this journal article.
 long getTrashEntryClassPK()
          Returns the class primary key of the trash entry for this journal article.
 boolean hasApprovedVersion()
           
 boolean isInTrashExplicitly()
           
 boolean isTemplateDriven()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void setSmallImageType(String smallImageType)
           
 
Methods inherited from class com.liferay.portlet.journal.model.impl.JournalArticleBaseImpl
persist, updateTreePath
 
Methods inherited from class com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
clone, compareTo, equals, getApproved, getArticleId, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getContent, getCreateDate, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getDisplayDate, getExpandoBridge, getExpirationDate, getFolderId, getGroupId, getId, getIndexable, getLayoutUuid, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getOriginalArticleId, getOriginalClassNameId, getOriginalClassPK, getOriginalCompanyId, getOriginalDisplayDate, getOriginalFolderId, getOriginalGroupId, getOriginalIndexable, getOriginalLayoutUuid, getOriginalResourcePrimKey, getOriginalSmallImageId, getOriginalStatus, getOriginalStructureId, getOriginalTemplateId, getOriginalUrlTitle, getOriginalUserId, getOriginalUuid, getOriginalVersion, getPrimaryKey, getPrimaryKeyObj, getResourcePrimKey, getReviewDate, getSmallImage, getSmallImageId, getSmallImageURL, getStatus, getStatusByUserId, getStatusByUserName, getStatusByUserUuid, getStatusDate, getStructureId, getTemplateId, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTrashEntry, getTrashHandler, getTreePath, getType, getUrlTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, isApproved, isDenied, isDraft, isExpired, isInactive, isIncomplete, isIndexable, isInTrash, isInTrashContainer, isPending, isResourceMain, isScheduled, isSmallImage, prepareLocalizedFieldsForImport, resetOriginalValues, setArticleId, setClassName, setClassNameId, setClassPK, setCompanyId, setContent, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setDisplayDate, setExpandoBridgeAttributes, setExpirationDate, setFolderId, setGroupId, setId, setIndexable, setLayoutUuid, setModelAttributes, setModifiedDate, setPrimaryKey, setPrimaryKeyObj, setResourcePrimKey, setReviewDate, setSmallImage, setSmallImageId, setSmallImageURL, setStatus, setStatusByUserId, setStatusByUserName, setStatusByUserUuid, setStatusDate, setStructureId, setTemplateId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setTreePath, setType, setUrlTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.journal.model.JournalArticleModel
clone, compareTo, getApproved, getArticleId, getClassName, getClassNameId, getClassPK, getCompanyId, getContent, getCreateDate, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getDisplayDate, getExpandoBridge, getExpirationDate, getFolderId, getGroupId, getId, getIndexable, getLayoutUuid, getModifiedDate, getPrimaryKey, getPrimaryKeyObj, getResourcePrimKey, getReviewDate, getSmallImage, getSmallImageId, getSmallImageURL, getStatus, getStatusByUserId, getStatusByUserName, getStatusByUserUuid, getStatusDate, getStructureId, getTemplateId, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTrashEntry, getTrashHandler, getTreePath, getType, getUrlTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, isApproved, isCachedModel, isDenied, isDraft, isEscapedModel, isExpired, isInactive, isIncomplete, isIndexable, isInTrash, isInTrashContainer, isNew, isPending, isResourceMain, isScheduled, isSmallImage, prepareLocalizedFieldsForImport, setArticleId, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setContent, setCreateDate, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setDisplayDate, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpirationDate, setFolderId, setGroupId, setId, setIndexable, setLayoutUuid, setModifiedDate, setNew, setPrimaryKey, setPrimaryKeyObj, setResourcePrimKey, setReviewDate, setSmallImage, setSmallImageId, setSmallImageURL, setStatus, setStatusByUserId, setStatusByUserName, setStatusByUserUuid, setStatusDate, setStructureId, setTemplateId, setTitle, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setTreePath, setType, setUrlTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
 
Methods inherited from interface com.liferay.portal.model.BaseModel
getModelAttributes, resetOriginalValues, setModelAttributes
 
Methods inherited from interface com.liferay.portal.model.ClassedModel
getModelClass, getModelClassName
 
Methods inherited from interface com.liferay.portal.model.TreeModel
getPrimaryKeyObj, getTreePath
 

Constructor Detail

JournalArticleImpl

public JournalArticleImpl()
Method Detail

getContentByLocale

public static String getContentByLocale(String content,
                                        boolean templateDriven,
                                        String languageId)

getContentByLocale

public static String getContentByLocale(String content,
                                        String languageId,
                                        Map<String,String> tokens)

buildTreePath

public String buildTreePath()
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getArticleImageURL

public String getArticleImageURL(ThemeDisplay themeDisplay)

getArticleResource

public JournalArticleResource getArticleResource()
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getArticleResourceUuid

public String getArticleResourceUuid()
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface JournalArticleModel
Overrides:
getAvailableLanguageIds in class JournalArticleModelImpl

getAvailableLocales

public String[] getAvailableLocales()
Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds()


getContentByLocale

public String getContentByLocale(String languageId)

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface JournalArticleModel
Overrides:
getDefaultLanguageId in class JournalArticleModelImpl

getDefaultLocale

public String getDefaultLocale()
Deprecated. As of 6.2.0, replaced by getDefaultLanguageId()


getFolder

public JournalFolder getFolder()
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getSmallImageType

public String getSmallImageType()
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel
Overrides:
getStagedModelType in class JournalArticleModelImpl

getTitleMap

public Map<Locale,String> getTitleMap()
Description copied from interface: JournalArticleModel
Returns a map of the locales and localized titles of this journal article.

Specified by:
getTitleMap in interface JournalArticleModel
Overrides:
getTitleMap in class JournalArticleModelImpl
Returns:
the locales and localized titles of this journal article

getTrashEntryClassPK

public long getTrashEntryClassPK()
Description copied from interface: JournalArticleModel
Returns the class primary key of the trash entry for this journal article.

Specified by:
getTrashEntryClassPK in interface TrashedModel
Specified by:
getTrashEntryClassPK in interface JournalArticleModel
Overrides:
getTrashEntryClassPK in class JournalArticleModelImpl
Returns:
the class primary key of the trash entry for this journal article

hasApprovedVersion

public boolean hasApprovedVersion()
                           throws SystemException
Throws:
SystemException

isInTrashExplicitly

public boolean isInTrashExplicitly()
                            throws SystemException
Throws:
SystemException

isTemplateDriven

public boolean isTemplateDriven()

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface JournalArticleModel
Overrides:
prepareLocalizedFieldsForImport in class JournalArticleModelImpl
Parameters:
defaultImportLocale - the default imported locale
Throws:
LocaleException - if a locale exception occurred

setSmallImageType

public void setSmallImageType(String smallImageType)

Liferay 6.2-ce-ga5