예제 #1
0
  public static void relationshipModified(
      final Principal user,
      final RelationshipInterface relationship,
      final PropertyKey key,
      final Object previousValue,
      final Object newValue) {

    TransactionCommand command = currentCommand.get();
    if (command != null) {

      ModificationQueue modificationQueue = command.getModificationQueue();
      if (modificationQueue != null) {

        modificationQueue.modify(user, relationship, key, previousValue, newValue);

      } else {

        logger.log(Level.SEVERE, "Got empty changeSet from command!");
      }

    } else {

      logger.log(Level.SEVERE, "Relationship deleted while outside of transaction!");
    }
  }