|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.core.ContentLocale
@StableMinor(version="6.2", sinceVersion="4.2") public class ContentLocale
Contains the content information for a specific locale.
There must be at least one ContentVersion
in each instance of this
class.
Method Summary | |
---|---|
ContentComment |
addComment()
Adds a new comment. |
ContentVersion |
addVersion()
Adds a new version. |
ContentVersion |
addVersionBasedOnAnother(ContentVersion pBaseVersion)
Adds a new version, based on an already existing version. |
void |
delete()
Deletes this instance from persistence. |
ContentVersion |
getActiveVersion()
Returns the active version of the content in this locale. |
List<ContentComment> |
getComments()
Returns the comments for the content in this locale. |
Content |
getContent()
Returns the content this object refers to. |
String |
getCreatedBy()
Returns the identifier of the principal that created this object. |
Date |
getCreatedDateTime()
Returns the creation date-time of this entry. |
String |
getId()
Returns the identifier for this object. |
Locale |
getLocale()
Returns the locale this object refers to. |
String |
getLockedBy()
Returns who created the lock. |
Date |
getLockedDate()
Returns the date the lock was created. |
LockType |
getLockType()
Returns the lock for the current content-locale. |
ContentVersion |
getPublishedVersion()
Returns the published version of the content in this locale. |
List<ContentVersion> |
getVersions()
Returns the versions for the content in this locale. |
void |
move(Content newContent,
Locale newLocale)
Moves this content locale object to another content or locale value. |
void |
setCreatedBy(String createdBy)
Sets the principal that created this object. |
void |
setCreatedDateTime(Date createdDateTime)
Returns the date-time this object was created. |
void |
setPublishedVersion(ContentVersion publishedVersion)
Sets the published version of the content in this locale. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getId()
public String getCreatedBy()
public void setCreatedBy(String createdBy)
createdBy
- the principal identifier.public Date getCreatedDateTime()
public void setCreatedDateTime(Date createdDateTime)
createdDateTime
- the date-time this object was created.public Locale getLocale()
public ContentVersion getActiveVersion()
public ContentVersion getPublishedVersion()
public void setPublishedVersion(ContentVersion publishedVersion)
publishedVersion
- the published version to set.public List<ContentComment> getComments()
public List<ContentVersion> getVersions()
addVersion()
public Content getContent()
public ContentComment addComment()
getComments()
public ContentVersion addVersion()
getVersions()
,
getActiveVersion()
,
addVersionBasedOnAnother(ContentVersion)
public ContentVersion addVersionBasedOnAnother(ContentVersion pBaseVersion)
baseVersion
- the version that will be used as a base to create the new
version to be added.
addVersion()
public void delete() throws PortalException
PortalException
public void move(Content newContent, Locale newLocale) throws PortalException
Deletes this contentLocale's original content, if it becomes empty after the move is performed. In this case, association references to that content is updated to refer to contentLocale's new content.
newContent
- a persisted content, to which this content locale is
to be moved to. If null
, this content locale will be
moved to a new content.newLocale
- the locale to set in this contentLocale.
PortalObjectAlreadyExistsException
- if this operation would result
in a content having more than one contentLocale with the same locale value.
PortalException
public LockType getLockType()
public String getLockedBy()
public Date getLockedDate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |