public void initTechMd() throws Exception { if (image == null || image.getId() == null || !image.getId().toString().equals(ObjectHelper.getURI(Image.class, id).toString())) { this.init(); } setTab(TabType.TECHMD.toString()); }
public void initView() throws Exception { if (image == null || image.getId() == null || !image.getId().toString().equals(ObjectHelper.getURI(Image.class, id).toString())) { init(); } setTab(TabType.VIEW.toString()); }
public void loadImage() { try { image = ObjectLoader.loadImage(ObjectHelper.getURI(Image.class, id), sessionBean.getUser()); } catch (NotFoundException e) { image = new Image(); BeanHelper.error( sessionBean.getLabel("image") + " " + id + sessionBean.getLabel("not_found")); } catch (Exception e) { BeanHelper.error(sessionBean.getMessage("error_image_load")); logger.error(sessionBean.getMessage("error_image_load"), e); } }