org.onebusaway.users.services
Interface UserDao


public interface UserDao


Method Summary
 void deleteUser(User user)
           
 void deleteUserIndex(UserIndex index)
           
 List<Integer> getAllUserIds()
           
 List<Integer> getAllUserIdsInRange(int offset, int limit)
           
 int getNumberOfUserRoles()
           
 int getNumberOfUsers()
           
 int getNumberOfUsersWithRole(UserRole role)
           
 List<Integer> getStaleUserIdsInRange(Date lastAccessTime, int offset, int limit)
           
 User getUserForId(int id)
           
 UserIndex getUserIndexForId(UserIndexKey key)
           
 List<String> getUserIndexKeyValuesForKeyType(String keyType)
           
 UserRole getUserRoleForName(String name)
           
 void saveOrUpdateUser(User user)
           
 void saveOrUpdateUserIndex(UserIndex userIndex)
           
 void saveOrUpdateUserRole(UserRole userRole)
           
 void saveOrUpdateUsers(User... users)
           
 

Method Detail

getNumberOfUsers

int getNumberOfUsers()

getAllUserIds

List<Integer> getAllUserIds()

getAllUserIdsInRange

List<Integer> getAllUserIdsInRange(int offset,
                                   int limit)

getStaleUserIdsInRange

List<Integer> getStaleUserIdsInRange(Date lastAccessTime,
                                     int offset,
                                     int limit)

getUserForId

User getUserForId(int id)

saveOrUpdateUser

void saveOrUpdateUser(User user)

saveOrUpdateUsers

void saveOrUpdateUsers(User... users)

deleteUser

void deleteUser(User user)

getNumberOfUserRoles

int getNumberOfUserRoles()

getUserRoleForName

UserRole getUserRoleForName(String name)

saveOrUpdateUserRole

void saveOrUpdateUserRole(UserRole userRole)

getNumberOfUsersWithRole

int getNumberOfUsersWithRole(UserRole role)

getUserIndexKeyValuesForKeyType

List<String> getUserIndexKeyValuesForKeyType(String keyType)
Returns:
the set of UserIndexKey values having the specified UserIndexKey type

getUserIndexForId

UserIndex getUserIndexForId(UserIndexKey key)

saveOrUpdateUserIndex

void saveOrUpdateUserIndex(UserIndex userIndex)

deleteUserIndex

void deleteUserIndex(UserIndex index)


Copyright © 2011 OneBusAway. All Rights Reserved.