示例#1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }

    if (o == null) {
      return false;
    }

    if (!(o instanceof IndicatorGroup)) {
      return false;
    }

    final IndicatorGroup other = (IndicatorGroup) o;

    return name.equals(other.getName());
  }
示例#2
0
 @Override
 protected boolean isIdentical(IndicatorGroup object, IndicatorGroup existing) {
   return object.getName().equals(existing.getName());
 }
示例#3
0
  @Override
  protected void importMatching(IndicatorGroup object, IndicatorGroup match) {
    match.setName(object.getName());

    indicatorService.updateIndicatorGroup(object);
  }
示例#4
0
 @Override
 protected IndicatorGroup getMatching(IndicatorGroup object) {
   List<IndicatorGroup> indicatorGroupByName =
       indicatorService.getIndicatorGroupByName(object.getName());
   return indicatorGroupByName.isEmpty() ? null : indicatorGroupByName.get(0);
 }
示例#5
0
  @Override
  public void importObject(IndicatorGroup object, ImportParams params) {
    NameMappingUtil.addIndicatorGroupMapping(object.getId(), object.getName());

    read(object, GroupMemberType.NONE, params);
  }