- assigned_to: nobody --> johann_p
Make it easier to open a serial corpus LR by specifying
its name. Currently, this is only possible by getting
all the corpus LR-IDs from the datastore and querying
their name, and then using the factory to actually open
and allocate the resource from the ID that matches the
desired name.
This could be made a bit easier by providing a
Datastore method List<String> getLrIds(String type,
String name) that returns the list of matching LR Ids
for a name and resource type (since several resources
can have the same name).
An additional Factory method getResource(Datastore ds,
String resourceClassName, String name, FeatureMap
parms, FeatureMap features) would make it easier to
directly open and create the LR with the given type and
name in memory. This method should clearly document
what happens if there is more LR with the given name
(not sure what the best solution would be).
There could also specialized methods for the most-often
used LR types, e.g. getCorpus(Datastore ds, String
name, FeatureMap parms, FeatureMap features)