Пример #1
0
  protected List<VnicProfile> getVnicProfiles() {
    if (vnicProfiles == null) {
      vnicProfiles = getDbFacade().getVnicProfileDao().getAllForNetwork(vnicProfile.getNetworkId());
    }

    return vnicProfiles;
  }
Пример #2
0
  protected Network getNetwork() {
    if (network == null) {
      network = getDbFacade().getNetworkDao().get(vnicProfile.getNetworkId());
    }

    return network;
  }
Пример #3
0
  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);
  }