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

CPConverter - sling initial content - ACL support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Content-Package to Feature Model Converter 1.1.10
    • None
    • None

    Description

      Currently, we do not implement the ACL support for Sling Initial Content as specified : 

      https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html#acls-and-principals

      We need the following methods (org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.VaultContentXMLContentCreator)  implemented or another workaround found:

       

      @Override
      public boolean switchCurrentNode(String subPath, String newNodeType) throws RepositoryException {
      throw new UnsupportedOperationException();
      }
      
      @Override
      public void createUser(String name, String password, Map<String, Object> extraProperties) throws RepositoryException {
      throw new UnsupportedOperationException();
      }
      
      @Override
      public void createGroup(String name, String[] members, Map<String, Object> extraProperties) throws RepositoryException {
      throw new UnsupportedOperationException();
      }
      
      @Override
      public void createAce(String principal, String[] grantedPrivileges, String[] deniedPrivileges, String order) throws RepositoryException {
      throw new UnsupportedOperationException();
      }
      
      @Override
      public void createAce(String principalId, String[] grantedPrivilegeNames, String[] deniedPrivilegeNames,
      String order, Map<String, Value> restrictions, Map<String, Value[]> mvRestrictions,
      Set<String> removedRestrictionNames) throws RepositoryException {
      throw new UnsupportedOperationException();
      }

       

      Stashed code is on branch: SLING-10931 

      Attachments

        Issue Links

          Activity

            People

              Sc0rpic0m Niek Raaijmakers
              Sc0rpic0m Niek Raaijmakers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: