public class KeywordsDAO extends SQLDAO
Constructor and Description |
---|
KeywordsDAO() |
Modifier and Type | Method and Description |
---|---|
void |
assignFriendlyKeywords(MediaObjectList objects)
Replaces all media object values for media objects of type keyword,
which have a valid known friendly keyword replacement:
- media objects without backendId will be ignored
- media objects not of type keyword will be ignored
- media objects with ConfirmationStatus not of Candidate will be ignored
- media object (keyword) value is matched case-sensitively, an identical value with friendly keyword must be found
- if media object value is found in the database without a friendly value, no friendly value replacement is performed, and the object is set to ConfirmationStatus.NO_FRIENDLY_KEYWORD
Note: this will set the friendly keyword as the name of the object, not as the value, the original value is preserved as the name.
|
getTransactionTemplate, setDataSource, setTnxManager
public KeywordsDAO()
public void assignFriendlyKeywords(MediaObjectList objects)
objects
- Copyright © 2015 Tampere University of Technology, Pori Department.