Class OpencastDctermsDublinCore
java.lang.Object
org.opencastproject.metadata.dublincore.OpencastDctermsDublinCore
- Direct Known Subclasses:
OpencastDctermsDublinCore.Episode,OpencastDctermsDublinCore.Series
DublinCoreCatalog wrapper to deal with DublinCore metadata according to the Opencast schema.
General behaviour
- Set methods that take a string parameter only execute if the string is not blank.
- Set methods that take a list of strings only execute if the list contains at least one non-blank string.
- Set methods--if executed--replace the whole property with the given value/s.
- Update methods only execute if the parameter is some non-blank string. If executed they behave like a set method and replace all exiting entries.
- Add methods only execute if the parameter is some non-blank string.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddAudience(String audience) Add anDublinCore.PROPERTY_AUDIENCEproperty.voidaddContributor(String contributor) Add aDublinCore.PROPERTY_CONTRIBUTORproperty.voidaddCreator(String name) Add aDublinCore.PROPERTY_CREATORproperty.voidaddPublisher(String publisher) voidaddRightsHolder(String rightsHolder) Get allDublinCore.PROPERTY_AUDIENCEproperties.Return the wrapped catalog.Get allDublinCore.PROPERTY_CONTRIBUTORproperties.com.entwinemedia.fn.data.Opt<Temporal> Get theDublinCore.PROPERTY_CREATEDproperty.Get allDublinCore.PROPERTY_CREATORproperties.com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_IDENTIFIERproperty.com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_DESCRIPTIONproperty.com.entwinemedia.fn.data.Opt<Long> Get theDublinCore.PROPERTY_EXTENTproperty.protected com.entwinemedia.fn.data.Opt<String> LikeDublinCore.getFirst(EName)but with the result wrapped in an Opt.protected com.entwinemedia.fn.data.Opt<DublinCoreValue> getFirstVal(EName property) LikeDublinCore.getFirstVal(EName)but with the result wrapped in an Opt.com.entwinemedia.fn.data.Opt<Date> Get theDublinCore.PROPERTY_ISSUEDproperty.com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_LANGUAGEproperty.com.entwinemedia.fn.data.Opt<String> com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_SOURCEproperty.com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_SPATIALproperty.com.entwinemedia.fn.data.Opt<Temporal> Get theDublinCore.PROPERTY_TEMPORALproperty.com.entwinemedia.fn.data.Opt<String> getTitle()Get theDublinCore.PROPERTY_TITLEproperty.com.entwinemedia.fn.data.Opt<com.entwinemedia.fn.Stream<String>> getType()Get theDublinCore.PROPERTY_TYPEproperty split into its components.com.entwinemedia.fn.data.Opt<String> Get theDublinCore.PROPERTY_TYPEproperty as a single string.voidRemove allDublinCore.PROPERTY_AUDIENCEproperties.voidRemove allDublinCore.PROPERTY_CONTRIBUTORproperties.voidRemove theDublinCore.PROPERTY_CREATEDproperty.voidRemove allDublinCore.PROPERTY_CREATORproperties.voidRemove theDublinCore.PROPERTY_IDENTIFIERproperty.voidRemove theDublinCore.PROPERTY_DESCRIPTIONproperty.voidRemove theDublinCore.PROPERTY_EXTENTproperty.voidRemove theDublinCore.PROPERTY_ISSUEDproperty.voidRemove theDublinCore.PROPERTY_LANGUAGEproperty.voidvoidvoidvoidRemove theDublinCore.PROPERTY_SOURCEproperty.voidRemove theDublinCore.PROPERTY_SPATIALproperty.voidRemove theDublinCore.PROPERTY_TEMPORALproperty.voidRemove theDublinCore.PROPERTY_TITLEproperty.voidRemove theDublinCore.PROPERTY_TYPEproperty.voidvoidvoidsetAudience(String audience) Set theDublinCore.PROPERTY_AUDIENCEproperty.voidsetAudiences(List<String> audiences) Set multipleDublinCore.PROPERTY_AUDIENCEproperties.voidsetContributor(String contributor) Set theDublinCore.PROPERTY_CONTRIBUTORproperty.voidsetContributors(List<String> contributors) Set multipleDublinCore.PROPERTY_CONTRIBUTORproperties.voidsetCreated(Date date) Set theDublinCore.PROPERTY_CREATEDproperty.voidSet theDublinCore.PROPERTY_CREATEDproperty.voidsetCreator(String creator) Set theDublinCore.PROPERTY_CREATORproperty.voidsetCreators(List<String> creators) Set multipleDublinCore.PROPERTY_CREATORproperties.protected voidvoidSet theDublinCore.PROPERTY_IDENTIFIERproperty.voidsetDescription(String description) Set theDublinCore.PROPERTY_DESCRIPTIONproperty.voidSet theDublinCore.PROPERTY_EXTENTproperty.voidSet theDublinCore.PROPERTY_ISSUEDproperty.voidsetLanguage(String lang) Set theDublinCore.PROPERTY_LANGUAGEproperty.voidsetLicense(String license) protected voidEncode withPrecision.Second.voidsetPublishers(List<String> publishers) voidsetRightsHolders(List<String> rightsHolders) voidSet theDublinCore.PROPERTY_SOURCEproperty.voidsetSpatial(String spatial) Set theDublinCore.PROPERTY_SPATIALproperty.voidsetTemporal(Date from, Date to) Set theDublinCore.PROPERTY_TEMPORALproperty.voidSet theDublinCore.PROPERTY_TITLEproperty.voidSet theDublinCore.PROPERTY_TYPEproperty from a single string.voidSet theDublinCore.PROPERTY_TYPEproperty from a type and a subtype.protected voidvoidupdateAudience(com.entwinemedia.fn.data.Opt<String> audience) Update theDublinCore.PROPERTY_AUDIENCEproperty.voidupdateContributor(com.entwinemedia.fn.data.Opt<String> contributor) Update theDublinCore.PROPERTY_CONTRIBUTORproperty.voidupdateCreator(com.entwinemedia.fn.data.Opt<String> name) Update theDublinCore.PROPERTY_CREATORproperty.protected voidupdateDate(EName property, com.entwinemedia.fn.data.Opt<Date> date, Precision p) voidupdateDcIdentifier(com.entwinemedia.fn.data.Opt<String> id) Update theDublinCore.PROPERTY_IDENTIFIERproperty.voidupdateDescription(com.entwinemedia.fn.data.Opt<String> description) Update theDublinCore.PROPERTY_DESCRIPTIONproperty.voidupdateIssued(com.entwinemedia.fn.data.Opt<Date> date) Update theDublinCore.PROPERTY_ISSUEDproperty.voidupdateSpatial(com.entwinemedia.fn.data.Opt<String> spatial) Update theDublinCore.PROPERTY_SPATIALproperty.voidupdateTitle(com.entwinemedia.fn.data.Opt<String> title) Update theDublinCore.PROPERTY_TITLEproperty.
-
Field Details
-
dc
-
-
Method Details
-
getCatalog
Return the wrapped catalog. -
getPublishers
-
setPublishers
-
addPublisher
-
removePublishers
public void removePublishers() -
getRightsHolders
-
setRightsHolders
-
addRightsHolder
-
removeRightsHolders
public void removeRightsHolders() -
getLicense
-
setLicense
-
removeLicense
public void removeLicense() -
getDcIdentifier
Get theDublinCore.PROPERTY_IDENTIFIERproperty. -
setDcIdentifier
Set theDublinCore.PROPERTY_IDENTIFIERproperty. -
updateDcIdentifier
Update theDublinCore.PROPERTY_IDENTIFIERproperty. -
removeDcIdentifier
public void removeDcIdentifier()Remove theDublinCore.PROPERTY_IDENTIFIERproperty. -
getTitle
Get theDublinCore.PROPERTY_TITLEproperty. -
setTitle
Set theDublinCore.PROPERTY_TITLEproperty. -
updateTitle
Update theDublinCore.PROPERTY_TITLEproperty. -
removeTitle
public void removeTitle()Remove theDublinCore.PROPERTY_TITLEproperty. -
getDescription
Get theDublinCore.PROPERTY_DESCRIPTIONproperty. -
setDescription
Set theDublinCore.PROPERTY_DESCRIPTIONproperty. -
updateDescription
Update theDublinCore.PROPERTY_DESCRIPTIONproperty. -
removeDescription
public void removeDescription()Remove theDublinCore.PROPERTY_DESCRIPTIONproperty. -
getAudiences
Get allDublinCore.PROPERTY_AUDIENCEproperties. -
setAudiences
Set multipleDublinCore.PROPERTY_AUDIENCEproperties. -
setAudience
Set theDublinCore.PROPERTY_AUDIENCEproperty. -
addAudience
Add anDublinCore.PROPERTY_AUDIENCEproperty. -
updateAudience
Update theDublinCore.PROPERTY_AUDIENCEproperty. -
removeAudiences
public void removeAudiences()Remove allDublinCore.PROPERTY_AUDIENCEproperties. -
getCreated
Get theDublinCore.PROPERTY_CREATEDproperty. -
setCreated
Set theDublinCore.PROPERTY_CREATEDproperty. The date is encoded with a precision ofPrecision.Day. -
setCreated
Set theDublinCore.PROPERTY_CREATEDproperty. The date is encoded with a precision ofPrecision.Day. -
removeCreated
public void removeCreated()Remove theDublinCore.PROPERTY_CREATEDproperty. -
getCreators
Get allDublinCore.PROPERTY_CREATORproperties. -
setCreators
Set multipleDublinCore.PROPERTY_CREATORproperties. -
setCreator
Set theDublinCore.PROPERTY_CREATORproperty. -
addCreator
Add aDublinCore.PROPERTY_CREATORproperty. -
updateCreator
Update theDublinCore.PROPERTY_CREATORproperty. -
removeCreators
public void removeCreators()Remove allDublinCore.PROPERTY_CREATORproperties. -
getExtent
Get theDublinCore.PROPERTY_EXTENTproperty. -
setExtent
Set theDublinCore.PROPERTY_EXTENTproperty. -
removeExtent
public void removeExtent()Remove theDublinCore.PROPERTY_EXTENTproperty. -
getIssued
Get theDublinCore.PROPERTY_ISSUEDproperty. -
setIssued
Set theDublinCore.PROPERTY_ISSUEDproperty. -
updateIssued
Update theDublinCore.PROPERTY_ISSUEDproperty. -
removeIssued
public void removeIssued()Remove theDublinCore.PROPERTY_ISSUEDproperty. -
getLanguage
Get theDublinCore.PROPERTY_LANGUAGEproperty. -
setLanguage
Set theDublinCore.PROPERTY_LANGUAGEproperty. A 2- or 3-letter ISO code. 2-letter ISO codes are tried to convert into a 3-letter code. If this is not possible the provided string is used as is. -
removeLanguage
public void removeLanguage()Remove theDublinCore.PROPERTY_LANGUAGEproperty. -
getSpatial
Get theDublinCore.PROPERTY_SPATIALproperty. -
setSpatial
Set theDublinCore.PROPERTY_SPATIALproperty. -
updateSpatial
Update theDublinCore.PROPERTY_SPATIALproperty. -
removeSpatial
public void removeSpatial()Remove theDublinCore.PROPERTY_SPATIALproperty. -
getSource
Get theDublinCore.PROPERTY_SOURCEproperty. -
setSource
Set theDublinCore.PROPERTY_SOURCEproperty. -
removeSource
public void removeSource()Remove theDublinCore.PROPERTY_SOURCEproperty. -
getContributors
Get allDublinCore.PROPERTY_CONTRIBUTORproperties. -
setContributors
Set multipleDublinCore.PROPERTY_CONTRIBUTORproperties. -
setContributor
Set theDublinCore.PROPERTY_CONTRIBUTORproperty. -
addContributor
Add aDublinCore.PROPERTY_CONTRIBUTORproperty. -
updateContributor
Update theDublinCore.PROPERTY_CONTRIBUTORproperty. -
removeContributors
public void removeContributors()Remove allDublinCore.PROPERTY_CONTRIBUTORproperties. -
getTemporal
Get theDublinCore.PROPERTY_TEMPORALproperty. -
setTemporal
Set theDublinCore.PROPERTY_TEMPORALproperty. The dates are encoded with a precision ofPrecision.Second. -
removeTemporal
public void removeTemporal()Remove theDublinCore.PROPERTY_TEMPORALproperty. -
getType
Get theDublinCore.PROPERTY_TYPEproperty split into its components. Components are separated by "/". -
getTypeCombined
Get theDublinCore.PROPERTY_TYPEproperty as a single string. -
setType
Set theDublinCore.PROPERTY_TYPEproperty from a type and a subtype. Type and subtype are separated by "/". -
setType
Set theDublinCore.PROPERTY_TYPEproperty from a single string. -
removeType
public void removeType()Remove theDublinCore.PROPERTY_TYPEproperty. -
setDate
-
updateDate
-
setPeriod
Encode withPrecision.Second. -
get
-
getFirst
LikeDublinCore.getFirst(EName)but with the result wrapped in an Opt. -
getFirstVal
LikeDublinCore.getFirstVal(EName)but with the result wrapped in an Opt. -
set
-
set
-
add
-
update
-