public interface MetadataVocabTracker
Modifier and Type | Method and Description |
---|---|
java.lang.String |
assignNewSystemId(java.lang.String metadataFieldId,
java.lang.String metadataValue)
Assign a unique system Id for a new vocabulary value.
|
void |
closeConnection()
If a relational database is being used, this should be used to close its
connection once the vocabulary has been loaded
|
java.lang.String |
getId(java.lang.String metadataFieldId,
java.lang.String metadataValue)
Does the current fieldId/value pair already exist in the database? If so,
return the Id, if not, return "" (empty string).
|
boolean |
isUsingDatabase()
Is the system using this tracker connected to a database? If not, no error
checking will be performed, no new encoded system Ids can be assigned, and
changes in UI labels will not be registered.
|
void |
registerUiLabels(java.util.HashMap uiSystems,
java.util.HashMap uiLabelOfSystemIds)
Register the current state of UI labels in the database
|
boolean isUsingDatabase()
java.lang.String assignNewSystemId(java.lang.String metadataFieldId, java.lang.String metadataValue)
metadataFieldId
- encoded field IdmetadataValue
- metadata value namejava.lang.String getId(java.lang.String metadataFieldId, java.lang.String metadataValue)
metadataFieldId
- encoded field IdmetadataValue
- metadata value namevoid registerUiLabels(java.util.HashMap uiSystems, java.util.HashMap uiLabelOfSystemIds)
uiSystems
- map whose keys indicate all the current ui_label
"system" attributesuiLabelOfSystemIds
- map encoded Ids to UI labelsvoid closeConnection()