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
ConstructorsConstructorDescriptionJcrUserRoleDao(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.IPentahoRolecreateRole(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String description, String[] memberUserNames) org.pentaho.platform.api.engine.security.userroledao.IPentahoUsercreateUser(org.pentaho.platform.api.mt.ITenant tenant, String userName, String password, String description, String[] roles) voiddeleteRole(org.pentaho.platform.api.engine.security.userroledao.IPentahoRole role) voiddeleteUser(org.pentaho.platform.api.engine.security.userroledao.IPentahoUser user) org.pentaho.platform.api.engine.security.userroledao.IPentahoRoleList<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.IPentahoUserList<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) voidsetPassword(org.pentaho.platform.api.mt.ITenant tenant, String userName, String password) voidsetRoleDescription(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String description) voidsetRoleMembers(org.pentaho.platform.api.mt.ITenant tenant, String roleName, String[] memberUserNames) voidsetUserDescription(org.pentaho.platform.api.mt.ITenant tenant, String userName, String description) voidsetUserRoles(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.NotFoundExceptionorg.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.AlreadyExistsExceptionorg.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.AlreadyExistsExceptionorg.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.NotFoundExceptionorg.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.NotFoundExceptionorg.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.NotFoundExceptionorg.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.NotFoundExceptionorg.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.NotFoundExceptionorg.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
-