Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2180

Add an "Authorization" annotation

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Minor
    • 1.4 M1
    • 1.3 RC1
    • Other
    • None
    • N/A
    • N/A

    Description

      We should add an @Authorization("needed right") annotation which can be used like this:

      • Added to methods
      • Preserved in the javadoc, so that people know what methods require programming rights or admin rights
      • Used by a custom Velocity introspector to check the rights, thus replacing the many if(hasProgrammingRights()) checks spread around the code

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: