Class DublinCorePopulator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.explorer.resources.metadata.populate.DublinCorePopulator
-
- All Implemented Interfaces:
ResourceMetadataPopulator
,Configurable
,LogEnabled
public class DublinCorePopulator extends AbstractLogEnabled implements ResourceMetadataPopulator, Configurable
ResourceMetadataPopulator
which populates Dublin Core metadata.
-
-
Constructor Summary
Constructors Constructor Description DublinCorePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_setDCContributor(ModifiableResource resource, String contributor)
Set DC Contributorprotected void
_setDCCoverage(ModifiableResource resource, String coverage)
Set DC Coverageprotected void
_setDCCreator(ModifiableResource resource, String creator)
Set DC Creatorprotected void
_setDCDate(ModifiableResource resource, Date date)
Set DC Dateprotected void
_setDCDescription(ModifiableResource resource, String description)
Set DC Descriptionprotected void
_setDCFormat(ModifiableResource resource, String format)
Set DC Formatprotected void
_setDCIdentifier(ModifiableResource resource, String identifier)
Set DC Identifierprotected void
_setDCLanguage(ModifiableResource resource, String language)
Set DC languageprotected void
_setDCPublisher(ModifiableResource resource, String publisher)
Set DC Publisherprotected void
_setDCRelation(ModifiableResource resource, String relation)
Set DC Relationprotected void
_setDCRights(ModifiableResource resource, String rights)
Set DC rightsprotected void
_setDCSource(ModifiableResource resource, String source)
Set DC Sourceprotected void
_setDCSubject(ModifiableResource resource, String[] subject)
Set DC Subjectprotected void
_setDCTitle(ModifiableResource resource, String title)
Set DC Titleprotected void
_setDCType(ModifiableResource resource, String type)
Set DC Typevoid
configure(Configuration configuration)
Set<String>
getTypes()
Returns the MIME types handled by thisResourceMetadataPopulator
.void
populate(ModifiableResource resource, Metadata metadata)
Populate the resource's properties from the provided Metadata.-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
DublinCorePopulator
public DublinCorePopulator()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
getTypes
public Set<String> getTypes()
Description copied from interface:ResourceMetadataPopulator
Returns the MIME types handled by thisResourceMetadataPopulator
.- Specified by:
getTypes
in interfaceResourceMetadataPopulator
- Returns:
- the MIME types handled by this
ResourceMetadataPopulator
.
-
populate
public void populate(ModifiableResource resource, Metadata metadata)
Description copied from interface:ResourceMetadataPopulator
Populate the resource's properties from the provided Metadata.- Specified by:
populate
in interfaceResourceMetadataPopulator
- Parameters:
resource
- the resource to populate.metadata
- the parsed resources Metadata.
-
_setDCCreator
protected void _setDCCreator(ModifiableResource resource, String creator)
Set DC Creator- Parameters:
resource
- The resource to editcreator
- The creator
-
_setDCContributor
protected void _setDCContributor(ModifiableResource resource, String contributor)
Set DC Contributor- Parameters:
resource
- The resource to editcontributor
- The contributor login
-
_setDCCoverage
protected void _setDCCoverage(ModifiableResource resource, String coverage)
Set DC Coverage- Parameters:
resource
- The resource to editcoverage
- The coverage
-
_setDCDate
protected void _setDCDate(ModifiableResource resource, Date date)
Set DC Date- Parameters:
resource
- The resource to editdate
- The date
-
_setDCDescription
protected void _setDCDescription(ModifiableResource resource, String description)
Set DC Description- Parameters:
resource
- The resource to editdescription
- The description
-
_setDCFormat
protected void _setDCFormat(ModifiableResource resource, String format)
Set DC Format- Parameters:
resource
- The resource to editformat
- The format
-
_setDCIdentifier
protected void _setDCIdentifier(ModifiableResource resource, String identifier)
Set DC Identifier- Parameters:
resource
- The resource to editidentifier
- The identifier
-
_setDCLanguage
protected void _setDCLanguage(ModifiableResource resource, String language)
Set DC language- Parameters:
resource
- The resource to editlanguage
- The language
-
_setDCPublisher
protected void _setDCPublisher(ModifiableResource resource, String publisher)
Set DC Publisher- Parameters:
resource
- The resource to editpublisher
- The publisher
-
_setDCRelation
protected void _setDCRelation(ModifiableResource resource, String relation)
Set DC Relation- Parameters:
resource
- The resource to editrelation
- The relation
-
_setDCRights
protected void _setDCRights(ModifiableResource resource, String rights)
Set DC rights- Parameters:
resource
- The resource to editrights
- The rights
-
_setDCSource
protected void _setDCSource(ModifiableResource resource, String source)
Set DC Source- Parameters:
resource
- The resource to editsource
- The source
-
_setDCSubject
protected void _setDCSubject(ModifiableResource resource, String[] subject)
Set DC Subject- Parameters:
resource
- The resource to editsubject
- The subjects
-
_setDCTitle
protected void _setDCTitle(ModifiableResource resource, String title)
Set DC Title- Parameters:
resource
- The resource to edittitle
- The title
-
_setDCType
protected void _setDCType(ModifiableResource resource, String type)
Set DC Type- Parameters:
resource
- The resource to edittype
- The type
-
-