Package lumis.portal.bigdata
Interface StandardDocument.Standard
-
- Enclosing class:
- StandardDocument
@StableMinor(version="17.0", sinceVersion="8.1") public static interface StandardDocument.Standard
API that provides access to standard fields.- Since:
- 8.1.0
- Version:
- $Revision$ $Date$
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
StandardDocument.Standard.Categories
API that provides access to categorization fields.static interface
StandardDocument.Standard.Publication
API that provides access to publications fields.static interface
StandardDocument.Standard.Tag
Represents a content tag.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addContextIds(java.lang.String... contextIds)
Adds the given context identifiers in this document.void
addContextIds(java.util.Collection<java.lang.String> contextIds)
Adds the given context identifiers in this document.void
addOtherLocales(java.lang.String... otherLocales)
Adds other locales of this document.void
addOtherLocales(java.util.Collection<java.lang.String> otherLocales)
Adds other locales of this document.StandardDocument.Standard.Publication
addPublication()
Adds a new publications field in this document.StandardDocument.Standard.Tag
addTag()
Adds a tag in the tag list of this content locale and returns it.StandardDocument.Standard.Categories
getCategories()
Returns the value ofStandardDocumentType.StandardFields.CATEGORIES
stored in this document.java.util.List<java.lang.String>
getContextIds()
Returns the context identifiers present in this document.java.lang.String
getIntroduction()
Returns the introduction present in this document.java.lang.String
getIntroductionImageFileId()
Returns the file identifier of the introduction image present in this document.java.lang.String
getIntroductionImageHref()
Returns the href (absolute or relative to portal root) of the introduction image present in this document.java.lang.String
getItemId()
Returns the item identifier present in this document.java.lang.String
getLocale()
Returns this document locale.java.util.Collection<java.lang.String>
getOtherLocales()
Returns the other locales of this document.java.lang.Double
getPopularity()
Returns this document popularity.java.util.List<StandardDocument.Standard.Publication>
getPublications()
Returns the access to the fields belonging to thepublications
fields in this document.java.util.Date
getPublishDateTime()
Returns the publish date time in this document.java.lang.String
getServiceId()
Returns the service identifier present in this document.java.lang.String
getServiceInstanceId()
Returns the service instance identifier present in this document.java.lang.String
getSlug()
Returns the slug in this document.java.lang.String
getSourceId()
Returns this document sourceId.java.util.List<StandardDocument.Standard.Tag>
getTags()
Returns the tag list present in this content locale.java.lang.String
getTitle()
Returns the title present in this document.java.lang.Boolean
isDefaultLocale()
Returns whether this document is the default document for missing locales.void
setDefaultLocale(java.lang.Boolean isDefault)
Sets whether this document is the default document for missing locales.
This means this document should be used when no other equivalent document exist for a given search or filter.void
setIntroduction(java.lang.String introduction)
Sets the given introduction in this document.void
setIntroductionImageFileId(java.lang.String introductionImageFileId)
Sets the file identifier corresponding to the introduction image in this document.void
setIntroductionImageHref(java.lang.String introductionImageHref)
Sets the href (absolute or relative to portal root) corresponding to the introduction image in this document.void
setItemId(java.lang.String itemId)
Sets the given item identifier in this document.void
setLocale(java.lang.String locale)
Sets the locale.void
setPopularity(java.lang.Double popularity)
Sets the popularity.void
setPublishDateTime(java.util.Date publishDateTime)
Sets the publish date time in this document.void
setServiceId(java.lang.String serviceId)
Sets the given service identifier in this document.void
setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the service instance identifier in this document.void
setSlug(java.lang.String slug)
Sets the slug.void
setSourceId(java.lang.String sourceId)
Sets the sourceId.void
setTitle(java.lang.String title)
Sets the given title in this document.
-
-
-
Method Detail
-
setServiceId
void setServiceId(java.lang.String serviceId)
Sets the given service identifier in this document.- Parameters:
serviceId
- the service identifier to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.SERVICE_ID
-
getServiceId
java.lang.String getServiceId()
Returns the service identifier present in this document.- Returns:
- the service identifier present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.SERVICE_ID
-
setServiceInstanceId
void setServiceInstanceId(java.lang.String serviceInstanceId)
Sets the service instance identifier in this document.- Parameters:
serviceInstanceId
- the service instance identifier to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.SERVICE_INSTANCE_ID
-
getServiceInstanceId
java.lang.String getServiceInstanceId()
Returns the service instance identifier present in this document.- Returns:
- the service instance identifier present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.SERVICE_INSTANCE_ID
-
setTitle
void setTitle(java.lang.String title)
Sets the given title in this document.- Parameters:
title
- the title value to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.TITLE
-
getTitle
java.lang.String getTitle()
Returns the title present in this document.- Returns:
- the title present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.TITLE
-
setIntroduction
void setIntroduction(java.lang.String introduction)
Sets the given introduction in this document.- Parameters:
introduction
- the introduction value to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION
-
getIntroduction
java.lang.String getIntroduction()
Returns the introduction present in this document.- Returns:
- the introduction present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION
-
setIntroductionImageFileId
void setIntroductionImageFileId(java.lang.String introductionImageFileId)
Sets the file identifier corresponding to the introduction image in this document.- Parameters:
introductionImageFileId
- the introduction image file identifier to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_FILE_ID
-
getIntroductionImageFileId
java.lang.String getIntroductionImageFileId()
Returns the file identifier of the introduction image present in this document.- Returns:
- the file identifier of the introduction image present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_FILE_ID
-
setIntroductionImageHref
void setIntroductionImageHref(java.lang.String introductionImageHref)
Sets the href (absolute or relative to portal root) corresponding to the introduction image in this document.- Parameters:
introductionImageHref
- the introduction image href value to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_HREF
-
getIntroductionImageHref
java.lang.String getIntroductionImageHref()
Returns the href (absolute or relative to portal root) of the introduction image present in this document.- Returns:
- the href (absolute or relative to portal root) of the introduction image present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.INTRODUCTION_IMAGE_HREF
-
setPublishDateTime
void setPublishDateTime(java.util.Date publishDateTime)
Sets the publish date time in this document.- Parameters:
publishDateTime
- the publish date time value to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.PUBLISH_DATE_TIME
-
getPublishDateTime
java.util.Date getPublishDateTime()
Returns the publish date time in this document.- Returns:
- the publish date time.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.PUBLISH_DATE_TIME
-
addContextIds
void addContextIds(java.util.Collection<java.lang.String> contextIds)
Adds the given context identifiers in this document.- Parameters:
contextIds
- the context identifiers to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.CONTEXT_IDS
-
addContextIds
void addContextIds(java.lang.String... contextIds)
Adds the given context identifiers in this document.- Parameters:
contextIds
- the context identifiers to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.CONTEXT_IDS
-
getContextIds
java.util.List<java.lang.String> getContextIds()
Returns the context identifiers present in this document.- Returns:
- the context identifiers present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.CONTEXT_IDS
-
addPublication
StandardDocument.Standard.Publication addPublication()
Adds a new publications field in this document.- Returns:
- the added publications fields access.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.PUBLICATIONS
-
getPublications
java.util.List<StandardDocument.Standard.Publication> getPublications()
Returns the access to the fields belonging to thepublications
fields in this document.The returned list does not support the set method and its remove method always return
null
, even when it removes a value.- Returns:
- the access to the fields belonging to the publications fields in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.PUBLICATIONS
-
setItemId
void setItemId(java.lang.String itemId)
Sets the given item identifier in this document.- Parameters:
itemId
- the item identifier to set.- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.ITEM_ID
-
getItemId
java.lang.String getItemId()
Returns the item identifier present in this document.- Returns:
- the item identifier present in this document.
- Since:
- 8.1.0
- See Also:
StandardDocumentType.StandardFields.ITEM_ID
-
setLocale
void setLocale(java.lang.String locale)
Sets the locale.- Parameters:
locale
- the locale.- Since:
- 8.1.0
-
getLocale
java.lang.String getLocale()
Returns this document locale.- Returns:
- this document locale.
- Since:
- 8.1.0
-
setDefaultLocale
void setDefaultLocale(java.lang.Boolean isDefault)
Sets whether this document is the default document for missing locales.
This means this document should be used when no other equivalent document exist for a given search or filter.- Parameters:
isDefault
- whether this document is the default document for missing locales.- Since:
- 8.1.0
-
isDefaultLocale
java.lang.Boolean isDefaultLocale()
Returns whether this document is the default document for missing locales.- Returns:
- whether this document is the default document for missing locales.
- Since:
- 8.1.0
- See Also:
setDefaultLocale(Boolean)
-
addOtherLocales
void addOtherLocales(java.lang.String... otherLocales)
Adds other locales of this document. These are the other languages this document is also available in.- Parameters:
otherLocales
- the other locales of this document.- Since:
- 8.1.0
-
addOtherLocales
void addOtherLocales(java.util.Collection<java.lang.String> otherLocales)
Adds other locales of this document. These are the other languages this document is also available in.- Parameters:
otherLocales
- the other locales of this document.- Since:
- 8.1.0
-
getOtherLocales
java.util.Collection<java.lang.String> getOtherLocales()
Returns the other locales of this document.- Returns:
- the other locales of this document.
- Since:
- 8.1.0
-
getCategories
StandardDocument.Standard.Categories getCategories()
Returns the value ofStandardDocumentType.StandardFields.CATEGORIES
stored in this document.- Returns:
- the value of
StandardDocumentType.StandardFields.CATEGORIES
stored in this document. - Since:
- 9.0.0
- See Also:
ContentVersion.getContentAssociations()
-
getTags
java.util.List<StandardDocument.Standard.Tag> getTags()
Returns the tag list present in this content locale.- Returns:
- the tag list present in this content locale.
- Since:
- 9.0.0
-
addTag
StandardDocument.Standard.Tag addTag()
Adds a tag in the tag list of this content locale and returns it.- Returns:
- the created tag.
- Since:
- 9.0.0
-
setPopularity
void setPopularity(java.lang.Double popularity)
Sets the popularity.- Parameters:
popularity
- the popularity.- Since:
- 11.1.0
-
getPopularity
java.lang.Double getPopularity()
Returns this document popularity.- Returns:
- this document popularity.
- Since:
- 11.1.0
-
setSourceId
void setSourceId(java.lang.String sourceId)
Sets the sourceId.- Parameters:
sourceId
- the sourceId.- Since:
- 11.1.0
-
getSourceId
java.lang.String getSourceId()
Returns this document sourceId.- Returns:
- this document sourceId.
- Since:
- 11.1.0
-
setSlug
void setSlug(java.lang.String slug)
Sets the slug.- Parameters:
slug
-- Since:
- 14.2.0
-
getSlug
java.lang.String getSlug()
Returns the slug in this document.- Returns:
- the slug in this document.
- Since:
- 14.2.0
-
-