lumis.content.core
Class ContentVersion

Package class diagram package ContentVersion
java.lang.Object
  extended by lumis.content.core.ContentVersion
All Implemented Interfaces:
Serializable

@StableMinor(version="5.5",
             sinceVersion="4.2")
public class ContentVersion
extends Object
implements Serializable

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.

Since:
4.2.0
See Also:
Serialized Form

Constructor Summary
ContentVersion()
           
 
Method Summary
 ContentAssociation addContentAssociation()
           
 ContentPublication addPublication()
          Adds a new publication for 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

ContentVersion

public ContentVersion()
Method Detail

getId

public String getId()
Returns the identifier for this content version.

Returns:
the identifier for this content version.
Since:
4.2.0

getItemId

public String getItemId()
Returns the identifier for the business data this content version refers to.

Returns:
the identifier for the business data this content version refers to.
Since:
4.2.0

setItemId

public void setItemId(String itemId)
Specifies the business data this content version refers to.

Since:
4.2.0

getVersionNumber

public int getVersionNumber()
Returns this version's number.

Returns:
the version number.
Since:
4.2.0

getLastModifiedBy

public String getLastModifiedBy()
Returns the identifier of the last principal that modified this version.

Returns:
the principal identifier.
Since:
4.2.0

setLastModifiedBy

public void setLastModifiedBy(String lastModifiedBy)
Sets the identifier of the last principal that modified this version.

Parameters:
lastModifiedBy - the principal identifier.
Since:
4.2.0

getLastModifiedDateTime

public Date getLastModifiedDateTime()
Returns the last modification date-time for this version.

Returns:
the last modification date-time for this version.
Since:
4.2.0

setLastModifiedDateTime

public void setLastModifiedDateTime(Date lastModifiedDateTime)
Sets the last modification date-time for this version.

Parameters:
lastModifiedDateTime - the date-time to set.
Since:
4.2.0

getPrimaryName

public String getPrimaryName()
Returns the primary name for this content version.

Returns:
the primary name.
Since:
4.2.0

setPrimaryName

public void setPrimaryName(String primaryName)
Sets the primary name for this content version.

Parameters:
primaryName - the primary name.
Since:
4.2.0

getIntroduction

public String getIntroduction()
Returns the introduction for this content version.

Returns:
the introduction
Since:
4.2.0

setIntroduction

public void setIntroduction(String introduction)
Returns the introduction for this content version.

Parameters:
introduction -
Since:
4.2.0

getContentAssociations

public Collection<ContentAssociation> getContentAssociations()
Returns the contents associated with this version. The returned collection may be changed to edit which contents are associated with this content version.

Returns:
the contents associated with this version.
Since:
4.2.0

addContentAssociation

public ContentAssociation addContentAssociation()

getPublications

public Collection<ContentPublication> getPublications()
Returns the publications defined for this version.

Returns:
an unmodifiable view of this version's publications.
Since:
4.2.0
See Also:
addPublication(), ContentPublication.delete()

getContentLocale

public ContentLocale getContentLocale()
Returns the content-locale object this version belongs to.

Returns:
the content-locale object.
Since:
4.2.0

addPublication

public ContentPublication addPublication()
Adds a new publication for this version.

Returns:
the new publication added.
Since:
4.2.0
See Also:
getPublications()


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.