Package com.emc.esu.api

Examples of com.emc.esu.api.MetadataList


                    obj.setId( oid );
                   
                    // next, get metadata
                    Element sMeta = e.getChild( "SystemMetadataList", esuNs );
                    Element uMeta = e.getChild( "UserMetadataList", esuNs );
                    obj.setMetadata( new MetadataList() );
                   
                    if( sMeta != null ) {
                      for( Iterator m = sMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
View Full Code Here


                    // next, get metadata
                    Element sMeta = ((Element) o).getChild( "SystemMetadataList", esuNs );
                    Element uMeta = ((Element) o).getChild( "UserMetadataList", esuNs );
                   
                    if( sMeta != null ) {
                      de.setSystemMetadata( new MetadataList() );
                     
                      for( Iterator m = sMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
                          String mName = metaElement.getChildText( "Name", esuNs );
                          String mValue = metaElement.getChildText( "Value", esuNs );
                         
                          de.getSystemMetadata().addMetadata( new Metadata( mName, mValue, false ) );
                      }
                    }
                   
                    if( uMeta != null ) {
                      de.setUserMetadata( new MetadataList() );
                      for( Iterator m = uMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
                          String mName = metaElement.getChildText( "Name", esuNs );
                          String mValue = metaElement.getChildText( "Value", esuNs );
View Full Code Here

                    obj.setId( oid );
                   
                    // next, get metadata
                    Element sMeta = e.getChild( "SystemMetadataList", esuNs );
                    Element uMeta = e.getChild( "UserMetadataList", esuNs );
                    obj.setMetadata( new MetadataList() );
                   
                    if( sMeta != null ) {
                      for( Iterator m = sMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
View Full Code Here

                    // next, get metadata
                    Element sMeta = ((Element) o).getChild( "SystemMetadataList", esuNs );
                    Element uMeta = ((Element) o).getChild( "UserMetadataList", esuNs );
                   
                    if( sMeta != null ) {
                      de.setSystemMetadata( new MetadataList() );
                     
                      for( Iterator m = sMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
                          String mName = metaElement.getChildText( "Name", esuNs );
                          String mValue = metaElement.getChildText( "Value", esuNs );
                         
                          de.getSystemMetadata().addMetadata( new Metadata( mName, mValue, false ) );
                      }
                    }
                   
                    if( uMeta != null ) {
                      de.setUserMetadata( new MetadataList() );
                      for( Iterator m = uMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
                          Element metaElement = (Element)m.next();
                         
                          String mName = metaElement.getChildText( "Name", esuNs );
                          String mValue = metaElement.getChildText( "Value", esuNs );
View Full Code Here

        this.error = null;
        this.closeStream = closeStream;
        this.stream = stream;

        // Get the file size.  Set to -1 if unknown.
        MetadataList sMeta = this.esu.getAllMetadata(id).getMetadata();
        if (sMeta.getMetadata("size") != null) {
            String size = sMeta.getMetadata("size").getValue();
            if (size != null && size.length() > 0) {
                this.totalBytes = Long.parseLong(size);
            } else {
                this.totalBytes = -1;
            }
View Full Code Here

                handleError(con);
            }

            // Parse return headers. Regular metadata is in x-emc-meta and
            // listable metadata is in x-emc-listable-meta
            MetadataList meta = new MetadataList();
            readMetadata(meta, con.getHeaderField("x-emc-meta"), false);
            readMetadata(meta, con.getHeaderField("x-emc-listable-meta"), true);

            con.disconnect();
            return meta;
View Full Code Here

                handleError(con);
            }

            // Parse return headers. Regular metadata is in x-emc-meta and
            // listable metadata is in x-emc-listable-meta
            MetadataList meta = new MetadataList();
            readMetadata(meta, con.getHeaderField("x-emc-meta"), false);
            readMetadata(meta, con.getHeaderField("x-emc-listable-meta"), true);

            con.disconnect();
            return meta;
View Full Code Here

            readAcl(acl, con.getHeaderField("x-emc-groupacl"),
                    Grantee.GRANT_TYPE.GROUP);

            // Parse return headers. Regular metadata is in x-emc-meta and
            // listable metadata is in x-emc-listable-meta
            MetadataList meta = new MetadataList();
            readMetadata(meta, con.getHeaderField("x-emc-meta"), false);
            readMetadata(meta, con.getHeaderField("x-emc-listable-meta"), true);

            ObjectMetadata om = new ObjectMetadata();
            om.setAcl(acl);
View Full Code Here

            readAcl( acl, con.getHeaderField( "x-emc-groupacl" ),
                     Grantee.GRANT_TYPE.GROUP );

            // Parse return headers. Regular metadata is in x-emc-meta and
            // listable metadata is in x-emc-listable-meta
            MetadataList meta = new MetadataList();
            readMetadata( meta, con.getHeaderField( "x-emc-meta" ), false );
            readMetadata( meta, con.getHeaderField( "x-emc-listable-meta" ), true );

            ObjectMetadata om = new ObjectMetadata();
            om.setAcl( acl );
View Full Code Here

                handleError( con );
            }

            // Parse return headers. Regular metadata is in x-emc-meta and
            // listable metadata is in x-emc-listable-meta
            MetadataList meta = new MetadataList();
            readMetadata( meta, con.getHeaderField( "x-emc-meta" ), false );
            readMetadata( meta, con.getHeaderField( "x-emc-listable-meta" ), true );

            con.disconnect();
            return meta;
View Full Code Here

TOP

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

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.