Package org.duracloud.account.db.repo
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 TypeMethodDescriptionfindByAccountId(Long id) This method returns the set of invitations associated with a given DuraCloud accountfindByRedemptionCode(String redemptionCode) This method returns the user invitation which matches the given redemption codeMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByRedemptionCode
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
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
-