com.atlassian.crowd.openid.server.model.record
Interface AuthRecordDAO

All Superinterfaces:
EntityObjectDAO, ObjectDao
All Known Implementing Classes:
AuthRecordDAOHibernate

public interface AuthRecordDAO
extends EntityObjectDAO


Method Summary
 List findRecords(User user)
          Finds all the AuthRecords for a given user.
 List findRecords(User user, int startIndex, int numRecords)
          Finds a subset of the AuthRecords for a given user.
 int findTotalRecords(User user)
          Finds the total number of authentication records that exist for a given user.
 
Methods inherited from interface com.atlassian.crowd.openid.server.model.EntityObjectDAO
findAll, save, update
 
Methods inherited from interface com.atlassian.crowd.openid.server.model.ObjectDao
getPersistentClass, load, remove, save, update
 

Method Detail

findRecords

List findRecords(User user)
Finds all the AuthRecords for a given user. The records are sorted descendingly based on time.

Parameters:
user - owner of the authentication records.
Returns:
List.

findRecords

List findRecords(User user,
                 int startIndex,
                 int numRecords)
Finds a subset of the AuthRecords for a given user. The records are sorted descendingly based on time.

Parameters:
user - owner of the authentication records.
startIndex - the start index of the record set. A startIndex of 0 implies the first record.
numRecords - the maximum number of records to include in the set.
Returns:
List.

findTotalRecords

int findTotalRecords(User user)
Finds the total number of authentication records that exist for a given user.

Parameters:
user - owner of the authentication records.
Returns:
number of authentication records.


Copyright © 2013 Atlassian. All Rights Reserved.