Package org.jclouds.atmos.domain

Examples of org.jclouds.atmos.domain.DirectoryEntry


      assertEquals(result.getToken(), null);
   }

   protected Set<DirectoryEntry> values() {
      Builder<DirectoryEntry> expected = ImmutableSet.builder();
      expected.add(new DirectoryEntry("4980cdb2a411106a04a4538c92a1b204ad92077de6e3", FileType.DIRECTORY,
            "adriancole-blobstore-2096685753"));
      expected.add(new DirectoryEntry("4980cdb2a410105404980d99e53a0504ad93939e7dc3", FileType.DIRECTORY,
            "adriancole-blobstore247496608"));
      return expected.build();
   }
View Full Code Here


      return new BoundedLinkedHashSet<DirectoryEntry>(Iterables.transform(from,
               new Function<StorageMetadata, DirectoryEntry>() {
                  public DirectoryEntry apply(StorageMetadata from) {
                     FileType type = (from.getType() == StorageType.FOLDER || from.getType() == StorageType.RELATIVE_PATH) ? FileType.DIRECTORY
                              : FileType.REGULAR;
                     return new DirectoryEntry(from.getProviderId(), type, from.getName());
                  }

               }), from.getNextMarker());

   }
View Full Code Here

      } else if (qName.equals("Filename")) {
         currentName = currentText.toString().trim();
         if (currentName.equals(""))
            currentName = null;
      } else if (qName.equals("DirectoryEntry")) {
         entries.add(new DirectoryEntry(currentObjectId, currentType, currentName));
      }
      currentText.setLength(0);
   }
View Full Code Here

TOP

Related Classes of org.jclouds.atmos.domain.DirectoryEntry

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.