[
https://issues.apache.org/jira/browse/SLING-2710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583065#comment-13583065
]
Felix Meschberger commented on SLING-2710:
------------------------------------------
Thanks for the feedback. Very appreciated !
> addPermissions
I understand that there would be a need to manage permissions. I also agree
with Timothee that this is probably a specific use case. Finally I think this
can be solved by a TenantCustomizer.
> removeProperty
While a property can be removed as a side effect with setProperty I agree that
from a orthogonality perspective this might make sense. How about a
removeProperties(Tentant, String...)
method ?
> Define TenantManager API
> ------------------------
>
> Key: SLING-2710
> URL: https://issues.apache.org/jira/browse/SLING-2710
> Project: Sling
> Issue Type: New Feature
> Components: Extensions
> Reporter: Felix Meschberger
> Fix For: Tenant 1.0
>
> Attachments: SLING-2710.patch
>
>
> Tenants currently can only be administered (create, update, remove) through
> the Web Console. In addition the TenantProvider service interface allows for
> looking tenants up (read).
> For administrative purposes it would be good to have a TenantManager service
> interface which allows for these administrative tasks. Something like:
> public interface TenantManager extends TenantProvider {
> Tenant create(String tenantId, Map<String, Object> properties);
> void setProperty(Tenant tenant, String name, Object value);
> void remove(Tenant tenant);
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira