Interface DuracloudUserRepo

All Superinterfaces:
org.springframework.data.repository.CrudRepository<DuracloudUser,Long>, org.springframework.data.jpa.repository.JpaRepository<DuracloudUser,Long>, org.springframework.data.repository.PagingAndSortingRepository<DuracloudUser,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<DuracloudUser>, org.springframework.data.repository.Repository<DuracloudUser,Long>

@Repository("userRepo") public interface DuracloudUserRepo extends org.springframework.data.jpa.repository.JpaRepository<DuracloudUser,Long>
Author:
Erik Paulsson Date: 7/3/13
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns all enabled, non-locked root users with non-expired credentials.
    This method returns a single user with the given username

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByUsername

      DuracloudUser findByUsername(String username)
      This method returns a single user with the given username
      Parameters:
      username - of user
      Returns:
      user
    • findByRootTrueAndEnabledTrueAndAccountNonExpiredTrueAndCredentialsNonExpiredTrueAndAccountNonLockedTrue

      List<DuracloudUser> findByRootTrueAndEnabledTrueAndAccountNonExpiredTrueAndCredentialsNonExpiredTrueAndAccountNonLockedTrue()
      Returns all enabled, non-locked root users with non-expired credentials.
      Returns: