Search in sources :

Example 6 with SSHKeyPairVO

use of com.cloud.user.SSHKeyPairVO in project cloudstack by apache.

the class SSHKeyPairDaoImpl method deleteByName.

@Override
public boolean deleteByName(long accountId, long domainId, String name) {
    SSHKeyPairVO pair = findByName(accountId, domainId, name);
    if (pair == null)
        return false;
    expunge(pair.getId());
    return true;
}
Also used : SSHKeyPairVO(com.cloud.user.SSHKeyPairVO)

Aggregations

SSHKeyPairVO (com.cloud.user.SSHKeyPairVO)6 Account (com.cloud.user.Account)4 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)3 ExcludeList (com.cloud.deploy.DeploymentPlanner.ExcludeList)1 DomainVO (com.cloud.domain.DomainVO)1 ActionEvent (com.cloud.event.ActionEvent)1 ListProjectResourcesCriteria (com.cloud.projects.Project.ListProjectResourcesCriteria)1 VMTemplateVO (com.cloud.storage.VMTemplateVO)1 SSHKeyPair (com.cloud.user.SSHKeyPair)1 Pair (com.cloud.utils.Pair)1 Ternary (com.cloud.utils.Ternary)1 Filter (com.cloud.utils.db.Filter)1 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)1 SSHKeysHelper (com.cloud.utils.ssh.SSHKeysHelper)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1