Package com.cloud.bridge.model

Examples of com.cloud.bridge.model.MultiPartUploadsVO


@Local(value={MultiPartUploadsDao.class})
public class MultiPartUploadsDaoImpl extends GenericDaoBase<MultiPartUploadsVO, Long> implements MultiPartUploadsDao {
   
    @Override
    public OrderedPair<String,String> multipartExits( int uploadId ) {
        MultiPartUploadsVO uploadvo = null;
       
        TransactionLegacy txn = null;
        try {
            txn = TransactionLegacy.open(TransactionLegacy.AWSAPI_DB);
            uploadvo = findById(new Long(uploadId));
            if (null != uploadvo)
                return new OrderedPair<String,String>(uploadvo.getAccessKey(), uploadvo.getNameKey());

            return null;
        } finally {
            txn.close();
        }
View Full Code Here


    }
   
    @Override
    public String getAtrributeValue(String attribute, int uploadid) {
        TransactionLegacy txn = null;
        MultiPartUploadsVO uploadvo = null;
        try {
            txn = TransactionLegacy.open(TransactionLegacy.AWSAPI_DB);
            uploadvo = findById(new Long(uploadid));
            if (null != uploadvo) {
                if ( attribute.equalsIgnoreCase("AccessKey") )
                    return uploadvo.getAccessKey();
                else if ( attribute.equalsIgnoreCase("x_amz_acl") )
                    return uploadvo.getAmzAcl();
            }
            return null;
        } finally {
            txn.close();
        }
View Full Code Here

TOP

Related Classes of com.cloud.bridge.model.MultiPartUploadsVO

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.