Class IndexTheme
java.lang.Object
org.opencastproject.elasticsearch.index.objects.theme.IndexTheme
- All Implemented Interfaces:
IndexObject
Object wrapper for a theme.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe document typestatic final StringThe name of the surrounding XML tag to wrap a result of multiple themeFields inherited from interface org.opencastproject.elasticsearch.index.objects.IndexObject
INDEX_XML_NAMESPACE -
Constructor Summary
ConstructorsConstructorDescriptionRequired default no arg constructor for JAXB.IndexTheme(long identifier, String organization) -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexThemefromSearchMetadata(SearchMetadataCollection metadata) Creates a search result item based on the data returned from the search index.longgetName()booleanbooleanbooleanbooleanbooleanbooleanvoidsetBumperActive(boolean bumperActive) voidsetBumperFile(String bumperFile) voidsetCreationDate(Date creationDate) voidsetCreator(String creator) voidsetDefault(boolean isDefault) voidsetDescription(String description) voidsetLicenseSlideActive(boolean licenseSlideActive) voidsetLicenseSlideBackground(String licenseSlideBackground) voidsetLicenseSlideDescription(String licenseSlideDescription) voidvoidsetTitleSlideActive(boolean titleSlideActive) voidsetTitleSlideBackground(String titleSlideBackground) voidsetTitleSlideMetadata(String titleSlideMetadata) voidsetTrailerActive(boolean trailerActive) voidsetTrailerFile(String trailerFile) voidsetWatermarkActive(boolean watermarkActive) voidsetWatermarkFile(String watermarkFile) voidsetWatermarkPosition(String watermarkPosition) Creates search metadata from a theme such that the theme can be stored in the search index.toXML()Serializes the theme to an XML format.static IndexThemevalueOf(InputStream xml) Reads the theme from the input stream.
-
Field Details
-
DOCUMENT_TYPE
The document type- See Also:
-
XML_SURROUNDING_TAG
The name of the surrounding XML tag to wrap a result of multiple theme- See Also:
-
-
Constructor Details
-
IndexTheme
public IndexTheme()Required default no arg constructor for JAXB. -
IndexTheme
- Parameters:
identifier- the theme identifierorganization- the organization
-
-
Method Details
-
getIdentifier
public long getIdentifier() -
getCreationDate
-
setCreationDate
-
isDefault
public boolean isDefault() -
setDefault
public void setDefault(boolean isDefault) -
getDescription
-
setDescription
-
getName
-
setName
-
getCreator
-
setCreator
-
getOrganization
-
isBumperActive
public boolean isBumperActive() -
setBumperActive
public void setBumperActive(boolean bumperActive) -
getBumperFile
-
setBumperFile
-
isTrailerActive
public boolean isTrailerActive() -
setTrailerActive
public void setTrailerActive(boolean trailerActive) -
getTrailerFile
-
setTrailerFile
-
isTitleSlideActive
public boolean isTitleSlideActive() -
setTitleSlideActive
public void setTitleSlideActive(boolean titleSlideActive) -
getTitleSlideMetadata
-
setTitleSlideMetadata
-
getTitleSlideBackground
-
setTitleSlideBackground
-
isLicenseSlideActive
public boolean isLicenseSlideActive() -
setLicenseSlideActive
public void setLicenseSlideActive(boolean licenseSlideActive) -
getLicenseSlideDescription
-
setLicenseSlideDescription
-
getLicenseSlideBackground
-
setLicenseSlideBackground
-
isWatermarkActive
public boolean isWatermarkActive() -
setWatermarkActive
public void setWatermarkActive(boolean watermarkActive) -
getWatermarkFile
-
setWatermarkFile
-
getWatermarkPosition
-
setWatermarkPosition
-
valueOf
Reads the theme from the input stream.- Parameters:
xml- the input stream- Returns:
- the deserialized theme
- Throws:
IOException
-
toXML
Serializes the theme to an XML format.- Returns:
- A String with this theme's content as XML.
-
fromSearchMetadata
Creates a search result item based on the data returned from the search index.- Parameters:
metadata- the search metadata- Returns:
- the search result item
- Throws:
IOException- if unmarshalling fails
-
toSearchMetadata
Creates search metadata from a theme such that the theme can be stored in the search index.- Returns:
- the set of metadata
-