public FloorLayoutLiteVoCollection list(PreActiveActiveInactiveStatus status) { DomainFactory factory = getDomainFactory(); String hql = " from FloorLayout fl"; ArrayList markers = new ArrayList(); ArrayList values = new ArrayList(); if(status != null) { hql += " where fl.status.id = :status"; markers.add("status"); values.add(status.getID()); } return FloorLayoutLiteVoAssembler.createFloorLayoutLiteVoCollectionFromFloorLayout(factory.find(hql, markers, values)); }
private void loadFloorLayouts() { form.cmbFloorLayout().clear(); FloorLayoutLiteVoCollection layouts = domain.listFloorLayouts(PreActiveActiveInactiveStatus.ACTIVE); if (layouts != null) { for (int x = 0; x < layouts.size(); x++) { addFloorLayout(layouts.get(x)); } } }
public void open() throws PresentationLogicException { clearInstanceControls(); FloorLayoutLiteVoCollection list = domain.list(); if(list != null) { for(int x = 0; x < list.size(); x++) { add(list.get(x)); } } updateControlsState(); }
public FloorLayoutLiteVoCollection listFloorLayouts(PreActiveActiveInactiveStatus status) { FloorLayoutList impl = (FloorLayoutList)getDomainImpl(FloorLayoutListImpl.class); return impl.list(status); }
/** * Lists all floor layouts */ public ims.core.vo.FloorLayoutLiteVoCollection list() { return list(null); }