Exemplo n.º 1
0
 default void reAddIdentifications() {
   for (GraphElementOperator operator : getWholeGraph().getAllGraphElements()) {
     try {
       operator.getGenericIdentifications().values().forEach(operator::addGenericIdentification);
       operator.getAdditionalTypes().values().forEach(operator::addType);
       operator.getSameAs().values().forEach(operator::addSameAs);
     } catch (IllegalArgumentException e) {
       // adding self identification causes this exception. No need to add readd it, so its ok
       // continue the loop.
     }
   }
 }
 @PUT
 @GraphTransactional
 public Response setSort(JSONObject sortValues) {
   return NoExRun.wrap(
           () -> {
             graphElementOperator.setSortDate(
                 new Date(sortValues.getLong("sortDate")),
                 new Date(sortValues.getLong("moveDate")));
             return Response.ok().build();
           })
       .get();
 }