Class JcrUserRoleDao

  • All Implemented Interfaces:
    org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao

    public class JcrUserRoleDao
    extends AbstractJcrBackedUserRoleDao
    • Constructor Detail

      • JcrUserRoleDao

        public JcrUserRoleDao​(org.springframework.extensions.jcr.JcrTemplate adminJcrTemplate,
                              org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver userNameUtils,
                              org.pentaho.platform.api.mt.ITenantedPrincipleNameResolver roleNameUtils,
                              String authenticatedRoleName,
                              String tenantAdminRoleName,
                              String repositoryAdminUsername,
                              IRepositoryFileAclDao repositoryFileAclDao,
                              IRepositoryFileDao repositoryFileDao,
                              IPathConversionHelper pathConversionHelper,
                              ILockHelper lockHelper,
                              org.pentaho.platform.api.repository2.unified.IRepositoryDefaultAclHandler defaultAclHandler,
                              List<String> systemRoles,
                              List<String> extraRoles,
                              org.springframework.security.core.userdetails.UserCache userCache)
                       throws javax.jcr.NamespaceException
        Throws:
        javax.jcr.NamespaceException
    • Method Detail

      • setRoleMembers

        public void setRoleMembers​(org.pentaho.platform.api.mt.ITenant tenant,
                                   String roleName,
                                   String[] memberUserNames)
      • setUserRoles

        public void setUserRoles​(org.pentaho.platform.api.mt.ITenant tenant,
                                 String userName,
                                 String[] roles)
                          throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                                 org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • createRole

        public org.pentaho.platform.api.engine.security.userroledao.IPentahoRole createRole​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                            String roleName,
                                                                                            String description,
                                                                                            String[] memberUserNames)
                                                                                     throws org.pentaho.platform.api.engine.security.userroledao.AlreadyExistsException,
                                                                                            org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.AlreadyExistsException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • createUser

        public org.pentaho.platform.api.engine.security.userroledao.IPentahoUser createUser​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                            String userName,
                                                                                            String password,
                                                                                            String description,
                                                                                            String[] roles)
                                                                                     throws org.pentaho.platform.api.engine.security.userroledao.AlreadyExistsException,
                                                                                            org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.AlreadyExistsException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • deleteRole

        public void deleteRole​(org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role)
                        throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                               org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • deleteUser

        public void deleteUser​(org.pentaho.platform.api.engine.security.userroledao.IPentahoUser user)
                        throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                               org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getRoles

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole> getRoles()
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getUsers

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser> getUsers()
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • setRoleDescription

        public void setRoleDescription​(org.pentaho.platform.api.mt.ITenant tenant,
                                       String roleName,
                                       String description)
                                throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                                       org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • setUserDescription

        public void setUserDescription​(org.pentaho.platform.api.mt.ITenant tenant,
                                       String userName,
                                       String description)
                                throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                                       org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • setPassword

        public void setPassword​(org.pentaho.platform.api.mt.ITenant tenant,
                                String userName,
                                String password)
                         throws org.pentaho.platform.api.engine.security.userroledao.NotFoundException,
                                org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.NotFoundException
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getRoles

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole> getRoles​(org.pentaho.platform.api.mt.ITenant tenant)
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getRoles

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole> getRoles​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                                boolean includeSubtenants)
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getUsers

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser> getUsers​(org.pentaho.platform.api.mt.ITenant tenant)
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getUsers

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser> getUsers​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                                boolean includeSubtenants)
                                                                                         throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getRole

        public org.pentaho.platform.api.engine.security.userroledao.IPentahoRole getRole​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                         String name)
                                                                                  throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getUser

        public org.pentaho.platform.api.engine.security.userroledao.IPentahoUser getUser​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                         String name)
                                                                                  throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getRoleMembers

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser> getRoleMembers​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                                      String roleName)
                                                                                               throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
      • getUserRoles

        public List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole> getUserRoles​(org.pentaho.platform.api.mt.ITenant tenant,
                                                                                                    String userName)
                                                                                             throws org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException
        Throws:
        org.pentaho.platform.api.engine.security.userroledao.UncategorizedUserRoleDaoException