Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7227

Repo Init: Add ability to register custom privileges

    XMLWordPrintableJSON

Details

    Description

      marett, bdelacretaz, looking at the repo-init source I couldn't find a way to register a custom privilege during repo init. I am sure this is an oversight and hasn't been omitted intentionally.

      The corresponding API calls are:

      JackrabbitWorkspace.getPrivilegeManager()
      PrivilegeManager.registerPrivilege(String privilegeName, boolean isAbstract, String[] declaredAggregateNames)
      

      See also
      http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitWorkspace.java?view=markup
      http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/security/authorization/PrivilegeManager.java?view=markup

      I would be appreciate if the repo init could have this gap filled. Thanks.

      Attachments

        Issue Links

          Activity

            People

              karlpauls Karl Pauls
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: