mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
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:
parent
365ac7501f
commit
a957a679ed
@ -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")
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user