예제 #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);
  }