You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Amit Gupta (JIRA)" <ji...@apache.org> on 2012/11/23 13:14:58 UTC
[jira] [Created] (SLING-2676) Web console plugin for tenant tenant
management
Amit Gupta created SLING-2676:
---------------------------------
Summary: Web console plugin for tenant tenant management
Key: SLING-2676
URL: https://issues.apache.org/jira/browse/SLING-2676
Project: Sling
Issue Type: Improvement
Components: Extensions
Reporter: Amit Gupta
Priority: Minor
Fix For: Tenant 1.0
Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Commented] (SLING-2676) Web console plugin for tenant
management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503585#comment-13503585 ]
Amit Gupta commented on SLING-2676:
-----------------------------------
patch available at https://github.com/amitxlnc/sling/commits/trunk
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Comment Edited] (SLING-2676) Web console plugin for tenant
tenant management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503177#comment-13503177 ]
Amit Gupta edited comment on SLING-2676 at 11/23/12 12:17 PM:
--------------------------------------------------------------
We can provide an interface
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sling.tenant.spi;
import java.util.Map;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.tenant.Tenant;
/**
* This is a service interface which services are called by the WebConsole Plugin (or admin tool)
* to complete the Tenant setup.
*
*/
public interface TenantSetup {
/**
* Method called to create or update the given tenant.
* The method may return additional properties to be added
* to the Tenant's property list.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public Map<String, Object> setup(Tenant tenant, ResourceResolver resolver);
/**
* Called to remove the setup for the given Tenant. This reverts all changes
* done by the #setup method.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public void remove(Tenant tenant, ResourceResolver resolver);
}
This is a service interface which services are called by the WebConsole plugin (or admim tool) to complete the Tenant setup.
was (Author: amitxlnc):
We can an interface
{code}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sling.tenant.spi;
import java.util.Map;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.tenant.Tenant;
/**
* This is a service interface which services are called by the WebConsole plugin (or admim tool)
* to complete the Tenant setup.
*
*/
public interface TenantSetup {
/**
* Method called to create or update the given tenant.
* The method may return additional properties to be added
* to the Tenant's property list.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public Map<String, Object> setup(Tenant tenant, ResourceResolver resolver);
/**
* Called to remove the setup for the given Tenant. This reverts all changes
* done by the #setup method.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public void remove(Tenant tenant, ResourceResolver resolver);
}
{code}
This is a service interface which services are called by the WebConsole plugin (or admim tool) to complete the Tenant setup.
> Web console plugin for tenant tenant management
> -----------------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Priority: Minor
> Fix For: Tenant 1.0
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Updated] (SLING-2676) Web console plugin for tenant
management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Gupta updated SLING-2676:
------------------------------
Attachment: tenant-web-console.diff
created from git fork, and can be applied using patch command. Please note that there are some new files
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar, tenant-web-console.diff
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Updated] (SLING-2676) Web console plugin for tenant
management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Gupta updated SLING-2676:
------------------------------
Attachment: tenant.rar
patched bundle for tenant extension
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Updated] (SLING-2676) Web console plugin for tenant
management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amit Gupta updated SLING-2676:
------------------------------
Summary: Web console plugin for tenant management (was: Web console plugin for tenant tenant management)
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Priority: Minor
> Fix For: Tenant 1.0
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Commented] (SLING-2676) Web console plugin for tenant
management
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505449#comment-13505449 ]
Felix Meschberger commented on SLING-2676:
------------------------------------------
Please append a proper patch (svn diff) against trunk. Thanks.
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Commented] (SLING-2676) Web console plugin for tenant
management
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13506464#comment-13506464 ]
Felix Meschberger commented on SLING-2676:
------------------------------------------
Thanks for the patch. I have tested it and applied it in Rev.1415151 and Rev. 1415157.
I changed a few things amongst them I have renamed TenantSetup to TenantCustomizer. I have the impression this better reflects the intent. I have also added some more JavaDoc.
You might want to add some more handling in the Web Console Plugin:
* Display an error if adding the tenant failed
* Display information after successfully adding or removing a Tenant
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar, tenant-web-console.diff
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Assigned] (SLING-2676) Web console plugin for tenant
management
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger reassigned SLING-2676:
----------------------------------------
Assignee: Felix Meschberger
> Web console plugin for tenant management
> ----------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Assignee: Felix Meschberger
> Priority: Minor
> Fix For: Tenant 1.0
>
> Attachments: tenant.rar
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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
[jira] [Commented] (SLING-2676) Web console plugin for tenant
tenant management
Posted by "Amit Gupta (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-2676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503177#comment-13503177 ]
Amit Gupta commented on SLING-2676:
-----------------------------------
We can an interface
{code}
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.sling.tenant.spi;
import java.util.Map;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.tenant.Tenant;
/**
* This is a service interface which services are called by the WebConsole plugin (or admim tool)
* to complete the Tenant setup.
*
*/
public interface TenantSetup {
/**
* Method called to create or update the given tenant.
* The method may return additional properties to be added
* to the Tenant's property list.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public Map<String, Object> setup(Tenant tenant, ResourceResolver resolver);
/**
* Called to remove the setup for the given Tenant. This reverts all changes
* done by the #setup method.
* The ResourceResolver allows for access to the persistence;
* the ResourceResolver.commit method must not be called by
* this method.
*/
public void remove(Tenant tenant, ResourceResolver resolver);
}
{code}
This is a service interface which services are called by the WebConsole plugin (or admim tool) to complete the Tenant setup.
> Web console plugin for tenant tenant management
> -----------------------------------------------
>
> Key: SLING-2676
> URL: https://issues.apache.org/jira/browse/SLING-2676
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Amit Gupta
> Priority: Minor
> Fix For: Tenant 1.0
>
>
> Extending the support for Tenant API, we need to add a console plugin to create/remove tenants.
> We also need a pluggable support to register tenant setup handler, so that various modules/implementations can be plugged in.
--
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