com.uwyn.rife.authentication.credentialsmanagers
Interface RoleUsersManager

All Superinterfaces:
IdentifiableUsersManager
All Known Implementing Classes:
DatabaseUsers, MemoryUsers

public interface RoleUsersManager
extends IdentifiableUsersManager


Method Summary
 RoleUsersManager addRole(String role)
           
 RoleUsersManager addUser(String login, RoleUserAttributes attributes)
           
 void clearUsers()
           
 boolean containsRole(String role)
           
 boolean containsUser(String login)
           
 long countRoles()
           
 long countUsers()
           
 long getUserId(String login)
           
 boolean isUserInRole(long userId, String role)
           
 boolean listRoles(ListRoles processor)
           
 boolean listUserRoles(String login, ListRoles processor)
           
 boolean listUsers(ListUsers processor)
           
 boolean listUsers(ListUsers processor, int limit, int offset)
           
 boolean listUsersInRole(ListUsers processor, String role)
           
 boolean removeRole(String name)
           
 boolean removeUser(long userId)
           
 boolean removeUser(String login)
           
 boolean updateUser(String login, RoleUserAttributes attributes)
           
 
Methods inherited from interface com.uwyn.rife.authentication.credentialsmanagers.IdentifiableUsersManager
getAttributes, getLogin
 

Method Detail

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.