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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<UserInvitation>findByAccountId(Long id)This method returns the set of invitations associated with a given DuraCloud accountUserInvitationfindByRedemptionCode(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, delete, delete, deleteAll, exists, findOne, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAll, flush, getOne, save, saveAndFlush
-
-
-
-
Method Detail
-
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
-
-