Search in sources :

Example 6 with SecurityGroupVO

use of com.cloud.network.security.SecurityGroupVO in project cloudstack by apache.

the class SecurityGroupDaoImpl method remove.

@Override
@DB
public boolean remove(Long id) {
    TransactionLegacy txn = TransactionLegacy.currentTxn();
    txn.start();
    SecurityGroupVO entry = findById(id);
    if (entry != null) {
        _tagsDao.removeByIdAndType(id, ResourceObjectType.SecurityGroup);
    }
    boolean result = super.remove(id);
    txn.commit();
    return result;
}
Also used : TransactionLegacy(com.cloud.utils.db.TransactionLegacy) SecurityGroupVO(com.cloud.network.security.SecurityGroupVO) DB(com.cloud.utils.db.DB)

Aggregations

SecurityGroupVO (com.cloud.network.security.SecurityGroupVO)6 HostVO (com.cloud.host.HostVO)4 VpnUserVO (com.cloud.network.VpnUserVO)4 IPAddressVO (com.cloud.network.dao.IPAddressVO)4 LoadBalancerVO (com.cloud.network.dao.LoadBalancerVO)4 PortForwardingRuleVO (com.cloud.network.rules.PortForwardingRuleVO)4 SnapshotVO (com.cloud.storage.SnapshotVO)4 VMTemplateVO (com.cloud.storage.VMTemplateVO)4 VolumeVO (com.cloud.storage.VolumeVO)4 Account (com.cloud.user.Account)4 TransactionLegacy (com.cloud.utils.db.TransactionLegacy)4 VMInstanceVO (com.cloud.vm.VMInstanceVO)4 Project (com.cloud.projects.Project)3 DataCenter (com.cloud.dc.DataCenter)2 Domain (com.cloud.domain.Domain)2 DomainVO (com.cloud.domain.DomainVO)2 InvalidParameterValueException (com.cloud.exception.InvalidParameterValueException)2 NetworkVO (com.cloud.network.dao.NetworkVO)2 PhysicalNetworkVO (com.cloud.network.dao.PhysicalNetworkVO)2 NetworkOfferingVO (com.cloud.offerings.NetworkOfferingVO)2