protected List<VnicProfile> getVnicProfiles() { if (vnicProfiles == null) { vnicProfiles = getDbFacade().getVnicProfileDao().getAllForNetwork(vnicProfile.getNetworkId()); } return vnicProfiles; }
protected Network getNetwork() { if (network == null) { network = getDbFacade().getNetworkDao().get(vnicProfile.getNetworkId()); } return network; }
public ValidationResult networkNotChanged() { if (ObjectUtils.equals(vnicProfile.getNetworkId(), getOldVnicProfile().getNetworkId())) { return ValidationResult.VALID; } return new ValidationResult( EngineMessage.ACTION_TYPE_FAILED_CANNOT_CHANGE_VNIC_PROFILE_NETWORK); }