|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.content.core.ContentVersion
@StableMinor(version="6.1", 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 . |
java.util.Collection<ContentAssociation> |
getContentAssociations()
Returns the contents associated with this version. |
ContentLocale |
getContentLocale()
Returns the content-locale object this version belongs to. |
java.lang.String |
getId()
Returns the identifier for this content version. |
java.lang.String |
getIntroduction()
Returns the introduction for this content version. |
java.lang.String |
getItemId()
Returns the identifier for the business data this content version refers to. |
java.lang.String |
getLastModifiedBy()
Returns the identifier of the last principal that modified this version. |
java.util.Date |
getLastModifiedDateTime()
Returns the last modification date-time for this version. |
java.lang.String |
getPrimaryName()
Returns the primary name for this content version. |
java.util.Collection<ContentPublication> |
getPublications()
Returns the publications defined for this version. |
int |
getVersionNumber()
Returns this version's number. |
void |
setIntroduction(java.lang.String introduction)
Returns the introduction for this content version. |
void |
setItemId(java.lang.String itemId)
Specifies the business data this content version refers to. |
void |
setLastModifiedBy(java.lang.String lastModifiedBy)
Sets the identifier of the last principal that modified this version. |
void |
setLastModifiedDateTime(java.util.Date lastModifiedDateTime)
Sets the last modification date-time for this version. |
void |
setPrimaryName(java.lang.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 java.lang.String getId()
public java.lang.String getItemId()
public void setItemId(java.lang.String itemId)
public int getVersionNumber()
public java.lang.String getLastModifiedBy()
public void setLastModifiedBy(java.lang.String lastModifiedBy)
lastModifiedBy
- the principal identifier.public java.util.Date getLastModifiedDateTime()
public void setLastModifiedDateTime(java.util.Date lastModifiedDateTime)
lastModifiedDateTime
- the date-time to set.public java.lang.String getPrimaryName()
public void setPrimaryName(java.lang.String primaryName)
primaryName
- the primary name.public java.lang.String getIntroduction()
public void setIntroduction(java.lang.String introduction)
introduction
- public java.util.Collection<ContentAssociation> getContentAssociations()
public ContentAssociation addContentAssociation()
public java.util.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 |