You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:17:16 UTC

[sling-org-apache-sling-tenant] 12/18: SLING-4234 : Tenant create implementation does not match with the API

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.tenant-1.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-tenant.git

commit f0f6065ae043e3cc93504c1e87bcd879429337ff
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Jan 4 13:36:51 2016 +0000

    SLING-4234 : Tenant create implementation does not match with the API
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/tenant@1722867 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/tenant/TenantManager.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/sling/tenant/TenantManager.java b/src/main/java/org/apache/sling/tenant/TenantManager.java
index 63f3a07..94d5b55 100644
--- a/src/main/java/org/apache/sling/tenant/TenantManager.java
+++ b/src/main/java/org/apache/sling/tenant/TenantManager.java
@@ -60,10 +60,9 @@ public interface TenantManager {
      *            though, that this map contain at least the
      *            {@link Tenant#PROP_NAME} and {@link Tenant#PROP_DESCRIPTION}
      *            properties.
-     * @return The newly created {@link Tenant} instance.
+     * @return The newly created {@link Tenant} instance or {@code null} if a tenant
+     *         with the id already exists.
      * @throws NullPointerException if {@code tenantId} is {@code null}.
-     * @throws IllegalArgumentException if a tenant with the same
-     *             {@code tentantId} already exists.
      */
     Tenant create(String tenantId, Map<String, Object> properties);
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.