Package com.emc.esu.api

Examples of com.emc.esu.api.ObjectPath


                    name = basePath.toString() + name;
                    if ("directory".equals(type)) {
                        name += "/";
                    }
                    de.setPath(new ObjectPath(name));
                    de.setType(type);
                   
                    // next, get metadata
                    Element sMeta = ((Element) o).getChild( "SystemMetadataList", esuNs );
                    Element uMeta = ((Element) o).getChild( "UserMetadataList", esuNs );
View Full Code Here


                    name = basePath.toString() + name;
                    if ("directory".equals(type)) {
                        name += "/";
                    }
                    de.setPath(new ObjectPath(name));
                    de.setType(type);
                   
                    // next, get metadata
                    Element sMeta = ((Element) o).getChild( "SystemMetadataList", esuNs );
                    Element uMeta = ((Element) o).getChild( "UserMetadataList", esuNs );
View Full Code Here

   
    System.err.println( "Downloading " + atmosPath + " to " + localFile );
   
    Identifier id = null;
    if( atmosPath.contains( "/" ) ) {
      id = new ObjectPath( atmosPath );
    } else {
      id = new ObjectId( atmosPath );
    }
   
    try {
View Full Code Here

    }

    private Identifier adaptIdentifier( ObjectIdentifier identifier ) {
        if ( identifier == null ) return null;
        if ( identifier instanceof com.emc.atmos.api.ObjectId ) return new ObjectId( identifier.toString() );
        if ( identifier instanceof com.emc.atmos.api.ObjectPath ) return new ObjectPath( identifier.toString() );
        throw new RuntimeException(
                "Unable to convert identifier " + identifier + " (" + identifier.getClass().getName() + ")" );
    }
View Full Code Here

        if ( entry == null ) return null;
        String path = parentPath.getPath() + entry.getFilename();
        if ( entry.isDirectory() ) path += "/";
        DirectoryEntry newEntry = new DirectoryEntry();
        newEntry.setId( (ObjectId) adaptIdentifier( entry.getObjectId() ) );
        newEntry.setPath( new ObjectPath( path ) );
        newEntry.setType( entry.getFileType().toString() );
        newEntry.setSystemMetadata( adaptMetadata( entry.getSystemMetadataMap() ) );
        newEntry.setUserMetadata( adaptMetadata( entry.getUserMetadataMap() ) );
        return newEntry;
    }
View Full Code Here

    }
   
    System.err.println( "Uploading " + localFile + " to " + atmosPath );
    try {
      UploadHelper uh = new UploadHelper( esu, new byte[5000] );
      uh.createObjectOnPath( new ObjectPath(atmosPath), localFile, null, null );
    } catch( EsuException e ) {
      System.err.println( "Upload Failed" );
      e.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of com.emc.esu.api.ObjectPath

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.