Package io.goobi.viewer.managedbeans
Class CreateRecordBean
java.lang.Object
io.goobi.viewer.managedbeans.CreateRecordBean
- All Implemented Interfaces:
Serializable
Bean for uploading Dublin Core records.
- Author:
- florian
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Delete thetempImagesFolder
with all contained files if it still exists.protected DCRecordWriter
Create aDCRecordWriter
instance containing all metadata of the bean as dc metadatagetDate()
getTitle()
getUuid()
reset()
Mark the record as not ready for indexing and delete all associated imagesAdd any uploaded images to the record, move the images folder frm temp_media to hotfolder and write the record as Dublin Core xml to the viewer hotfoldervoid
setAccessCondition
(String accessCondition) void
setCollection
(String collection) void
setCreator
(String creator) void
void
setDescription
(String description) void
setLanguage
(String language) void
setLicense
(String license) void
-
Constructor Details
-
CreateRecordBean
public CreateRecordBean()Constructor. Generates a random uuid for the record
-
-
Method Details
-
getTempImagesFolder
- Returns:
- the tempImagesFolder
-
getUuid
- Returns:
- the generated UUID for the current record
-
getTitle
- Returns:
- the title
-
setTitle
- Parameters:
title
- the title to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description
- the description to set
-
getLanguage
- Returns:
- the language
-
setLanguage
- Parameters:
language
- the language to set
-
getDate
- Returns:
- the date
-
setDate
- Parameters:
date
- the date to set
-
getCreator
- Returns:
- the creator
-
setCreator
- Parameters:
creator
- the creator to set
-
getCollection
- Returns:
- the collection
-
setCollection
- Parameters:
collection
- the collection to set
-
getAccessCondition
- Returns:
- the accessCondition
-
setAccessCondition
- Parameters:
accessCondition
- the accessCondition to set
-
getLicense
-
setLicense
- Parameters:
license
- the license to set
-
saveRecord
Add any uploaded images to the record, move the images folder frm temp_media to hotfolder and write the record as Dublin Core xml to the viewer hotfolder- Returns:
- the url of the create record page to allow creating a new record
-
getPossibleLanguages
- Returns:
- A list of possible languages to use for the record
-
getPossibleLicenses
- Returns:
- A list of possible licenses to use for the record
-
generateDCRecord
Create aDCRecordWriter
instance containing all metadata of the bean as dc metadata- Returns:
- the
DCRecordWriter
-
reset
Mark the record as not ready for indexing and delete all associated images- Returns:
- the url of the create record page
-
destroy
@PreDestroy public void destroy()Delete thetempImagesFolder
with all contained files if it still exists. Called when the user session ends
-