@StableMinor(version="12.5", sinceVersion="10.2") public class ContentVersion extends Object implements Serializable
If a content contains versioning support, it should always create a new
content version instead of modifying the existing one. If the content does
not contains versioning support, only one version will exist for each
ContentLocale
and this version should be modified when edited.
Constructor and Description |
---|
ContentVersion() |
Modifier and Type | Method and Description |
---|---|
ContentAssociation |
addContentAssociation() |
ContentPublication |
addPublication()
Adds a new publication for this version.
|
void |
delete()
Deletes this
version . |
URL |
getCanonicalUrl()
Returns the canonical URL to be used on the detail page that displays this content.
|
Collection<ContentAssociation> |
getContentAssociations()
Returns the contents associated with this version.
|
ContentLocale |
getContentLocale()
Returns the content-locale object this version belongs to.
|
String |
getId()
Returns the identifier for this content version.
|
String |
getIntroduction()
Returns the introduction for this content version.
|
String |
getItemId()
Returns the identifier for the business data this content version
refers to.
|
String |
getLastModifiedBy()
Returns the identifier of the last principal that modified this version.
|
Date |
getLastModifiedDateTime()
Returns the last modification date-time for this version.
|
String |
getPageSimpleTitle()
Returns the simple title to be used on the detail page that displays this content.
|
String |
getPageTitlePattern()
Returns the page title pattern to be used on the detail page that displays this content.
|
String |
getPrimaryName()
Returns the primary name for this content version.
|
Collection<ContentPublication> |
getPublications()
Returns the publications defined for this version.
|
String |
getSeoDescription()
Returns the description specific for SEO.
|
String |
getSocialDescription()
Returns the description specific for social usage.
|
String |
getSocialImageMediaId()
Returns the media identifier for the image specific for social usage.
|
String |
getSocialTitle()
Returns the title specific for social usage.
|
String |
getUrlPath()
Returns the content version's URL friendly path customized by the publisher.
|
String |
getUrlTitle()
Returns the title to be used when generating the URL for the detail page that displays this content.
|
int |
getVersionNumber()
Returns this version's number.
|
void |
setCanonicalUrl(URL canonicalUrl)
Sets the canonical URL to be used on the detail page that displays this content.
|
void |
setIntroduction(String introduction)
Returns the introduction for this content version.
|
void |
setItemId(String itemId)
Specifies the business data this content version refers to.
|
void |
setLastModifiedBy(String lastModifiedBy)
Sets the identifier of the last principal that modified this version.
|
void |
setLastModifiedDateTime(Date lastModifiedDateTime)
Sets the last modification date-time for this version.
|
void |
setPageSimpleTitle(String pageTitle)
Sets the simple title to be used on the detail page that displays this content.
|
void |
setPageTitlePattern(String pageTitlePattern)
Sets the page title pattern to be used on the detail page that displays this content.
|
void |
setPrimaryName(String primaryName)
Sets the primary name for this content version.
|
void |
setSeoDescription(String seoDescription)
Sets the description specific for SEO.
|
void |
setSocialDescription(String socialDescription)
Sets the description specific for social usage.
|
void |
setSocialImageMediaId(String mediaId)
Sets the image specific for social usage.
|
void |
setSocialTitle(String socialTitle)
Sets the title specific for social usage.
|
void |
setUrlPath(String urlPath)
Sets the content version's URL friendly path customized by the publisher.
|
void |
setUrlTitle(String urlTitle)
Sets the title to be used when generating the URL for the detail page that displays this content.
|
public String getId()
public String getItemId()
public void setItemId(String itemId)
public int getVersionNumber()
public String getLastModifiedBy()
public void setLastModifiedBy(String lastModifiedBy)
lastModifiedBy
- the principal identifier.public Date getLastModifiedDateTime()
public void setLastModifiedDateTime(Date lastModifiedDateTime)
lastModifiedDateTime
- the date-time to set.public String getPrimaryName()
public void setPrimaryName(String primaryName)
primaryName
- the primary name.public String getIntroduction()
public void setIntroduction(String introduction)
introduction
- public Collection<ContentAssociation> getContentAssociations()
public ContentAssociation addContentAssociation()
public Collection<ContentPublication> getPublications()
addPublication()
,
ContentPublication.delete()
public ContentLocale getContentLocale()
public String getPageSimpleTitle()
null
if no specific page title was specified.public void setPageSimpleTitle(String pageTitle)
pageTitle
- the simple title or null
if there is no specific page simple title.public String getPageTitlePattern()
null
if no specific page title pattern was specified.public void setPageTitlePattern(String pageTitlePattern)
pageTitlePattern
- the page title pattern to be used on the detail page that displays this content or null
if no specific page title pattern was specified.public URL getCanonicalUrl()
null
if no specific canonical URL was specified.public void setCanonicalUrl(URL canonicalUrl)
canonicalUrl
- the canonical URL or null
if there is no specific canonical URL.public String getUrlTitle()
null
if no specific title for URL was specified.public void setUrlTitle(String urlTitle)
urlTitle
- the title or null
if there is no specific title for URL.public String getSeoDescription()
null
if no description specific for SEO was defined.public void setSeoDescription(String seoDescription)
seoDescription
- the description to be used for SEO or null
if there is no description specific for
SEO.public String getSocialTitle()
null
if no title specific for social was defined.public void setSocialTitle(String socialTitle)
socialTitle
- the title to be used for social or null
if there is no title specific for social.public String getSocialDescription()
null
if no description specific for social was defined.public void setSocialDescription(String socialDescription)
socialDescription
- the description to be used for social or null
if there is no description
specific for social.public String getSocialImageMediaId()
null
if there is no media specific for social.public void setSocialImageMediaId(String mediaId)
mediaId
- the media identifier or null
if there is no image specific for social.public String getUrlPath()
public void setUrlPath(String urlPath)
urlPath
- the content version's URL friendly path customized by the publisher.public ContentPublication addPublication()
getPublications()
public void delete() throws PortalException
version
.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.