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 Alpers
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Delete thetempImagesFolderwith all contained files if it still exists.protected DCRecordWriterCreate aDCRecordWriterinstance containing all metadata of the bean as dc metadata.getDate()getTitle()getUuid()reset()Marks the record as not ready for indexing and delete all associated images.Add any uploaded images to the record, move the images folder from temp_media to hotfolder, and write the record as Dublin Core xml to the viewer hotfolder.voidsetAccessCondition(String accessCondition) voidsetCollection(String collection) voidsetCreator(String creator) voidvoidsetDescription(String description) voidsetLanguage(String language) voidsetLicense(String license) void
-
Constructor Details
-
CreateRecordBean
public CreateRecordBean()Constructor. Generates a random uuid for the record
-
-
Method Details
-
getTempImagesFolder
-
getUuid
- Returns:
- the generated UUID for the current record
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getLanguage
-
setLanguage
-
getDate
-
setDate
-
getCreator
-
setCreator
-
getCollection
-
setCollection
-
getAccessCondition
-
setAccessCondition
-
getLicense
-
setLicense
-
saveRecord
Add any uploaded images to the record, move the images folder from 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 aDCRecordWriterinstance containing all metadata of the bean as dc metadata.- Returns:
- the
DCRecordWriter
-
reset
Marks the record as not ready for indexing and delete all associated images.- Returns:
- the url of the create record page
-
destroy
Delete thetempImagesFolderwith all contained files if it still exists. Called when the user session ends
-