Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 2653 invoked from network); 11 Mar 2010 14:05:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Mar 2010 14:05:24 -0000 Received: (qmail 87760 invoked by uid 500); 11 Mar 2010 14:04:50 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 87733 invoked by uid 500); 11 Mar 2010 14:04:50 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 87726 invoked by uid 99); 11 Mar 2010 14:04:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:04:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Mar 2010 14:04:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 20B1E234C4C0 for ; Thu, 11 Mar 2010 14:04:27 +0000 (UTC) Message-ID: <984650711.204281268316267133.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Mar 2010 14:04:27 +0000 (UTC) From: "Felix Meschberger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-2563) Add UserManager.createGroup(String groupID) method In-Reply-To: <2094387205.204201268315667169.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Meschberger updated JCR-2563: ----------------------------------- Attachment: JCR-2563.patch Patch providing the the createGroup(String) method: * UserManager API extension * UserManagerImpl implementation in jackrabbit-core * Unit-Tests ensuring proper work - ensure group with exact ID is created - ensure groupd cannot be created (with expected Exception) if a User or Group with that ID already exists > Add UserManager.createGroup(String groupID) method > -------------------------------------------------- > > Key: JCR-2563 > URL: https://issues.apache.org/jira/browse/JCR-2563 > Project: Jackrabbit Content Repository > Issue Type: New Feature > Components: jackrabbit-api, jackrabbit-core > Affects Versions: 2.0.0 > Reporter: Felix Meschberger > Attachments: JCR-2563.patch > > > As discussed on the dev list [1] I think it would be useful (and consistent inside the API) to have a UserManager.createGroup(String groupID) method. > The specification of the method would be: > /** > * Creates a Group for the given groupID must not be null. > *
> * Same as {@link #createGroup(Principal,String)} where the specified groupID > * is the name of a simple Principal implementation and the > * intermediate path is null. > * > * @param groupID The id of the new group, must not be null. > * @return The new Group. > * @throws AuthorizableExistsException in case the given groupID is already > * in use or another {@link Authorizable} with the same > * {@link Authorizable#getID() ID} exists. > * @throws RepositoryException If another error occurs. > */ > Group createGroup(String groupID) throws AuthorizableExistsException, RepositoryException; > [1] http://markmail.org/message/rjofzg4t3kiht7xv -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.