public abstract class MDE_Controller extends java.lang.Object implements MD_ChangeListener
Modifier and Type | Field and Description |
---|---|
protected MetadataInterface |
first_entry |
protected int |
metadata_level |
protected boolean |
onlyHierarchiesAreSelected |
Constructor and Description |
---|
MDE_Controller(SPECCHIOClient specchio_client) |
MDE_Controller(SPECCHIOClient specchio_client,
MetaDataEditorView metaDataEditorView) |
Modifier and Type | Method and Description |
---|---|
void |
clear_changed_field_lists() |
void |
clearAdded_fields(int level) |
void |
clearChanged_fields(int level) |
int |
clearRemoved_fields(int level) |
abstract java.util.ArrayList<java.lang.Integer> |
get_hierarchy_ids() |
java.util.ArrayList<MD_Field> |
getAdded_fields() |
Campaign |
getCampaign() |
java.util.ArrayList<MD_Field> |
getChanged_annotations() |
java.util.ArrayList<MD_Field> |
getChanged_fields() |
java.util.ArrayList<MD_Field> |
getChanged_fields(int level) |
java.lang.Boolean |
getDo_conflict_detection() |
MDE_Form |
getForm() |
MDE_FormFactory |
getFormFactory() |
java.util.ArrayList<java.lang.Integer> |
getIds() |
int |
getMetadataLevel() |
boolean |
getOnlyHierarchiesAreSelected() |
java.util.ArrayList<MD_Field> |
getRemoved_fields() |
java.util.ArrayList<MD_Field> |
getRemoved_fields(int level)
Get removed fields of a metaparameter storage level
|
boolean |
hasChanges() |
void |
metadataFieldAdded(MD_Field field)
Respond to the addition of a metadata field.
|
void |
metadataFieldAnnotationChanged(MD_Field field,
java.lang.String annotation)
Respond to the change of an annotation.
|
void |
metadataFieldChanged(MD_Field field,
java.lang.Object new_value)
Respond to a change in a metadata field.
|
void |
metadataFieldRemoved(MD_Field field)
Respond to the removal of a metadata field.
|
void |
remove_all_added_fields() |
void |
remove_all_mps_of_attribute(MD_Field field) |
abstract void |
remove_selection(MD_Field field) |
void |
remove(MD_Field field) |
void |
set_campaign(Campaign campaign) |
void |
set_form_descriptor(MD_FormDescriptor form_descriptor,
boolean manual_category_selection) |
void |
setCategoryList(SpectrumMetadataCategoryList category_list) |
void |
setDo_conflict_detection(java.lang.Boolean do_conflict_detection) |
protected void |
update_form(boolean manual_category_selection) |
void |
update_selection(MD_Field field) |
void |
update(java.util.ArrayList<MD_Field> changed_fields) |
void |
update(MD_Field field) |
void |
updateAnnotation(MD_Field field) |
void |
updateCampaign(Campaign campaign) |
protected MetadataInterface first_entry
protected boolean onlyHierarchiesAreSelected
protected int metadata_level
public MDE_Controller(SPECCHIOClient specchio_client) throws SPECCHIOClientException
SPECCHIOClientException
public MDE_Controller(SPECCHIOClient specchio_client, MetaDataEditorView metaDataEditorView) throws SPECCHIOClientException
SPECCHIOClientException
public Campaign getCampaign()
public java.util.ArrayList<java.lang.Integer> getIds()
public MDE_FormFactory getFormFactory()
public java.util.ArrayList<MD_Field> getChanged_fields()
public java.util.ArrayList<MD_Field> getChanged_fields(int level)
public java.util.ArrayList<MD_Field> getRemoved_fields()
public java.util.ArrayList<MD_Field> getRemoved_fields(int level)
level
- public java.util.ArrayList<MD_Field> getAdded_fields()
public java.util.ArrayList<MD_Field> getChanged_annotations()
public void set_campaign(Campaign campaign)
public java.lang.Boolean getDo_conflict_detection()
public void setDo_conflict_detection(java.lang.Boolean do_conflict_detection)
public void set_form_descriptor(MD_FormDescriptor form_descriptor, boolean manual_category_selection) throws SPECCHIOClientException
SPECCHIOClientException
public abstract java.util.ArrayList<java.lang.Integer> get_hierarchy_ids()
public boolean getOnlyHierarchiesAreSelected()
public int getMetadataLevel()
protected void update_form(boolean manual_category_selection) throws SPECCHIOClientException
SPECCHIOClientException
public void clear_changed_field_lists()
public MDE_Form getForm()
public boolean hasChanges()
public void update(java.util.ArrayList<MD_Field> changed_fields) throws SPECCHIOClientException
SPECCHIOClientException
public void update(MD_Field field) throws SPECCHIOClientException
SPECCHIOClientException
public void updateAnnotation(MD_Field field) throws SPECCHIOWebClientException
SPECCHIOWebClientException
public void updateCampaign(Campaign campaign) throws SPECCHIOClientException
SPECCHIOClientException
public void update_selection(MD_Field field) throws SPECCHIOClientException
SPECCHIOClientException
public void remove(MD_Field field) throws SPECCHIOClientException
SPECCHIOClientException
public abstract void remove_selection(MD_Field field) throws SPECCHIOClientException
SPECCHIOClientException
public void remove_all_mps_of_attribute(MD_Field field) throws SPECCHIOClientException
SPECCHIOClientException
public void remove_all_added_fields()
public void setCategoryList(SpectrumMetadataCategoryList category_list)
public void metadataFieldAdded(MD_Field field)
MD_ChangeListener
metadataFieldAdded
in interface MD_ChangeListener
field
- the fieldpublic void metadataFieldChanged(MD_Field field, java.lang.Object new_value)
MD_ChangeListener
metadataFieldChanged
in interface MD_ChangeListener
field
- the fieldnew_value
- the new value of the fieldpublic void metadataFieldRemoved(MD_Field field)
MD_ChangeListener
metadataFieldRemoved
in interface MD_ChangeListener
field
- the fieldpublic void metadataFieldAnnotationChanged(MD_Field field, java.lang.String annotation)
MD_ChangeListener
metadataFieldAnnotationChanged
in interface MD_ChangeListener
field
- the fieldpublic int clearRemoved_fields(int level)
public void clearChanged_fields(int level)
public void clearAdded_fields(int level)