@StableMinor(version="9.0", sinceVersion="4.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 . |
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 |
getPrimaryName()
Returns the primary name for this content version.
|
Collection<ContentPublication> |
getPublications()
Returns the publications defined for this version.
|
int |
getVersionNumber()
Returns this version's number.
|
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 |
setPrimaryName(String primaryName)
Sets the primary name for this content version.
|
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 ContentPublication addPublication()
getPublications()
public void delete() throws PortalException
version
.PortalException
Lumisportal 9.0.0.160603 - Copyright © 2006–2016 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.