storeInFile(type);
}
- public synchronized Collection<EiType> getAllEiTypes() {
+ public synchronized Collection<EiType> getAllInfoTypes() {
return new Vector<>(allEiTypes.values());
}
public synchronized EiType getType(String id) throws ServiceException {
EiType type = allEiTypes.get(id);
if (type == null) {
- throw new ServiceException("Could not find EI type: " + id);
+ throw new ServiceException("Information type not found: " + id);
}
return type;
}
}
private String getDatabaseDirectory() {
- return config.getVardataDirectory() + "/eitypes";
+ return config.getVardataDirectory() + "/database/eitypes";
}
}