private void saveNewCustomList() { CustomListVo voCL = new CustomListVo(); voCL.setListType(CustomListType.CUSTOM_PATIENT_LIST); voCL.setListName(form.getGlobalContext().Core.getCustomListName()); voCL.setDate(new Date()); voCL.setIsActive(true); voCL.setListOwner((MemberOfStaffLiteVo) domain.getMosUser()); String[] errors = voCL.validate(); if (errors != null) { engine.showErrors(errors); return; } try { domain.saveCustomList(voCL); } catch (StaleObjectException e) { engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); return; } listCustomLists(); }
public CustomListVoCollection listCustomListTypes(CustomListVo filter) { CustomListMaintenance customListMaintenanceImpl = (CustomListMaintenance)getDomainImpl(CustomListMaintenanceImpl.class); filter.setIsActive(true); filter.setListType(CustomListType.MDT); return customListMaintenanceImpl.listCustomListTypes(filter); }