Example #1
0
  public void updateReachability(ReachStatus newValue, String comment) throws ServiceException {

    OperationConfiguration conf = OperationConfiguration.create();
    conf = conf.setParentId(this.getId());
    conf = conf.setComment(comment);
    conf = conf.setCreateUserId(this.userIdCaller);

    OperationId id =
        this.createAndAddSimpleOperation(
            new QualificationAddReachability(
                conf, this.getReachStatus(), newValue, this.userIdCaller, this.tldCaller));

    QualificationAddReachability operation =
        AppServiceFacade.getOperationService()
            .getOperation(
                id, QualificationAddReachability.class, this.userIdCaller, this.tldCaller);
    operation.execute();
  }
Example #2
0
  public void updateTopLevelStatut(TopLevelOperationStatus newValue, String comment)
      throws ServiceException {

    OperationConfiguration conf = OperationConfiguration.create();
    conf = conf.setParentId(this.getId());
    conf = conf.setComment(comment);
    conf = conf.setCreateUserId(this.userIdCaller);

    OperationId id =
        this.createAndAddSimpleOperation(
            new TopLevelOperationStatusUpdate(
                conf, this.getTopLevelStatus(), newValue, this.userIdCaller, this.tldCaller));

    TopLevelOperationStatusUpdate operation =
        AppServiceFacade.getOperationService()
            .getOperation(
                id, TopLevelOperationStatusUpdate.class, this.userIdCaller, this.tldCaller);
    operation.execute();
  }