Package com.stimulus.archiva.domain

Examples of com.stimulus.archiva.domain.Volume


  public static Email getMessageByID(String volumeName, String uniqueId, boolean headersOnly) throws ArchivaException {
    if (volumeName == null || uniqueId == null)
          throw new ArchivaException("assertion failure: null emailId",logger);

    logger.debug("getMessageByID() {volumeName="+volumeName+",uniqueId='"+uniqueId+"'}");
    Volume volume = ConfigurationService.getConfig().getVolumes().getNewVolume(volumeName);
    EmailID emailID = EmailID.getEmailID(volume, uniqueId);
    return messageStore.retrieveMessage(emailID);
  }
View Full Code Here


  }
 
  protected static void assignEmailID(Email message,Volumes vols) throws ArchivaException {

      vols.readyActiveVolume();
      Volume activeVolume = vols.getActiveVolume();
      if (activeVolume==null)
        throw new ArchivaException("failed to archive message. there are no volumes available with sufficient diskspace. please configure one.",logger);
      EmailID emailID = EmailID.getEmailID(activeVolume, message);
      message.setEmailID(emailID)
  }
View Full Code Here

 
  public static void indexVolume(Principal principal, int volumeIndex, IndexStatus status) throws ArchivaException {
      if (status == null )
        throw new ArchivaException("assertion failure: null status",logger);
      status.start();
      Volume volume = ConfigurationService.getConfig().getVolumes().getVolume(volumeIndex);
      audit.info("index volume {"+volume+", "+principal+"}");
    logger.debug("index volume {"+volume+", "+principal+"}");
      messageIndex.deleteIndex(volume);
      List<Volume> volumes = new LinkedList<Volume>();
      volumes.add(volume);
View Full Code Here

      String name   = doc.get("vol");
      if (uid==null)  {
        logger.warn("found message with null ID during construction of search results");
        return null;
        }
      Volume volume = null;
        try {
         if (name==null) // legacy
           volume = Config.getConfig().getVolumes().getLegacyVolume(uid);
         else
           volume = Config.getConfig().getVolumes().getNewVolume(name);
View Full Code Here

     
      if (uid==null)  {
        logger.warn("found message with null ID during construction of search results");
        return null;
        }
      Volume volume = null;
      try {
       if (volid==null) // legacy
         volume = Config.getConfig().getVolumes().getLegacyVolume(uid);
       else
         volume = Config.getConfig().getVolumes().getNewVolume(volid);
View Full Code Here

TOP

Related Classes of com.stimulus.archiva.domain.Volume

Copyright © 2018 www.massapicom. 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.