Class Series
java.lang.Object
org.opencastproject.elasticsearch.index.objects.series.Series
- All Implemented Interfaces:
IndexObject
Object wrapper for a series.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe document typestatic final StringThe name of the surrounding XML tag to wrap a result of multiple seriesFields inherited from interface org.opencastproject.elasticsearch.index.objects.IndexObject
INDEX_XML_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContributor(String contributor) Add a contributorvoidaddOrganizer(String organizer) Add an organizervoidaddPublisher(String publisher) Add a publisherstatic javax.xml.bind.UnmarshallerCreate an unmarshaller for seriesReturns the series access policy.Returns the series contributors.Returns the series date and time created.Returns the series creator.Returns the series description.Returns the extended metadataReturns the series identifier.Returns the series language.Returns the series license.Returns the name of the managed ACL, if the series does not have a custom ACL.Returns the series organization.Returns the series presenters.Returns the series publishers.Returns the series rights holder.Returns the series subject.getTheme()Returns the theme of this seriesgetTitle()Returns the series title.voidremoveExtendedMetadata(String type) Removes the external metadata for a catalog type.voidRemoves all external metadata.voidsetAccessPolicy(String accessPolicy) Sets the series access policy.voidsetContributors(List<String> contributors) Sets the list of contributors.voidsetCreatedDateTime(Date createdDateTime) Sets the series created date and time.voidsetCreator(String creator) Sets the series creator.voidsetDescription(String description) Sets the series description.voidSets the external metadata for a catalog type.voidsetLanguage(String language) Sets the series language.voidsetLicense(String license) Sets the series license.voidsetManagedAcl(String managedAcl) Sets the name of the managed ACL used by the series.voidsetOrganizers(List<String> organizers) Sets the list of organizers.voidsetPublishers(List<String> publishers) Sets the list of publishers.voidsetRightsHolder(String rightsHolder) Sets the series rights holder.voidsetSubject(String subject) Sets the series subject.voidSets the theme for this seriesvoidSets the series title.toJSON()Serializes the series.toXML()Serializes the series to an XML format.static SeriesvalueOf(InputStream xml, javax.xml.bind.Unmarshaller unmarshaller) Reads the series from the input stream.static SeriesvalueOfJson(InputStream json) Reads the series 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 series- See Also:
-
-
Constructor Details
-
Series
public Series()Required default no arg constructor for JAXB. -
Series
The series identifier.- Parameters:
identifier- the object identifierorganization- the organization
-
-
Method Details
-
createUnmarshaller
Create an unmarshaller for series- Returns:
- an unmarshaller for series
- Throws:
IOException
-
getIdentifier
Returns the series identifier.- Returns:
- the identifier
-
setTitle
Sets the series title.- Parameters:
title- the title
-
getTitle
Returns the series title.- Returns:
- the title
-
setDescription
Sets the series description.- Parameters:
description- the description
-
getDescription
Returns the series description.- Returns:
- the description
-
setSubject
Sets the series subject.- Parameters:
subject- the subject
-
getSubject
Returns the series subject.- Returns:
- the subject
-
getOrganization
Returns the series organization.- Returns:
- the organization
-
setLanguage
Sets the series language.- Parameters:
language- the language
-
getLanguage
Returns the series language.- Returns:
- the language
-
setCreator
Sets the series creator.- Parameters:
creator- the creator
-
getCreator
Returns the series creator.- Returns:
- the creator
-
setLicense
Sets the series license.- Parameters:
license- the license
-
getLicense
Returns the series license.- Returns:
- the license
-
setAccessPolicy
Sets the series access policy.- Parameters:
accessPolicy- the access policy
-
getAccessPolicy
Returns the series access policy.- Returns:
- the access policy
-
setManagedAcl
Sets the name of the managed ACL used by the series.- Parameters:
managedAcl- the managed ACL name
-
getManagedAcl
Returns the name of the managed ACL, if the series does not have a custom ACL.- Returns:
- the managed ACL name
-
setCreatedDateTime
Sets the series created date and time.- Parameters:
createdDateTime- the date and time the series was created.
-
getCreatedDateTime
Returns the series date and time created.- Returns:
- the created date and time
-
addOrganizer
Add an organizer- Parameters:
organizer- The organizer's name.
-
setOrganizers
Sets the list of organizers.- Parameters:
organizers- the organizers for this event
-
getOrganizers
Returns the series presenters.- Returns:
- the presenters
-
addContributor
Add a contributor- Parameters:
contributor- The contributor's name.
-
setContributors
Sets the list of contributors.- Parameters:
contributors- the contributors for this event
-
getContributors
Returns the series contributors.- Returns:
- the contributors
-
addPublisher
Add a publisher- Parameters:
publisher- The publisher's name.
-
setPublishers
Sets the list of publishers.- Parameters:
publishers- the publishers for this event
-
getPublishers
Returns the series publishers.- Returns:
- the publishers
-
setRightsHolder
Sets the series rights holder.- Parameters:
rightsHolder- holder the rights holder
-
getRightsHolder
Returns the series rights holder.- Returns:
- the rights holder
-
setTheme
Sets the theme for this series- Parameters:
theme- the theme
-
getTheme
Returns the theme of this series- Returns:
- the theme of this series
-
setExtendedMetadata
Sets the external metadata for a catalog type.- Parameters:
type- The catalog typemetadata- The metadata
-
removeExtendedMetadata
Removes the external metadata for a catalog type.- Parameters:
type- The catalog type
-
resetExtendedMetadata
public void resetExtendedMetadata()Removes all external metadata. -
getExtendedMetadata
Returns the extended metadata- Returns:
- the extended metadata in a map by catalog type
-
valueOf
public static Series valueOf(InputStream xml, javax.xml.bind.Unmarshaller unmarshaller) throws IOException Reads the series from the input stream.- Parameters:
xml- the input streamunmarshaller- the unmarshaller to use- Returns:
- the deserialized recording event
- Throws:
IOException
-
valueOfJson
public static Series valueOfJson(InputStream json) throws IOException, org.codehaus.jettison.json.JSONException, XMLStreamException, javax.xml.bind.JAXBException Reads the series from the input stream.- Parameters:
json- the input stream- Returns:
- the deserialized recording event
- Throws:
org.codehaus.jettison.json.JSONExceptionXMLStreamExceptionjavax.xml.bind.JAXBExceptionIOException
-
toJSON
Serializes the series.- Returns:
- the serialized series
-
toXML
Serializes the series to an XML format.- Returns:
- A String with this series' content as XML.
-