|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.core.Content
@StableMinor(version="6.1", sinceVersion="4.2") public class Content
A content entity object. A content may have its data specified in multiple locales.
Constructor Summary | |
---|---|
Content()
|
Method Summary | |
---|---|
ContentLocale |
addContentLocale(java.util.Locale locale)
Adds a new locale specific content object in this content. |
ContentLocale |
getContentLocale(java.util.Locale locale,
boolean fallbackToDefaultLocale)
Returns the locale specific content object, for the given locale, optionally using the default locale. |
java.util.Collection<ContentLocale> |
getContentLocales()
Returns the locale specific objects of this content. |
java.util.Locale |
getDefaultLocale()
Returns the default locale for this content. |
java.lang.String |
getId()
Returns this content's identifier. |
java.lang.String |
getServiceInstanceId()
Returns the identifier of the service instance this content belongs to. |
java.lang.String |
getSourceId()
Returns the source this content belongs to. |
void |
setDefaultLocale(java.util.Locale defaultLocale)
Sets the default locale for this content. |
void |
setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the service instance this content belongs to. |
void |
setSourceId(java.lang.String sourceId)
Sets the source this content belongs to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Content()
Method Detail |
---|
public java.lang.String getId()
public java.lang.String getServiceInstanceId()
public void setServiceInstanceId(java.lang.String serviceInstanceId)
serviceInstanceId
- the service instance identifier.public java.lang.String getSourceId()
sourceId
- the source identifier.public void setSourceId(java.lang.String sourceId)
sourceId
- the source identifier.public java.util.Locale getDefaultLocale()
null
if
this content has no default locale.public void setDefaultLocale(java.util.Locale defaultLocale)
defaultLocale
- the locale to set. May be null
to set
that this content has no default locale.public java.util.Collection<ContentLocale> getContentLocales()
public ContentLocale addContentLocale(java.util.Locale locale) throws PortalException
locale
- the locale.
PortalObjectAlreadyExistsException
- if this content already
contains an object for the given locale.
PortalException
public ContentLocale getContentLocale(java.util.Locale locale, boolean fallbackToDefaultLocale)
locale
- the locale.fallbackToDefaultLocale
- if true, the default locale for this content
will be used if no contentLocale for the specified locale exists.
null
if
no object exists, according to the given parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |