Uploaded image for project: 'JSPWiki'
  1. JSPWiki
  2. JSPWIKI-856

Enhance FileSystemProvider to be able to save page attributes as properties

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.10.1
    • 2.10.2
    • Core & storage

    Description

      Requirements:

      • 1. Plugins and other code should be able to store some page "attributes" into the "properties" of a page, just as author and changenote currently are.
      • 2. This should work for both FileSystemProvider and VersioningFileProvider and any future JDBCProviders or EncryptionProviders
      • 3. The properties added should be dynamic, e.g. all properties starting with "@" like "@likes", or "@hitcount"
        • 3.1. A "protected" addCustomProperties() method should be done added
      • 4. The property names and property values should be validated
        • 4.1. A "protected" validateCustomProperties() method should be done added
        • 4.2 e.g. only contain ascii characters
        • 4.3 Max property key length
        • 4.4 Max property value length
        • 4.5 Max number of properties

      Attachments

        1. WikiPage.java
          11 kB
          David Vittor
        2. VersioningFileProvider.java
          29 kB
          David Vittor
        3. VersioningFileProvider.java
          29 kB
          David Vittor
        4. providers.patch
          9 kB
          David Vittor
        5. providers.patch
          12 kB
          David Vittor
        6. providers.patch
          15 kB
          David Vittor
        7. providers.patch
          19 kB
          David Vittor
        8. FileSystemProvider.java
          6 kB
          David Vittor
        9. FileSystemProvider.java
          6 kB
          David Vittor
        10. AbstractFileProvider.java
          20 kB
          David Vittor
        11. AbstractFileProvider.java
          20 kB
          David Vittor

        Activity

          People

            Unassigned Unassigned
            dvittor David Vittor
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: