@StableMinor(version="12.3", sinceVersion="4.2") public class ContentLocale extends Object implements Serializable
ContentVersion
in each instance of this
class.Modifier and Type | Method and Description |
---|---|
ContentComment |
addComment()
Adds a new comment.
|
boolean |
addTag(String tag)
Associates a tag to this
ContentLocale . |
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.
|
Collection<ContentTag> |
getTags()
Returns the tags associated with this
ContentLocale . |
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.
|
boolean |
removeTag(ContentTag contentTag)
Removes the association between this
ContentLocale and the given ContentTag . |
void |
setCreatedBy(String createdBy)
Sets the principal that created this object.
|
void |
setCreatedDateTime(Date createdDateTime)
Sets the date-time this object was created.
|
void |
setPublishedVersion(ContentVersion publishedVersion)
Sets the published version of the content in this locale.
|
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 Collection<ContentTag> getTags()
ContentLocale
.ContentTag
s associated with
this ContentLocale
.addTag(String)
,
removeTag(ContentTag)
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()
public boolean addTag(String tag)
ContentLocale
. Returns true if the tag was associated
to this ContentLocale
, otherwise return false.
If the given tag name corresponds to a tag's active content version in the same tag repository, that tag is used for the association. Otherwise a new tag is created for the association.
The tag name comparison is case insensitive.
The max length of a tag name is 30 characters.
tag
- the tag name.ContentLocale
, false otherwise.IllegalArgumentException
- if the given tag name is not valid.IllegalStateException
- if the tag repository is not associated to the content repository.removeTag(ContentTag)
,
getTags()
public boolean removeTag(ContentTag contentTag)
ContentLocale
and the given ContentTag
.contentTag,
- the content tag.addTag(String)
,
getTags()
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.