Package es.ipsa.atril.doc.volumes

Examples of es.ipsa.atril.doc.volumes.Volume.addDocument()


    if (getVolume(oSes)==null) {
      Log.out.debug("Getting default volume");
      Volume oVol = DAO.defaultVolume(oSes.getDms().getVolumeManager());
      if (oVol==null) throw new DmsException("No default volume is set");
      oVol.addDocument(getDocument());
      oVol.save();
      Log.out.debug("Added Ticket "+getDocument().id()+" to Volume "+oVol.name());
    }
  }
View Full Code Here


    Log.out.debug("VolumeManager.createVolume("+sVolumeName+","+Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator+","+sRepositorySubpath+","+String.valueOf(iMaxDocSize)+")");
    Volume oVol = oVolm.createVolume(sVolumeName, Gadgets.chomp(sVolumesMountBase,File.separator)+sVolumeSubpath+File.separator, sRepositorySubpath, iMaxDocSize);
    oVol.setTotalSpace(lTotalSpace);
    oVol.setMaxFiles(65535);
    oVol.setMaxDirectories(65535);
    oVol.addDocument(getDocument());
    oVol.save();
    return oVol;
  }
 
  public final static int  MB = 1048576;
View Full Code Here

   
    if (oVol==null) {
      Log.out.debug("Getting default volume");
      oVol = DAO.defaultVolume(oSes.getDms().getVolumeManager());
      if (oVol==null) throw new DmsException("No default volume is set");
      oVol.addDocument(getDocument());
      oVol.save();
      Log.out.debug("Added Invoice "+getDocument().id()+" to Volume "+oVol.name());
    } else {
      Log.out.debug("Got volume "+oVol.name());     
    }
View Full Code Here

      oUsrsGrp.grantReadOnly(dCts);
      oOpersGrp.grantReadOnly(dCts);
      oSes.commit();
      VolumeManager oVolm = oDms.getVolumeManager();
      Volume oVol = DAO.defaultVolume(oVolm);
      oVol.addDocument(dCts);
      oVol.save();
      oSes.commit();
      oCts = new CaptureTypes(dCts);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.