some code refactoring

This commit is contained in:
abhishek 2010-09-29 11:17:27 -07:00
parent 4026eba2e5
commit cd42fcc1bf
4 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -2254,6 +2254,6 @@ public interface ManagementServer {
* Fetches the version of cloud stack
*/
String getVersion();
boolean updateCertificate(String certificatePath);
boolean uploadCertificate(String certificatePath);
}

View File

@ -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));

View File

@ -9102,7 +9102,7 @@ public class ManagementServerImpl implements ManagementServer {
}
@Override
public boolean updateCertificate(String certificatePath)
public boolean uploadCertificate(String certificatePath)
{
return _certDao.persistCustomCertToDb(certificatePath);
}