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

Wrap tickets descriptions in a class

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.0.1
    • Component/s: None
    • Labels:

      Description

      Ticket descriptions should be wrapped up in a TicketDescription class instead of being represented by strings, since those strings may represent both a language key and a string literal (currently not being used, but could be used in the future if we decide to let administrators create their own tickets).

      To increase readability of the code and simplify maintenance, create a new class called TicketDescription which holds the language key. This class should have a method String toString(WebLanguages webLanguages) returning the actual string shown in the UI.

      Some refactoring is required to get hold of the WebLanguages class. We don't want to send in the whole EjbcaWebBean as parameter, because it creates a dependency on the admin-gui module and violates LoD.

        Attachments

          Activity

            People

            Assignee:
            bastianf Bastian Fredriksson
            Reporter:
            bastianf Bastian Fredriksson
            Verified by:
            Samuel Lidén Borell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 40 minutes
                2h 40m