|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.core.ContentVersion
@StableMinor(version="6.2", sinceVersion="4.2") public class ContentVersion
Represents a specific version of a content. A content version contains publication definition, metadata and a reference to the business data it relates to.
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 when edited.
Constructor Summary | |
---|---|
ContentVersion()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentVersion()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |