use of com.sequenceiq.cloudbreak.structuredevent.event.SecurityGroupDetails in project cloudbreak by hortonworks.
the class SecurityGroupToSecurityGroupDetailsConverter method convert.
@Override
public SecurityGroupDetails convert(SecurityGroup source) {
SecurityGroupDetails securityGroupDetails = new SecurityGroupDetails();
securityGroupDetails.setId(source.getId());
securityGroupDetails.setName(source.getName());
securityGroupDetails.setDescription(source.getDescription());
securityGroupDetails.setSecurityGroupId(source.getSecurityGroupId());
securityGroupDetails.setSecurityRules((List<SecurityRuleDetails>) conversionService.convert(source.getSecurityRules(), TypeDescriptor.forObject(source.getSecurityRules()), TypeDescriptor.collection(List.class, TypeDescriptor.valueOf(SecurityRuleDetails.class))));
return securityGroupDetails;
}
Aggregations