Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-7395

Code for converting between textfield data and MultiGroupPublishers groups

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.15.1
    • Component/s: CA GUI
    • Labels:
      None

      Description

      This should be a utility method (or similar) that converts between a String of the following format:

      Publisher1InGroup1
      Publisher2InGroup1
      Publisher3InGroup1
      
      Publisher1InGroup2
      Publisher2InGroup2
      
      Publisher1InGroup3
      Publisher2InGroup3
      ...
      

      To/From the data structure from ECA-7392

      Input signature could be something like:

      List<TreeSet<Integer>> convertMultiPublishersStringToData(final Map<String,Integer> publisherNameToIdMap, final Sting textareaData);
      
      String convertMultiPublishersDataToString(final Map<Integer,String> publisherIdToNameMap, final List<TreeSet<Integer>> data);
      

      Having the same publisher in multiple groups (or twice in the same group) should not be allowed. It makes no sense to publish to the same publisher twice.

      Since it's easy to unit test, I think it should have a unit test.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                katja_helmes Jekaterina Bunina
                Reporter:
                samuel Samuel Lidén Borell
                Verified by:
                Samuel Lidén Borell
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h