Exemple #1
0
 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());
 }
Exemple #2
0
  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());
  }
Exemple #3
0
 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);
   }
 }