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

Start using Converters in REST related response, request and entity classes

    Details

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

      Description

      We agreed to start using converter pattern (on Thursday May 24th rest meeting).
      Entity                       →           RestResponse
      RestRequest           →           Entity

      eg.
      (CAInfo)                  →           CaInfoRestResponse
      CsrRestRequest     →           CSR

       

      Code example
      CaInfoRestResponse {
       
        // Some fields and getters/setters
        ...
       
        public static class CaInfoRestResponseConverter {
       
          public CaInfoRestResponse convert(CAInfo caInfo) {
            ...
          }
       
          public CAInfo convert(CaInfoRestResponse caInfoRestResponse) {
            ...
          }
        }
      }

       

        Attachments

          Activity

            People

            • Assignee:
              andrey_helmes Andrey Sergeev
              Reporter:
              tarmo_helmes Tarmo Raudsep
              Verified by:
              Henrik Sunmark
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 2 hours, 11 minutes Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 2 hours, 11 minutes Remaining Estimate - 6 hours
                2h 11m