Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2555

Use explicit ArcId in GraphChangeHandler methods

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.2.M1
    • Core Library
    • None

    Description

      GraphChangeHandler uses plain Object as arc identifier:

      ..
      void arcCreated(Object nodeId, Object targetNodeId, Object arcId);
      void arcDeleted(Object nodeId, Object targetNodeId, Object arcId);
      ..
      

      We can introduce ArcId object instead that can hold forward and reverse arc names:

      public class ArcId {
          private final String forwardArc;
          private final String reverseArc;
          // ...
      }
      

      This change should simplify code maintenance and refactoring.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment