Class JcrUserRoleDao
java.lang.Object
org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao
org.pentaho.platform.security.userroledao.jackrabbit.JcrUserRoleDao
- All Implemented Interfaces:
org.pentaho.platform.api.engine.security.userroledao.IUserRoleDao
-
Field Summary
Fields inherited from class org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao
tenantedRoleNameUtils, tenantedUserNameUtils
-
Constructor Summary
ConstructorDescriptionJcrUserRoleDao
(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) -
Method Summary
Modifier and TypeMethodDescriptionorg.pentaho.platform.api.engine.security.userroledao.IPentahoRole
createRole
(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String description, String[] memberUserNames) org.pentaho.platform.api.engine.security.userroledao.IPentahoUser
createUser
(org.pentaho.platform.api.mt.ITenant tenant, String userName, String password, String description, String[] roles) void
deleteRole
(org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role) void
deleteUser
(org.pentaho.platform.api.engine.security.userroledao.IPentahoUser user) org.pentaho.platform.api.engine.security.userroledao.IPentahoRole
List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser>
getRoleMembers
(org.pentaho.platform.api.mt.ITenant tenant, String roleName) List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole>
getRoles()
List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole>
getRoles
(org.pentaho.platform.api.mt.ITenant tenant) List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole>
getRoles
(org.pentaho.platform.api.mt.ITenant tenant, boolean includeSubtenants) org.pentaho.platform.api.engine.security.userroledao.IPentahoUser
List<org.pentaho.platform.api.engine.security.userroledao.IPentahoRole>
getUserRoles
(org.pentaho.platform.api.mt.ITenant tenant, String userName) List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser>
getUsers()
List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser>
getUsers
(org.pentaho.platform.api.mt.ITenant tenant) List<org.pentaho.platform.api.engine.security.userroledao.IPentahoUser>
getUsers
(org.pentaho.platform.api.mt.ITenant tenant, boolean includeSubtenants) void
setPassword
(org.pentaho.platform.api.mt.ITenant tenant, String userName, String password) void
setRoleDescription
(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String description) void
setRoleMembers
(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String[] memberUserNames) void
setUserDescription
(org.pentaho.platform.api.mt.ITenant tenant, String userName, String description) void
setUserRoles
(org.pentaho.platform.api.mt.ITenant tenant, String userName, String[] roles) Methods inherited from class org.pentaho.platform.security.userroledao.jackrabbit.AbstractJcrBackedUserRoleDao
canDeleteUser, createRole, createUser, createUserHomeFolder, deleteRole, deleteUser, getRole, getRoleMembers, getRoles, getRoles, getRoles, getSessionImpl, getTenantedRoleNameUtils, getTenantedUserNameUtils, getUser, getUserCache, getUserRoles, getUsers, getUsers, getUsers, initUserCache, initUserDetailsCache, isMyself, isUseJackrabbitUserCache, setPassword, setRoleDescription, setRoleMembers, setTenantedRoleNameUtils, setTenantedUserNameUtils, setUseJackrabbitUserCache, setUserDescription, setUserDetailsCache, setUserRoles, tenantExists
-
Constructor Details
-
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 Details
-
setRoleMembers
-
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
-