2
0
Fork 0

Switch to new meta model,fixed small bugs and made demo work pretty oke.

This commit is contained in:
Willem Cazander 2013-01-11 23:48:36 +01:00
parent afd821c360
commit b3635cf64d
46 changed files with 1055 additions and 688 deletions

View file

@ -56,16 +56,25 @@ public class VascBundleCheckEntryKeys {
}
public Map<String,String> collectVascKeys(VascEntry ve) {
String value = ve.getId();
if (ve.getVascGroupId()!=null) {
if (value.toLowerCase().startsWith(ve.getVascGroupId().toLowerCase())) {
value = value.substring(ve.getVascGroupId().length());
if (Character.isLetterOrDigit(value.charAt(0))==false) {
value = value.substring(1);
}
}
}
Map<String,String> keys = new HashMap<String,String>(300);
keys.put(ve.getName(), ve.getId());
keys.put(ve.getName(), value);
keys.put(ve.getImage(), ve.getId());
keys.put(ve.getListDescription(), ve.getId());
keys.put(ve.getListDescription(), "View list of "+value);
keys.put(ve.getListImage(), imagePrefix+ve.getId()+imagePostfix);
keys.put(ve.getEditDescription(), ve.getId());
keys.put(ve.getEditDescription(), "Edit your "+value);
keys.put(ve.getEditImage(), imagePrefix+ve.getId()+imagePostfix);
keys.put(ve.getDeleteDescription(), ve.getId());
keys.put(ve.getDeleteDescription(), "Delete this "+value);
keys.put(ve.getDeleteImage(), imagePrefix+ve.getId()+imagePostfix);
keys.put(ve.getCreateDescription(), ve.getId());
keys.put(ve.getCreateDescription(), "Create new "+value);
keys.put(ve.getCreateImage(), imagePrefix+ve.getId()+imagePostfix);
for (VascEntryField vef:ve.getVascEntryFields()) {
keys.put(vef.getName(), vef.getId());