bug 5190: modifying a few minor details in the upload cert part, to conform with the new api refactor design

This commit is contained in:
abhishek 2010-10-21 15:51:07 -07:00
parent 365ac7501f
commit a957a679ed
3 changed files with 7 additions and 7 deletions

View File

@ -28,11 +28,6 @@ import javax.persistence.Table;
@Table(name="certificate")
public class CertificateVO {
public CertificateVO(String cert)
{
this.certificate = cert;
}
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")

View File

@ -19,6 +19,10 @@ public class CertificateDaoImpl extends GenericDaoBase<CertificateVO, Long> imp
private static final Logger s_logger = Logger.getLogger(CertificateDaoImpl.class);
public CertificateDaoImpl(){
}
@Override
public boolean persistCustomCertToDb(String certPath){
@ -43,7 +47,8 @@ public class CertificateDaoImpl extends GenericDaoBase<CertificateVO, Long> imp
}
certStr = new String(buffer);
CertificateVO certRec = new CertificateVO(certStr);
CertificateVO certRec = new CertificateVO();
certRec.setCertificate(certStr);
this.persist(certRec);
return true;

View File

@ -26,7 +26,7 @@ import com.cloud.api.response.StatusResponse;
@Implementation(method="uploadCertificate")
public class UploadCustomCertificateCmd extends BaseCmd {
public static final Logger s_logger = Logger.getLogger(AddConfigCmd.class.getName());
public static final Logger s_logger = Logger.getLogger(UploadCustomCertificateCmd.class.getName());
private static final String s_name = "uploadcustomcertificateresponse";