Skip to content

Commit

Permalink
Facets API: add missing put(TopicModel) (#1002).
Browse files Browse the repository at this point in the history
1 new method in `FacetValueModel`:
{{{
FacetValueModel put(TopicModel value);
}}}

See #1002.
  • Loading branch information
jri committed Aug 11, 2016
1 parent eb33f4a commit 25faffb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import de.deepamehta.core.model.ChildTopicsModel;
import de.deepamehta.core.model.RelatedTopicModel;
import de.deepamehta.core.model.TopicModel;
import de.deepamehta.core.model.facets.FacetValueModel;
import de.deepamehta.core.service.ModelFactory;

Expand Down Expand Up @@ -48,6 +49,10 @@ public FacetValueModel put(RelatedTopicModel value) {
return (FacetValueModel) put(childTypeUri, value);
}

public FacetValueModel put(TopicModel value) {
return (FacetValueModel) put(childTypeUri, value);
}

// ---

public FacetValueModel put(Object value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import de.deepamehta.core.model.ChildTopicsModel;
import de.deepamehta.core.model.RelatedTopicModel;
import de.deepamehta.core.model.TopicModel;

import java.util.List;

Expand Down Expand Up @@ -34,6 +35,8 @@ public interface FacetValueModel extends ChildTopicsModel {
*/
FacetValueModel put(RelatedTopicModel value);

FacetValueModel put(TopicModel value);

// ---

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,5 @@ dm4c.add_plugin("de.deepamehta.typeeditor", function() {

// ------------------------------------------------------------------------------------------------------ Public API

this.show_type_warning = function(type_name) {
show_type_warning(type_name)
}
this.show_type_warning = show_type_warning
})

0 comments on commit 25faffb

Please sign in to comment.