com.uwyn.rife.authentication.credentialsmanagers
Interface RoleUsersManager
- All Superinterfaces:
- IdentifiableUsersManager
- All Known Implementing Classes:
- DatabaseUsers, MemoryUsers
public interface RoleUsersManager
- extends IdentifiableUsersManager
addRole
RoleUsersManager addRole(String role)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
containsRole
boolean containsRole(String role)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
countRoles
long countRoles()
throws CredentialsManagerException
- Throws:
CredentialsManagerException
listRoles
boolean listRoles(ListRoles processor)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
addUser
RoleUsersManager addUser(String login,
RoleUserAttributes attributes)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
containsUser
boolean containsUser(String login)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
countUsers
long countUsers()
throws CredentialsManagerException
- Throws:
CredentialsManagerException
getUserId
long getUserId(String login)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
listUsers
boolean listUsers(ListUsers processor)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
listUsers
boolean listUsers(ListUsers processor,
int limit,
int offset)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
isUserInRole
boolean isUserInRole(long userId,
String role)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
listUsersInRole
boolean listUsersInRole(ListUsers processor,
String role)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
updateUser
boolean updateUser(String login,
RoleUserAttributes attributes)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
removeUser
boolean removeUser(String login)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
removeUser
boolean removeUser(long userId)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
removeRole
boolean removeRole(String name)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
clearUsers
void clearUsers()
throws CredentialsManagerException
- Throws:
CredentialsManagerException
listUserRoles
boolean listUserRoles(String login,
ListRoles processor)
throws CredentialsManagerException
- Throws:
CredentialsManagerException
Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.