com.liferay.portlet.journal.model.impl
Class JournalArticleImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<JournalArticle>
com.liferay.portlet.journal.model.impl.JournalArticleModelImpl
com.liferay.portlet.journal.model.impl.JournalArticleBaseImpl
com.liferay.portlet.journal.model.impl.JournalArticleImpl
- All Implemented Interfaces:
- AttachedModel, AuditedModel, BaseModel<JournalArticle>, ClassedModel, GroupedModel, LocalizedModel, PersistedModel, ResourcedModel, StagedGroupedModel, StagedModel, TrashedModel, TreeModel, TypedModel, WorkflowedModel, JournalArticle, JournalArticleModel, Serializable, Cloneable, Comparable<JournalArticle>
public class JournalArticleImpl
- extends JournalArticleBaseImpl
- See Also:
- Serialized Form
| 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, DDMSTRUCTUREKEY_COLUMN_BITMASK, DDMTEMPLATEKEY_COLUMN_BITMASK, 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, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, URLTITLE_COLUMN_BITMASK, USERID_COLUMN_BITMASK, UUID_COLUMN_BITMASK, VERSION_COLUMN_BITMASK |
|
Method Summary |
String |
buildTreePath()
|
long |
getArticleImageId(String elInstanceId,
String elName,
String languageId)
|
String |
getArticleImageURL(ThemeDisplay themeDisplay)
|
JournalArticleResource |
getArticleResource()
|
String |
getArticleResourceUuid()
|
String[] |
getAvailableLanguageIds()
|
String[] |
getAvailableLocales()
Deprecated. As of 6.2.0, replaced by getAvailableLanguageIds() |
static String |
getContentByLocale(Document document,
String languageId)
|
static String |
getContentByLocale(Document document,
String languageId,
Map<String,String> tokens)
|
String |
getContentByLocale(String languageId)
|
static String |
getContentByLocale(String content,
boolean templateDriven,
String languageId)
Deprecated. As of 7.0.0, replaced by getContentByLocale(Document,
String) |
DDMStructure |
getDDMStructure()
|
DDMTemplate |
getDDMTemplate()
|
String |
getDefaultLanguageId()
|
String |
getDefaultLocale()
Deprecated. As of 6.2.0, replaced by getDefaultLanguageId() |
Document |
getDocument()
|
JournalFolder |
getFolder()
|
Layout |
getLayout()
|
String |
getSmallImageType()
|
StagedModelType |
getStagedModelType()
|
String |
getStructureId()
Deprecated. As of 7.0.0, replaced by JournalArticleModelImpl.getDDMStructureKey() |
String |
getTemplateId()
Deprecated. As of 7.0.0, replaced by JournalArticleModelImpl.getDDMTemplateKey() |
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 |
isTemplateDriven()
Deprecated. As of 7.0.0, with no direct replacement |
void |
prepareLocalizedFieldsForImport(Locale defaultImportLocale)
|
void |
setContent(String content)
Sets the content of this journal article. |
void |
setDefaultLanguageId(String defaultLanguageId)
|
void |
setDocument(Document document)
|
void |
setSmallImageType(String smallImageType)
|
void |
setStructureId(String ddmStructureKey)
Deprecated. As of 7.0.0, replaced by JournalArticleModelImpl.setDDMStructureKey(String) |
void |
setTemplateId(String ddmTemplateKey)
Deprecated. As of 7.0.0, replaced by JournalArticleModelImpl.setDDMTemplateKey(String) |
void |
setTitle(String title)
Sets the title of this journal article. |
| Methods inherited from class com.liferay.portlet.journal.model.impl.JournalArticleModelImpl |
clone, compareTo, equals, getApproved, getArticleId, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getContent, getCreateDate, getDDMStructureKey, getDDMTemplateKey, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getDisplayDate, getExpandoBridge, getExpirationDate, getFolderId, getGroupId, getId, getIndexable, getLayoutUuid, getModelAttributes, getModelClass, getModelClassName, getModifiedDate, getOriginalArticleId, getOriginalClassNameId, getOriginalClassPK, getOriginalCompanyId, getOriginalDDMStructureKey, getOriginalDDMTemplateKey, getOriginalDisplayDate, getOriginalFolderId, getOriginalGroupId, getOriginalIndexable, getOriginalLayoutUuid, getOriginalResourcePrimKey, getOriginalSmallImageId, getOriginalStatus, getOriginalUrlTitle, getOriginalUserId, getOriginalUuid, getOriginalVersion, getPrimaryKey, getPrimaryKeyObj, getResourcePrimKey, getReviewDate, getSmallImage, getSmallImageId, getSmallImageURL, getStatus, getStatusByUserId, getStatusByUserName, getStatusByUserUuid, getStatusDate, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTrashEntry, getTrashHandler, getTreePath, getUrlTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, hasSetModifiedDate, isApproved, isDenied, isDraft, isEntityCacheEnabled, isExpired, isFinderCacheEnabled, isInactive, isIncomplete, isIndexable, isInTrash, isInTrashContainer, isInTrashExplicitly, isInTrashImplicitly, isPending, isResourceMain, isScheduled, isSmallImage, prepareLocalizedFieldsForImport, resetOriginalValues, setArticleId, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setDDMStructureKey, setDDMTemplateKey, 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, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setTreePath, setUrlTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString |
| Methods inherited from interface com.liferay.portlet.journal.model.JournalArticleModel |
clone, compareTo, getApproved, getArticleId, getClassName, getClassNameId, getClassPK, getCompanyId, getContent, getCreateDate, getDDMStructureKey, getDDMTemplateKey, 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, getTitle, getTitle, getTitle, getTitle, getTitle, getTitleCurrentLanguageId, getTitleCurrentValue, getTrashEntry, getTrashHandler, getTreePath, getUrlTitle, getUserId, getUserName, getUserUuid, getUuid, getVersion, hashCode, isApproved, isCachedModel, isDenied, isDraft, isEscapedModel, isExpired, isInactive, isIncomplete, isIndexable, isInTrash, isInTrashContainer, isInTrashExplicitly, isInTrashImplicitly, isNew, isPending, isResourceMain, isScheduled, isSmallImage, prepareLocalizedFieldsForImport, setArticleId, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setCreateDate, setDDMStructureKey, setDDMTemplateKey, 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, setTitle, setTitle, setTitleCurrentLanguageId, setTitleMap, setTitleMap, setTreePath, setUrlTitle, setUserId, setUserName, setUserUuid, setUuid, setVersion, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString |
JournalArticleImpl
public JournalArticleImpl()
getContentByLocale
public static String getContentByLocale(Document document,
String languageId)
getContentByLocale
public static String getContentByLocale(Document document,
String languageId,
Map<String,String> tokens)
getContentByLocale
@Deprecated
public static String getContentByLocale(String content,
boolean templateDriven,
String languageId)
- Deprecated. As of 7.0.0, replaced by
getContentByLocale(Document,
String)
buildTreePath
public String buildTreePath()
throws PortalException
- Throws:
PortalException
getArticleImageId
public long getArticleImageId(String elInstanceId,
String elName,
String languageId)
getArticleImageURL
public String getArticleImageURL(ThemeDisplay themeDisplay)
getArticleResource
public JournalArticleResource getArticleResource()
throws PortalException
- Throws:
PortalException
getArticleResourceUuid
public String getArticleResourceUuid()
throws PortalException
- Throws:
PortalException
getAvailableLanguageIds
public String[] getAvailableLanguageIds()
- Specified by:
getAvailableLanguageIds in interface LocalizedModel- Specified by:
getAvailableLanguageIds in interface JournalArticleModel- Overrides:
getAvailableLanguageIds in class JournalArticleModelImpl
getAvailableLocales
@Deprecated
public String[] getAvailableLocales()
- Deprecated. As of 6.2.0, replaced by
getAvailableLanguageIds()
getContentByLocale
public String getContentByLocale(String languageId)
getDDMStructure
public DDMStructure getDDMStructure()
throws PortalException
- Throws:
PortalException
getDDMTemplate
public DDMTemplate getDDMTemplate()
throws PortalException
- Throws:
PortalException
getDefaultLanguageId
public String getDefaultLanguageId()
- Specified by:
getDefaultLanguageId in interface LocalizedModel- Specified by:
getDefaultLanguageId in interface JournalArticleModel- Overrides:
getDefaultLanguageId in class JournalArticleModelImpl
getDefaultLocale
@Deprecated
public String getDefaultLocale()
- Deprecated. As of 6.2.0, replaced by
getDefaultLanguageId()
getDocument
public Document getDocument()
- Specified by:
getDocument in interface JournalArticle- Overrides:
getDocument in class JournalArticleModelImpl
getFolder
public JournalFolder getFolder()
throws PortalException
- Throws:
PortalException
getLayout
public Layout getLayout()
getSmallImageType
public String getSmallImageType()
throws PortalException
- Throws:
PortalException
getStagedModelType
public StagedModelType getStagedModelType()
- Specified by:
getStagedModelType in interface StagedModel- Overrides:
getStagedModelType in class JournalArticleModelImpl
getStructureId
@Deprecated
public String getStructureId()
- Deprecated. As of 7.0.0, replaced by
JournalArticleModelImpl.getDDMStructureKey()
getTemplateId
@Deprecated
public String getTemplateId()
- Deprecated. As of 7.0.0, replaced by
JournalArticleModelImpl.getDDMTemplateKey()
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()
isTemplateDriven
@Deprecated
public boolean isTemplateDriven()
- Deprecated. As of 7.0.0, with no direct replacement
prepareLocalizedFieldsForImport
public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
throws LocaleException
- Specified by:
prepareLocalizedFieldsForImport in interface LocalizedModel- Specified by:
prepareLocalizedFieldsForImport in interface JournalArticleModel- Overrides:
prepareLocalizedFieldsForImport in class JournalArticleModelImpl
- Parameters:
defaultImportLocale - the default imported locale
- Throws:
LocaleException - if a locale exception occurred
setContent
public void setContent(String content)
- Description copied from interface:
JournalArticleModel
- Sets the content of this journal article.
- Specified by:
setContent in interface JournalArticleModel- Overrides:
setContent in class JournalArticleModelImpl
- Parameters:
content - the content of this journal article
setDefaultLanguageId
public void setDefaultLanguageId(String defaultLanguageId)
- Specified by:
setDefaultLanguageId in interface JournalArticle- Overrides:
setDefaultLanguageId in class JournalArticleModelImpl
setDocument
public void setDocument(Document document)
- Specified by:
setDocument in interface JournalArticle- Overrides:
setDocument in class JournalArticleModelImpl
setSmallImageType
public void setSmallImageType(String smallImageType)
setStructureId
@Deprecated
public void setStructureId(String ddmStructureKey)
- Deprecated. As of 7.0.0, replaced by
JournalArticleModelImpl.setDDMStructureKey(String)
setTemplateId
@Deprecated
public void setTemplateId(String ddmTemplateKey)
- Deprecated. As of 7.0.0, replaced by
JournalArticleModelImpl.setDDMTemplateKey(String)
setTitle
public void setTitle(String title)
- Description copied from interface:
JournalArticleModel
- Sets the title of this journal article.
- Specified by:
setTitle in interface JournalArticleModel- Overrides:
setTitle in class JournalArticleModelImpl
- Parameters:
title - the title of this journal article