Interface DuracloudUserInvitationRepo

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

@Repository("userInvitationRepo") public interface DuracloudUserInvitationRepo extends org.springframework.data.jpa.repository.JpaRepository<UserInvitation,Long>
Author:
Erik Paulsson Date: 7/9/13
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns the set of invitations associated with a given DuraCloud account
    findByRedemptionCode(String redemptionCode)
    This method returns the user invitation which matches the given redemption code

    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

    • findByRedemptionCode

      UserInvitation findByRedemptionCode(String redemptionCode)
      This method returns the user invitation which matches the given redemption code
      Parameters:
      redemptionCode - the unique code used to redeem this invitation
      Returns:
      invitation associated with the given code
    • findByAccountId

      List<UserInvitation> findByAccountId(Long id)
      This method returns the set of invitations associated with a given DuraCloud account
      Parameters:
      id - the identifier of the DuraCloud account
      Returns:
      set of outstanding invitations for the given account