Skip to content
Snippets Groups Projects
Commit 665cddbb authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unused methods removed

parent 2c7f6b5d
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -118,12 +118,6 @@ public class ModelService implements IModelService {
@Autowired
private ModelViewFactory modelViewFactory;
/**
* Factory used to create {@link FullAliasView} elements.
*/
@Autowired
private FullAliasViewFactory fullAliasViewFactory;
/**
* Access point and parser for the online ctd database.
*/
......@@ -531,12 +525,6 @@ public class ModelService implements IModelService {
return result;
}
@Override
public List<FullAliasView> getFullAliasesByIds(Model model, List<Pair<Integer, Integer>> identifiers) {
List<FullAliasView> result = fullAliasViewFactory.createList(getAliasesByIds(model, identifiers));
return result;
}
/**
* @return the userService
* @see #userService
......
......@@ -126,21 +126,4 @@ public interface IModelService {
* @return list of {@link LightReactionView reactions} for given identifiers
*/
List<LightReactionView> getLightReactionsByIds(Model model, List<Pair<Integer, Integer>> identifiers);
/**
* Returns list of {@link FullAliasView aliases} (with full information) for
* given identifiers.
*
* @param model
* model where aliases are located
* @param identifiers
* list of alias identifiers in a given submodel. Every {@link Pair}
* contains information about {@link Model#getId() model identifier}
* (in {@link Pair#left}) and
* {@link lcsb.mapviewer.model.map.species.Element#getId() alias
* identifier} (in {@link Pair#right}).
* @return list of {@link FullAliasView aliases} (with full information about
* aliases) for given identifiers
*/
List<FullAliasView> getFullAliasesByIds(Model model, List<Pair<Integer, Integer>> identifiers);
}
......@@ -869,21 +869,6 @@ public class MapBean extends AbstractManagedBean implements Serializable {
executeJavascript("ServerConnector.addAliases(" + string + ");");
}
/**
* Sends list of aliases (with given identifiers) to the browser. Identifiers
* are passed as a json string in request parameter <i>ids</i>. Each
* identifier is a pair containing information about {@link Model#getId()
* model id} and {@link lcsb.mapviewer.model.map.species.Element#id alias id}.
* Data is heavy - it contains all information related to the alias.
*
*/
public void retreiveFullAliases() {
List<Pair<Integer, Integer>> identifiers = deserializeJsonIds(getRequestParameter("ids"));
List<FullAliasView> list = modelService.getFullAliasesByIds(getCurrentTopModel(), identifiers);
String string = getFullAliasViewFactory().createGson(list);
executeJavascript("ServerConnector.addAliases(" + string + ");");
}
/**
* Sends list of reactions (with given identifiers) to the browser.
* Identifiers are passed as a json string in request parameter <i>ids</i>.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment