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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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 Details
-
DublinCorePopulator
public DublinCorePopulator()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
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
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
Set DC Creator- Parameters:
resource
- The resource to editcreator
- The creator
-
_setDCContributor
Set DC Contributor- Parameters:
resource
- The resource to editcontributor
- The contributor login
-
_setDCCoverage
Set DC Coverage- Parameters:
resource
- The resource to editcoverage
- The coverage
-
_setDCDate
Set DC Date- Parameters:
resource
- The resource to editdate
- The date
-
_setDCDescription
Set DC Description- Parameters:
resource
- The resource to editdescription
- The description
-
_setDCFormat
Set DC Format- Parameters:
resource
- The resource to editformat
- The format
-
_setDCIdentifier
Set DC Identifier- Parameters:
resource
- The resource to editidentifier
- The identifier
-
_setDCLanguage
Set DC language- Parameters:
resource
- The resource to editlanguage
- The language
-
_setDCPublisher
Set DC Publisher- Parameters:
resource
- The resource to editpublisher
- The publisher
-
_setDCRelation
Set DC Relation- Parameters:
resource
- The resource to editrelation
- The relation
-
_setDCRights
Set DC rights- Parameters:
resource
- The resource to editrights
- The rights
-
_setDCSource
Set DC Source- Parameters:
resource
- The resource to editsource
- The source
-
_setDCSubject
Set DC Subject- Parameters:
resource
- The resource to editsubject
- The subjects
-
_setDCTitle
Set DC Title- Parameters:
resource
- The resource to edittitle
- The title
-
_setDCType
Set DC Type- Parameters:
resource
- The resource to edittype
- The type
-