You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2023/02/26 09:31:00 UTC

[jira] [Updated] (SLING-11060) CPConverter - sling initial content - ACL support

     [ https://issues.apache.org/jira/browse/SLING-11060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated SLING-11060:
------------------------------------
    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:

 
{code:java}
@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();
}{code}
 

Stashed code is on branch: SLING-10931 

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

[https://sling.apache.org/documentation/bundles/repository-initialization.html]

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

 
{code:java}
@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();
}{code}
 

Stashed code is on branch: SLING-10931 


> CPConverter - sling initial content - ACL support
> -------------------------------------------------
>
>                 Key: SLING-11060
>                 URL: https://issues.apache.org/jira/browse/SLING-11060
>             Project: Sling
>          Issue Type: Bug
>          Components: Content-Package to Feature Model Converter
>    Affects Versions: Content-Package to Feature Model Converter 1.1.10
>            Reporter: Niek Raaijmakers
>            Assignee: Niek Raaijmakers
>            Priority: Major
>
> 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:
>  
> {code:java}
> @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();
> }{code}
>  
> Stashed code is on branch: SLING-10931 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)