mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
some code refactoring
This commit is contained in:
parent
4026eba2e5
commit
cd42fcc1bf
@ -220,4 +220,4 @@ updateInstanceGroup=com.cloud.api.commands.UpdateVMGroupCmd;15
|
||||
listInstanceGroups=com.cloud.api.commands.ListVMGroupsCmd;15
|
||||
|
||||
### Certificate commands
|
||||
updateCustomCertificate=com.cloud.api.commands.UpdateCertificateCmd;15
|
||||
uploadCustomCertificate=com.cloud.api.commands.UploadCustomCertificateCmd;15
|
||||
@ -2254,6 +2254,6 @@ public interface ManagementServer {
|
||||
* Fetches the version of cloud stack
|
||||
*/
|
||||
String getVersion();
|
||||
boolean updateCertificate(String certificatePath);
|
||||
boolean uploadCertificate(String certificatePath);
|
||||
|
||||
}
|
||||
|
||||
@ -27,10 +27,10 @@ import com.cloud.api.BaseCmd;
|
||||
import com.cloud.api.ServerApiException;
|
||||
import com.cloud.utils.Pair;
|
||||
|
||||
public class UpdateCertificateCmd extends BaseCmd {
|
||||
public class UploadCustomCertificateCmd extends BaseCmd {
|
||||
public static final Logger s_logger = Logger.getLogger(AddConfigCmd.class.getName());
|
||||
|
||||
private static final String s_name = "updatecertificateresponse";
|
||||
private static final String s_name = "uploadcustomcertificateresponse";
|
||||
private static final List<Pair<Enum, Boolean>> s_properties = new ArrayList<Pair<Enum, Boolean>>();
|
||||
|
||||
static {
|
||||
@ -52,7 +52,7 @@ public class UpdateCertificateCmd extends BaseCmd {
|
||||
|
||||
try
|
||||
{
|
||||
boolean status = getManagementServer().updateCertificate(certificatePath);
|
||||
boolean status = getManagementServer().uploadCertificate(certificatePath);
|
||||
List<Pair<String, Object>> returnValues = new ArrayList<Pair<String, Object>>();
|
||||
|
||||
returnValues.add(new Pair<String, Object>(BaseCmd.Properties.STATUS.getName(), status));
|
||||
@ -9102,7 +9102,7 @@ public class ManagementServerImpl implements ManagementServer {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean updateCertificate(String certificatePath)
|
||||
public boolean uploadCertificate(String certificatePath)
|
||||
{
|
||||
return _certDao.persistCustomCertToDb(certificatePath);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user