Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-67426

PermissionEntry Persistence Support Method

XMLWordPrintable

      Matrix Authorization 3.0 has PermissionEntry class with methods:

      1. public static PermissionEntry fromString(@NonNull String permissionEntryString);
      2. public String toString();

      Where 1 is suitable for reading from persisted storage.

      Where 2 is suitable for marshaling into JSON.

      Unseen is method for marshaling into persisted storage; may I suggest either:

      • public String asString();
      • public String intoString();

      IMO adding proposed method here is superior to sub-classing PermissionEntry in Role-based Authorization.

            danielbeck Daniel Beck
            conrad_t_pino Conrad T. Pino
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: