Class UserMgmtServiceImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assignToGroup​(org.apache.jackrabbit.api.JackrabbitSession session, org.apache.jackrabbit.api.security.user.UserManager userManager, String memberName, org.apache.jackrabbit.api.security.user.Group group)
      Assign an member (user or group) to a group if not always a member.
      void assignToGroup​(org.apache.jackrabbit.api.JackrabbitSession session, org.apache.jackrabbit.api.security.user.UserManager userManager, org.apache.jackrabbit.api.security.user.Authorizable authorizable, String groupName)
      Assign an member (user or group) to a group if not always a member.
      org.apache.jackrabbit.api.security.user.Group getOrCreateGroup​(org.apache.jackrabbit.api.JackrabbitSession session, org.apache.jackrabbit.api.security.user.UserManager userManager, String path)
      Retrieves a group by their name; if the group doesn't exist the group will be created.
      org.apache.jackrabbit.api.security.user.Authorizable getOrCreateUser​(org.apache.jackrabbit.api.JackrabbitSession session, org.apache.jackrabbit.api.security.user.UserManager userManager, String path, boolean systemUser)
      Retrieves a user by its name; if the user doesn't exist the user will be created.
      protected String[] pathAndName​(String pathAndName)  
    • Constructor Detail

      • UserMgmtServiceImpl

        public UserMgmtServiceImpl()
    • Method Detail

      • getOrCreateUser

        public org.apache.jackrabbit.api.security.user.Authorizable getOrCreateUser​(org.apache.jackrabbit.api.JackrabbitSession session,
                                                                                    org.apache.jackrabbit.api.security.user.UserManager userManager,
                                                                                    String path,
                                                                                    boolean systemUser)
                                                                             throws javax.jcr.RepositoryException
        Retrieves a user by its name; if the user doesn't exist the user will be created.
        Specified by:
        getOrCreateUser in interface UserManagementService
        Parameters:
        path - the name of the user with an optional prepended intermediate path for user creation
        Throws:
        javax.jcr.RepositoryException
      • getOrCreateGroup

        public org.apache.jackrabbit.api.security.user.Group getOrCreateGroup​(org.apache.jackrabbit.api.JackrabbitSession session,
                                                                              org.apache.jackrabbit.api.security.user.UserManager userManager,
                                                                              String path)
                                                                       throws javax.jcr.RepositoryException
        Retrieves a group by their name; if the group doesn't exist the group will be created.
        Specified by:
        getOrCreateGroup in interface UserManagementService
        Parameters:
        path - the name of the group with an optional prepended intermediate path for group creation
        Throws:
        javax.jcr.RepositoryException
      • assignToGroup

        public void assignToGroup​(org.apache.jackrabbit.api.JackrabbitSession session,
                                  org.apache.jackrabbit.api.security.user.UserManager userManager,
                                  org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                                  String groupName)
                           throws javax.jcr.RepositoryException
        Assign an member (user or group) to a group if not always a member.
        Specified by:
        assignToGroup in interface UserManagementService
        Parameters:
        authorizable - the name of the authorizable (the name only)
        groupName - the name of the group (the simple name only)
        Throws:
        javax.jcr.RepositoryException
      • assignToGroup

        public void assignToGroup​(org.apache.jackrabbit.api.JackrabbitSession session,
                                  org.apache.jackrabbit.api.security.user.UserManager userManager,
                                  String memberName,
                                  org.apache.jackrabbit.api.security.user.Group group)
                           throws javax.jcr.RepositoryException
        Assign an member (user or group) to a group if not always a member.
        Specified by:
        assignToGroup in interface UserManagementService
        Parameters:
        memberName - the name of the authorizable (the name only)
        Throws:
        javax.jcr.RepositoryException
      • pathAndName

        protected String[] pathAndName​(String pathAndName)