You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/03/11 14:54:27 UTC

[jira] Created: (JCR-2563) Add UserManager.createGroup(String groupID) method

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


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 <code>null</code>.
     * <br>
     * Same as {@link #createGroup(Principal,String)} where the specified groupID
     * is the name of a simple <code>Principal</code> implementation and the
     * intermediate path is <code>null</code>.
     *
     * @param groupID The id of the new group, must not be <code>null</code>.
     * @return The new <code>Group</code>.
     * @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.


[jira] Commented: (JCR-2563) Add UserManager.createGroup(String groupID) method

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12844135#action_12844135 ] 

angela commented on JCR-2563:
-----------------------------

thanks for the patch. i will take a look at it as soon as possible.

> 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
>            Assignee: angela
>         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 <code>null</code>.
>      * <br>
>      * Same as {@link #createGroup(Principal,String)} where the specified groupID
>      * is the name of a simple <code>Principal</code> implementation and the
>      * intermediate path is <code>null</code>.
>      *
>      * @param groupID The id of the new group, must not be <code>null</code>.
>      * @return The new <code>Group</code>.
>      * @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.


[jira] Updated: (JCR-2563) Add UserManager.createGroup(String groupID) method

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela updated JCR-2563:
------------------------

    Affects Version/s: 2.1.0

> 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, 2.1.0
>            Reporter: Felix Meschberger
>            Assignee: angela
>             Fix For: 2.2.0
>
>         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 <code>null</code>.
>      * <br>
>      * Same as {@link #createGroup(Principal,String)} where the specified groupID
>      * is the name of a simple <code>Principal</code> implementation and the
>      * intermediate path is <code>null</code>.
>      *
>      * @param groupID The id of the new group, must not be <code>null</code>.
>      * @return The new <code>Group</code>.
>      * @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.


[jira] Updated: (JCR-2563) Add UserManager.createGroup(String groupID) method

Posted by "Felix Meschberger (JIRA)" <ji...@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 <code>null</code>.
>      * <br>
>      * Same as {@link #createGroup(Principal,String)} where the specified groupID
>      * is the name of a simple <code>Principal</code> implementation and the
>      * intermediate path is <code>null</code>.
>      *
>      * @param groupID The id of the new group, must not be <code>null</code>.
>      * @return The new <code>Group</code>.
>      * @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.


[jira] Assigned: (JCR-2563) Add UserManager.createGroup(String groupID) method

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela reassigned JCR-2563:
---------------------------

    Assignee: angela

> 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
>            Assignee: angela
>         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 <code>null</code>.
>      * <br>
>      * Same as {@link #createGroup(Principal,String)} where the specified groupID
>      * is the name of a simple <code>Principal</code> implementation and the
>      * intermediate path is <code>null</code>.
>      *
>      * @param groupID The id of the new group, must not be <code>null</code>.
>      * @return The new <code>Group</code>.
>      * @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.


[jira] Resolved: (JCR-2563) Add UserManager.createGroup(String groupID) method

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-2563.
-------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.0

applied patch with minor modifications.

> 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, 2.1.0
>            Reporter: Felix Meschberger
>            Assignee: angela
>             Fix For: 2.2.0
>
>         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 <code>null</code>.
>      * <br>
>      * Same as {@link #createGroup(Principal,String)} where the specified groupID
>      * is the name of a simple <code>Principal</code> implementation and the
>      * intermediate path is <code>null</code>.
>      *
>      * @param groupID The id of the new group, must not be <code>null</code>.
>      * @return The new <code>Group</code>.
>      * @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.