org.outerj.daisy.repository.serverimpl.user
Class LocalUserManagementStrategy
java.lang.Object
org.outerj.daisy.repository.serverimpl.user.LocalUserManagementStrategy
- All Implemented Interfaces:
- org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
public class LocalUserManagementStrategy
- extends java.lang.Object
- implements org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
Method Summary |
void |
deleteRole(long roleId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
void |
deleteUser(long userId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.user.AuthenticationSchemeInfos |
getAuthenticationSchemes(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.commonimpl.user.RoleImpl |
getRole(long roleId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.commonimpl.user.RoleImpl |
getRole(java.lang.String roleName,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.commonimpl.user.UserImpl |
getUser(long userId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.commonimpl.user.UserImpl |
getUser(java.lang.String userLogin,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
long[] |
getUserIds(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.commonimpl.user.UsersImpl |
getUsersByEmail(java.lang.String email,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
static java.lang.String |
hashPassword(java.lang.String password)
|
org.outerj.daisy.repository.user.Roles |
loadRoles(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
org.outerj.daisy.repository.user.Users |
loadUsers(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
|
void |
store(org.outerj.daisy.repository.commonimpl.user.RoleImpl role)
|
void |
store(org.outerj.daisy.repository.commonimpl.user.UserImpl user)
|
static java.lang.String |
toHexString(byte[] b)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalUserManagementStrategy
public LocalUserManagementStrategy(LocalRepositoryManager.Context context,
org.outerj.daisy.jdbcutil.JdbcHelper jdbcHelper)
- Parameters:
context
-
loadUsers
public org.outerj.daisy.repository.user.Users loadUsers(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
loadUsers
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getUserIds
public long[] getUserIds(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
getUserIds
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
loadRoles
public org.outerj.daisy.repository.user.Roles loadRoles(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
loadRoles
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
deleteUser
public void deleteUser(long userId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
deleteUser
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
deleteRole
public void deleteRole(long roleId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
deleteRole
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getUser
public org.outerj.daisy.repository.commonimpl.user.UserImpl getUser(java.lang.String userLogin,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
getUser
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getRole
public org.outerj.daisy.repository.commonimpl.user.RoleImpl getRole(java.lang.String roleName,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
getRole
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
store
public void store(org.outerj.daisy.repository.commonimpl.user.UserImpl user)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
store
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
hashPassword
public static java.lang.String hashPassword(java.lang.String password)
toHexString
public static java.lang.String toHexString(byte[] b)
store
public void store(org.outerj.daisy.repository.commonimpl.user.RoleImpl role)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
store
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getUser
public org.outerj.daisy.repository.commonimpl.user.UserImpl getUser(long userId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
getUser
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getRole
public org.outerj.daisy.repository.commonimpl.user.RoleImpl getRole(long roleId,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.user.UserManagementException
- Specified by:
getRole
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.user.UserManagementException
getUsersByEmail
public org.outerj.daisy.repository.commonimpl.user.UsersImpl getUsersByEmail(java.lang.String email,
org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
getUsersByEmail
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
- Throws:
org.outerj.daisy.repository.RepositoryException
getAuthenticationSchemes
public org.outerj.daisy.repository.user.AuthenticationSchemeInfos getAuthenticationSchemes(org.outerj.daisy.repository.commonimpl.AuthenticatedUser requestingUser)
- Specified by:
getAuthenticationSchemes
in interface org.outerj.daisy.repository.commonimpl.user.UserManagementStrategy
Copyright © -2012 . All Rights Reserved.